vim /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net",ACTION=="add",DRIVERS=="?*",ATTR{address}=="00:0C:29:33:A7:DD",ATTR{type}=="1" ,KERNEL=="eth*",NAME="eth33"
自定义网卡名称,mac绑定网卡名称
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="2c:f0:5d:f4:25:80", NAME="MGT2"
或者通过pci绑定网卡名称
SUBSYSTEM=="net", ACTION=="add", KERNELS=="0000:03:00.0", NAME="eth0"
注意:修改 ATTR{address} 和 NAME 的值
ATTR{address} :是网卡的MAC地址.
NAME : 网卡名
reboo