vim /etc/udev/rules.d/70-persistent-net.rules
添加以下内容:
SUBSYSTEM=="net", ACTION=="add",
ATTR{address}=="b8:27:eb:f8:ba:ec",NAME="eth888"
ATTR{address}
对应网卡mac
修改/etc/network/interfaces
为对应的新网卡名,重启网络服务
vim /etc/udev/rules.d/70-persistent-net.rules
添加以下内容:
SUBSYSTEM=="net", ACTION=="add",
ATTR{address}=="b8:27:eb:f8:ba:ec",NAME="eth888"
ATTR{address}
对应网卡mac
修改/etc/network/interfaces
为对应的新网卡名,重启网络服务