Debian 更换网卡后找不到eth0的解决方法
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地址,然后重新启动系统就可以了。
因本文不是用Markdown格式的编辑器书写的,转换的页面可能不符合MIP标准。