centos 7 根据mac地址设置网络接口名

vim /etc/udev/rules.d/70-persistent-net.rules

# PCI device 0x14e4:0x164c (bnx2)
 SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \
   ATTR{address}=="90:e2:ba:87:99:d4",           \
     ATTR{type}=="1", KERNEL=="eth*", NAME="fth1"

posted @ 2020-01-11 10:59  lvusyy  阅读(434)  评论(0编辑  收藏  举报