Article 4ZZ7V Default network interface eth0 vice ens160

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!latest?d=yIl2AUoC8zA latest?i=RGzsbM6M0yA:HQQ65uESQRY:F7zBnMy latest?i=RGzsbM6M0yA:HQQ65uESQRY:V_sGLiP latest?d=qj6IDK7rITs latest?i=RGzsbM6M0yA:HQQ65uESQRY:gIN9vFwRGzsbM6M0yA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments