ubuntu 修改网卡名称

在 /etc/udev/rules.d中添加文件70-persistent-net.rules,文件中输入下列内容:

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="b8:27:eb:f8:ba:ec",NAME="eth0"。

其中ADDR{address}是对应网卡的mac地址,eth0是修改后的网卡名称。

posted @ 2017-06-06 15:06  小剑灬  阅读(1371)  评论(0编辑  收藏  举报