Linux设置dhcp--动态获取ip地址

#cd /etc/networking
#vim interfaces

iface eth0 inet static ==> iface eth0 inet dhcp

下边的都删掉或者

# address xxx.xxx.xxx.xx

#netmask xx.xx.xx.xx

#xxxxxxxxxxxxx

都注释掉

猜你喜欢

转载自blog.csdn.net/weixin_55821558/article/details/124594348