# ls /etc/udev/rules.d/
70-persistent-net.rules README
修改70-persistent-net.rules
SUBSYSTEM=="net",ACTION=="add",DRIVERS=="?*",ATTR{address}=="00:0c:29:1f:1a:f5",KERNEL=="eth*",NAME="eth0"
修改后:
SUBSYSTEM=="net",ATTR{address}=="00:0c:29:1f:1a:eb",NAME="eth0"
SUBSYSTEM=="net",NAME="eth1"
SUBSYSTEM=="net",ATTR{address}=="00:0c:29:1f:1a:ff",NAME="eth2"
reboot
原文链接:https://www.f2er.com/ubuntu/349585.html