Linux eth0设置静态ip和动态ip

静态ip:

auto eth0
iface eth0 inet static
address 192.168.1.111
gateway 192.168.1.1
netmask 255.255.255.0

动态ip:

auto eth0
iface eth0 inet dhcp

热插拔:

allow-hotplug eth0

猜你喜欢

转载自blog.csdn.net/yuchunhai321/article/details/86232388