ubuntu 设置 DHCP client
关键步骤是:?? 修改 /etc/network/interfaces,
增加两行:
?
auto lo eth0?? # 这个eth0 很关键!
iface eth0 inet dhcp? # 这一行是新的
?
然后 sudo /etc/init.d/networking restart
?
Configure Ubuntu DHCP Client
If you want to configure your ubuntu desktop as DHCP client following this procedure
You need to open /etc/network/interfaces file
sudo vi /etc/network/interfaces
make sure you have the following lines (eth0 is an example)
auto lo eth0
iface eth0 inet dhcp
iface lo inet loopback
Save and exit the file
You need to restart networking services using the following command
sudo /etc/init.d/networking restart