DHCP版本:
TYPE=Ethernet
ONBOOT=yes
DEVICE=eth0
BOOTPROTO=dhcp
static版本:
TYPE=Ethernet
ONBOOT=yes
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.64.5
NETMASK=255.255.255.0
GATEWAY=192.168.64.2
DNS1=8.8.8.8
DNS2=114.114.114.114
TYPE=Ethernet
ONBOOT=yes
DEVICE=eth0
BOOTPROTO=dhcp
TYPE=Ethernet
ONBOOT=yes
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.64.5
NETMASK=255.255.255.0
GATEWAY=192.168.64.2
DNS1=8.8.8.8
DNS2=114.114.114.114
转载于:https://www.cnblogs.com/ryan23/p/10665436.html