关键步骤是: 修改 /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
本文介绍如何将Ubuntu桌面配置为DHCP客户端。通过编辑/etc/network/interfaces文件并添加特定行,可以实现Ubuntu系统的网络自动配置。确保包含autoloeth0及ifaceeth0inetdhcp行,之后重启网络服务。
1804

被折叠的 条评论
为什么被折叠?



