- Make sure MAC address of eno16777736
- Add or change udev persistent rules
- Rename the NIC file as ifcfg-eth0
- Change device name into eth0
- Bounce the server
- Check the ifconfig
[root@test ~]# ifconfig eno16777736
...
ether 00:0c:29:4e:c6:92 txqueuelen 1000 (Ethernet)
...
[root@test ~]# vi /etc/udev/rules.d/70-persistent-ipoib.rules
...
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="32", ATTR{address}=="00:0c:29:4e:c6:92", NAME="eth0"
Or on this file:
[root@test ~]# vi /etc/udev/rules.d/70-persistent-net.rules
Both files can result in the same effects.
[root@test ~]# mv /etc/sysconfig/network-scripts/ifcfg-eno16777736 /etc/sysconfig/network-scripts/ifcfg-eth0
[root@test ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
...
NAME=eth0
DEVICE=eth0
...
[root@test ~]# init 6
[root@test ~]# ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
...