ubuntu 自动获取ip的怎么设置

ubuntu以DHCP方式配置网卡自动获取ip
编辑文件/etc/network/interfaces:
sudo vi /etc/network/interfaces
并用下面的行来替换有关eth0的行:
# The primary network interface - use DHCP to find our address
auto eth0
iface eth0 inet dhcp。

posted @ 2016-07-01 17:52  maxiongying  阅读(4867)  评论(0编辑  收藏  举报