[CentOS] CentOS 7 : network interface renamed from eth0 to eth1 after reboot

Sun Feb 9 14:15:59 UTC 2020
Günther J. Niederwimmer <gjn at gjn.priv.at>

Hello,
Am Sonntag, 9. Februar 2020, 14:10:44 CET schrieb Nicolas Kovacs:
> Hi,
> 
> I've done my fair share of CentOS 7 installations, but this is the first
> time I have this kind of weird problem. Here goes.
> 
> In my office I have a battered Dell Optiplex 320 PC with two NICs that I'm
> using as a bare metal sandbox server for testing purposes.
> 
> The CentOS 7 installer sees the connected network card as eth0. But after
> the first reboot, the interface comes up as eth1.
> 
> My first reflex was to rename ifcfg-eth0 to ifcfg-eth1 and edit it
> accordingly. Weirdly enough, on the subsequent reboot the interface comes
> back as eth0.
> 
> I took a peek in /etc/udev/rules.d to see if there was any persistent
> interface definition, but the directory is empty.
> 
> On a side note, I installed Ubuntu Server 16.04 LTS on that same machine and
> got the exact same problem. Debian installer sees the main network
> interface as eth0, but on the first reboot the interface comes back as
> eth1.
 
> Any suggestions ?
this is coming from The NetworkManager?

I set in my config *-eth0 the HWADDR=XXXXXXXXXXXX
and NM_CONTROLLED=no


-- 
mit freundlichen Grüßen / best regards

  Günther J. Niederwimmer