I have installed Red Hat core os network interface name and my network interface name comes as ens1f1,ens1f2..etc. I want to change/rename it to eth1, eth2. How can I achieve this?
sh-4.4# ifconfig
ens1f0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 40:a6:b7:43:c8:70 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
ens1f1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 40:a6:b7:43:c8:71 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
ens1f2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 40:a6:b7:43:c8:72 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
Also I don't see ens1f1 interface file at /etc/sysconfig/network-scripts/ifcfg-ens1f1 location
In order to rename your NIC, you will need to bring it down.
Once down, you may now rename the card
Rename the config file
Confirm the NIC is available
Edit the config file
Bring the NIC back up