主機板更換,相對的網卡mac一定改變
1. 用lshw|grep serial查出新網卡mac
2.修改/etc/udev/rules.d/70-persistent.rules內容重開機捉網卡
SUBSYSTEM=="net",ACTION=="add",ATTR{address}=="e4:1f:13:ec:xx:xx",NAME="eth0"
SUBSYSTEM=="net",ACTION=="add",ATTR{address}=="e4:1f:13:ec:xx:xx",NAME="eth1"
SUBSYSTEM=="net",ACTION=="add",ATTR{address}=="e4:1f:13:ec:xx:xx",NAME="eth2"
SUBSYSTEM=="net",ACTION=="add",ATTR{address}=="e4:1f:13:ec:xx:xx",NAME="eth3"