Handling of renamed interfaces

Andrei Borzenkov arvidjaar at gmail.com
Wed Jan 3 17:23:58 UTC 2024


I was looking at forum post where user had to restart NetworkManager 
after boot to get working network. It seems that the system is too fast 
and interfaces get renamed by udev after NetworkManager has been started 
and saw the interfaces under the original name. Like

Jan 03 17:51:38 XPS-Station NetworkManager[1088]: <info> 
[1704297098.8475] NetworkManager (version 1.44.2) is starting... 
(boot:f4726069-41b6-4e9a-9aec-ba9cf7e72201)
...
Jan 03 17:51:38 XPS-Station NetworkManager[1088]: <info> 
[1704297098.9754] device (wlan0): driver supports Access Point (AP) mode
Jan 03 17:51:38 XPS-Station NetworkManager[1088]: <info> 
[1704297098.9760] manager: (wlan0): new 802.11 Wi-Fi device 
(/org/freedesktop/NetworkManager/Devices/2)
Jan 03 17:51:38 XPS-Station kernel: ath10k_pci 0000:3a:00.0 wlp58s0: 
renamed from wlan0
...
Jan 03 17:51:39 XPS-Station NetworkManager[1088]: <info> 
[1704297099.0481] device (wlan0): interface index 2 renamed iface from 
'wlan0' to 'wlp58s0'
...
Jan 03 17:51:39 XPS-Station NetworkManager[1088]: <info> 
[1704297099.0850] device (wlp58s0): state change: unmanaged -> 
unavailable (reason 'managed', sys-iface-state: 'external')

So NM treats them as external and ignores. After restart NM starts with 
new interface names and continues.

Is it expected behavior? I do not see any practical way to synchronize 
interface renaming with starting of NM. Is it possible to tell NM to 
continue handling interfaces under the new name?

The full log after boot is available as

https://paste.opensuse.org/pastes/9dfd6fba0de1

(it is set to expire in 3 days though).


More information about the Networkmanager mailing list