Handling of renamed interfaces
Harald Dunkel
harald.dunkel at aixigo.com
Thu Jan 4 13:48:08 UTC 2024
On 2024-01-04 09:12:38, Beniamino Galvani wrote:
>
> It doesn't have to predict the future. udev first optionally renames
> the interface, and then always emits the event. NetworkManager waits
> for the event before managing the interface. When the device
> transitions from "unmanaged" to "unavailable", it means that NM
> started managing it.
>
AFAIU network interfaces are renamed even before udev or NM have been
started, while the initrd is still running:
root at srvl033a:~# dmesg | egrep igb
[ 7.032866] igb: Intel(R) Gigabit Ethernet Network Driver
[ 7.032872] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 7.121823] igb 0000:07:00.0: added PHC on eth0
[ 7.121847] igb 0000:07:00.0: Intel(R) Gigabit Ethernet Network Connection
[ 7.121849] igb 0000:07:00.0: eth0: (PCIe:5.0Gb/s:Width x4) 00:1e:67:97:ef:1f
[ 7.121925] igb 0000:07:00.0: eth0: PBA No: 100000-000
[ 7.121935] igb 0000:07:00.0: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
[ 7.177496] igb 0000:07:00.1: added PHC on eth1
[ 7.177520] igb 0000:07:00.1: Intel(R) Gigabit Ethernet Network Connection
[ 7.177522] igb 0000:07:00.1: eth1: (PCIe:5.0Gb/s:Width x4) 00:1e:67:97:ef:20
[ 7.177598] igb 0000:07:00.1: eth1: PBA No: 100000-000
[ 7.177600] igb 0000:07:00.1: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
[ 7.233699] igb 0000:81:00.0: added PHC on eth2
[ 7.233723] igb 0000:81:00.0: Intel(R) Gigabit Ethernet Network Connection
[ 7.233727] igb 0000:81:00.0: eth2: (PCIe:5.0Gb/s:Width x4) a0:36:9f:28:42:04
[ 7.234021] igb 0000:81:00.0: eth2: PBA No: G15139-002
[ 7.234024] igb 0000:81:00.0: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
[ 7.293566] igb 0000:81:00.1: added PHC on eth3
[ 7.293581] igb 0000:81:00.1: Intel(R) Gigabit Ethernet Network Connection
[ 7.293584] igb 0000:81:00.1: eth3: (PCIe:5.0Gb/s:Width x4) a0:36:9f:28:42:05
[ 7.293875] igb 0000:81:00.1: eth3: PBA No: G15139-002
[ 7.293878] igb 0000:81:00.1: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
[ 7.349159] igb 0000:81:00.2: added PHC on eth4
[ 7.349174] igb 0000:81:00.2: Intel(R) Gigabit Ethernet Network Connection
[ 7.349176] igb 0000:81:00.2: eth4: (PCIe:5.0Gb/s:Width x4) a0:36:9f:28:42:06
[ 7.349462] igb 0000:81:00.2: eth4: PBA No: G15139-002
[ 7.349464] igb 0000:81:00.2: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
[ 7.405045] igb 0000:81:00.3: added PHC on eth5
[ 7.405059] igb 0000:81:00.3: Intel(R) Gigabit Ethernet Network Connection
[ 7.405061] igb 0000:81:00.3: eth5: (PCIe:5.0Gb/s:Width x4) a0:36:9f:28:42:07
[ 7.405349] igb 0000:81:00.3: eth5: PBA No: G15139-002
[ 7.405351] igb 0000:81:00.3: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
[ 7.772657] igb 0000:81:00.2 ens5f2: renamed from eth4
[ 7.828656] igb 0000:81:00.0 ens5f0: renamed from eth2
[ 7.888601] igb 0000:07:00.0 eno0: renamed from eth0
[ 8.000574] igb 0000:81:00.1 ens5f1: renamed from eth3
[ 8.032644] igb 0000:07:00.1 enp7s0f1: renamed from eth1
[ 8.056682] igb 0000:81:00.3 ens5f3: renamed from eth5
[ 10.687398] igb 0000:07:00.0: DCA enabled
[ 10.687421] igb 0000:07:00.1: DCA enabled
[ 10.840007] igb 0000:81:00.0: DCA enabled
[ 10.840054] igb 0000:81:00.1: DCA enabled
[ 10.857297] igb 0000:81:00.2: DCA enabled
[ 10.857327] igb 0000:81:00.3: DCA enabled
[ 15.360945] igb 0000:07:00.0 eno0: igb: eno0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[ 53.848795] igb 0000:81:00.1 ens5f1: igb: ens5f1 NIC Link is Up 10 Mbps Full Duplex, Flow Control: RX/TX
[ 53.868791] igb 0000:81:00.0 ens5f0: igb: ens5f0 NIC Link is Up 10 Mbps Full Duplex, Flow Control: RX/TX
[ 62.741830] igb 0000:81:00.0 ens5f0: igb: ens5f0 NIC Link is Down
[ 62.749801] igb 0000:81:00.1 ens5f1: igb: ens5f1 NIC Link is Down
[ 66.331752] igb 0000:81:00.1 ens5f1: igb: ens5f1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[ 66.399761] igb 0000:81:00.0 ens5f0: igb: ens5f0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[ 67.219905] igb 0000:81:00.0 ens5f0: igb: ens5f0 NIC Link is Down
[ 67.247933] igb 0000:81:00.1 ens5f1: igb: ens5f1 NIC Link is Down
[ 70.201567] igb 0000:81:00.1 ens5f1: igb: ens5f1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[ 70.909910] igb 0000:81:00.0 ens5f0: igb: ens5f0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[ 97.678287] igb 0000:81:00.1 ens5f1: igb: ens5f1 NIC Link is Down
[ 98.022449] igb 0000:81:00.0 ens5f0: igb: ens5f0 NIC Link is Down
[ 146.485558] igb 0000:81:00.0 ens5f0: igb: ens5f0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[ 146.661631] igb 0000:81:00.1 ens5f1: igb: ens5f1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
Regards
Harri
More information about the Networkmanager
mailing list