[root@localhost ~]# sed -i '/UUID/d' /etc/sysconfig/network-scripts/ifcfg-eth0
[root@localhost ~]# sed -i '/HWADDR/d' /etc/sysconfig/network-scripts/ifcfg-eth0
[root@localhost ~]# >/etc/udev/rules.d/70-persistent-net.rules
[root@localhost ~]# reboot
[root@bogon ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=10.41.1.80
NETMASK=255.255.255.0
GATEWAY=10.41.1.253
DNS1=10.41.7.13
"/etc/sysconfig/network-scripts/ifcfg-eth0" 12L, 151C
转载于:https://blog.51cto.com/11956937/1965249