解決方法
修改/etc/udev/rules.d/內,persistent-net.rules檔案(會有prefix)
# PCI device 0x10de:0x00df (forcedeth)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:22:33:44:55", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x10de:0x00df (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="55:44:33:22:11:00", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
檔案內,舊網卡的資料已經被註解掉,但新網卡的資料中,NAME的部分是"eth1",將它改成"eth0",而舊網卡資料已經不需要了,可以直接刪除。
修改後如下
# PCI device 0x10de:0x00df (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="55:44:33:22:11:00", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
接著重新啟動
Shell$ shutdown -r now