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

Sun Feb 9 15:54:52 UTC 2020
Alexander Dalloz <ad+lists at uni-x.org>

Am 09.02.2020 um 16:14 schrieb Nicolas Kovacs:
> Le 09/02/2020 à 14:10, Nicolas Kovacs a écrit :
>> Any suggestions ?
> 
> I forgot to add. The onboard NIC is a Broadcom card.
> 
> $ lspci | grep -i net
> 02:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
> RTL-8100/8101L/8139 PCI Fast Ethernet Adapter (rev 10)
> 02:09.0 Ethernet controller: Broadcom Inc. and subsidiaries BCM4401-B0 
> 100Base-TX (rev 02)
> 
> This card gets randomly renamed to either eth0 or eth1 after every reboot.
> 
> This is weird.


https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-Troubleshooting_Network_Device_Naming

Example 11.4

"Kernel always uses the ethX naming convention at boot when it 
enumerates network devices. Due to parallelization, the order of the 
kernel interface enumeration is expected to vary across reboots."

Alexander