I need to restore "eth" naming on my CentOS7 servers so that I can continue using various scripts. I have disabled Consistent Network Device Naming by adding net.ifnames=0 to grub and have renamed and edited the ifcfg files and also created a persistent-net.rules file. I did not install the biosdevname RPM hence no reference in grub.
Let's follow MAC, d8:d3:85:c4:a2:f0, which should be eth0.
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=none
HWADDR=d8:d3:85:c4:a2:f0
ONBOOT=yes
NETBOOT=yes
IPADDR0=10.10.12.9
NETMASK0=255.255.255.0
GATEWAY0=10.10.12.1
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
# cat /etc/udev/rules.d/70-persistent-net.rules
"SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="d8:d3:85:c4:a2:f0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
"SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="d8:d3:85:c4:a2:f4", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
"SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="9c:8e:99:29:45:48", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
"SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="9c:8e:99:29:45:4a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
"SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:b5:99:cb:4e:18", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"
"SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:b5:99:cb:4e:1a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5"
# ifconfig eth0
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 9c:8e:99:29:45:48 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# ifconfig eth4
eth4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.12.9 netmask 255.255.255.0 broadcast 10.10.12.255
inet6 fe80::dad3:85ff:fec4:a2f0 prefixlen 64 scopeid 0x20<link>
ether d8:d3:85:c4:a2:f0 txqueuelen 1000 (Ethernet)
RX packets 10640 bytes 724244 (707.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 42762 bytes 11489169 (10.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 28 memory 0xf1000000-f17fffff
Did I miss something during the configuration?
Another thing is that not every interface has an ifcfg file (before disabling CNDN). Anyone know why this might be?