[CentOS 7.0] Change network interface name (eno* to eth0) Step1) # vim /etc/udev/rules.d/70-persistent-net.rules ———————————————————————– # PCI device 0x14e4:0x1680 (tg3) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0c:29:7b:d8:06“, ATTR{dev_id}==”0x0″, ATTR{type}==”1″, KERNEL==”eno16777736“, NAME=”eth0” ———————————————————————– or ———————————————————————– # PCI device 0x14e4:0x1680 (tg3) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0c:29:7b:d8:06“, ATTR{dev_id}==”0x0″, ATTR{type}==”1″, KERNEL==”eno*“, NAME=”eth0” ———————————————————————– Step2) # mv /etc/sysconfig/network-scripts/ifcfg-eno16777736 /etc/sysconfig/network-scripts/ifcfg-eth0
Step3) # vim /etc/sysconfig/network-scripts/ifcfg-eth0 ———————————————————————– HWADDR=”00:0C:29:7B:D8:06″ […]
Recent Comments