修改接口名修改接口名:

linux@server:~$ vim /etc/udev/rules.d/70-persistent-net.rules

其中:

# PCI device 0x10ec:0x8168 (r8169)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="6c:f0:49:72:bd:44", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" #这儿显示eth1,改成0即可。如果有多个网卡参看MAC地址,不要搞错了。

/etc/sysconfig/network-scripts/ifcfg-eth*  中的MAC地址也需要相应的修改。linux@server:~$ vim /etc/udev/rules.d/70-persistent-net.rules

其中:
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="6c:f0:49:72:bd:44", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" #这儿显示eth1,改成0即可。如果有多个网卡参看MAC地址,不