Default network interface eth0 vice ens160
by sudz28 from LinuxQuestions.org on (#4ZZ7V)
I have recently inherited a Centos 7 VM that upon boot only has "eth0" and "lo" as it's network interfaces (when I do a "ip link"). It was not on the network. When I went to /etc/sysconfig/network-scripts/, I could see a file for "ifcfg-ens160" that seems to have all the correct information in it, but no "ifcfg-eth0" exists.
My question/confusion is, why is the server automatically looking for/assuming that eth0 should be it's network interface, and how do I make it recognize ens160? I realize I could just rename the ifcfg file to make it 'eth0' and edit the information inside of it, but I don't understand the disconnect. I would rather the server just look for 'ens160' vice 'eth0'. I have disabled NetworkManager.
Thanks!


My question/confusion is, why is the server automatically looking for/assuming that eth0 should be it's network interface, and how do I make it recognize ens160? I realize I could just rename the ifcfg file to make it 'eth0' and edit the information inside of it, but I don't understand the disconnect. I would rather the server just look for 'ens160' vice 'eth0'. I have disabled NetworkManager.
Thanks!