Linux change network card name

1. Shutdown the corresponding interface, modify or add DEVICE=eth0 HWADDR= 00:1e:ec:0f:79:f6
in /etc/sysconfig/network-scripts/ifcfg-eth0 and modify the following file to be consistent with the above /etc/udev/rules.d/70-persistent-net.rules # PCI device 0x14e4:0x1713 (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address }==" 00:1e:ec:0f:79:f6 ", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x1713 (tg3) SUBSYSTEM =="net", ACTION=="add", DRIVERS=="?*", ATTR{address}==" 00:1e:ec:0f:79:f7 ", ATTR{type}=="1" , KERNEL=="eth*", NAME="eth1" 2. service udev-post stop;service udev-post start 3. ifup eth0/eth1












Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326827172&siteId=291194637