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"

相关推荐