nano /etc/udev/rules.d/内的(xx-)persistent-net.rules

# PCI device 0x10de:0x00df (forcedeth)

#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:90:27:ee:bb", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10de:0x00df (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:08:00:27:ac:89", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

只要删除后面两行,将原来的第二行中的ATTR{address}后面的地址改为新的网卡的MAC地址,然后重新启动系统就可以了。
 

Last modification:July 14, 2020
如果觉得我的文章对你有用,请随意赞赏