vi /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?“, ATTR{address}==”00:0c:29:5a:6c:73”, ATTR{type}==”1”, KERNEL==”eth“, NAME=”eth0”
PCI device 0x8086:0x100f (e1000)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?“, ATTR{address}==”00:0c:29:e5:6b:c4”, ATTR{type}==”1”, KERNEL==”eth“, NAME=”eth1”
a.删除第一个eth0行信息删除
b.将第二行eth1改为eth0
重启即可