Ubuntu修改网卡名

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为对应的新网卡名,重启网络服务

posted @ 2020-09-27 15:23  秒年度  阅读(378)  评论(0编辑  收藏  举报