eth4 is eno1, eth5 can’t be renamed:
# for nic in ens2f0 ens2f1 ens2f2 ens2f3 eno1 eth5; do udevadm test-builtin net_id /sys/class/net/$nic; done
Load module index
Parsed configuration file /usr/lib/systemd/network/99-default.link
Created link configuration context.
Using default interface naming scheme 'v245'.
ID_NET_NAMING_SCHEME=v245
ID_NET_NAME_MAC=enxa0369f633428
ID_OUI_FROM_DATABASE=Intel Corporate
ID_NET_NAME_PATH=enp2s0f0
ID_NET_NAME_SLOT=ens2f0
Unload module index
Unloaded link configuration context.
Load module index
Parsed configuration file /usr/lib/systemd/network/99-default.link
Created link configuration context.
Using default interface naming scheme 'v245'.
ID_NET_NAMING_SCHEME=v245
ID_NET_NAME_MAC=enxa0369f633429
ID_OUI_FROM_DATABASE=Intel Corporate
ID_NET_NAME_PATH=enp2s0f1
ID_NET_NAME_SLOT=ens2f1
Unload module index
Unloaded link configuration context.
Load module index
Parsed configuration file /usr/lib/systemd/network/99-default.link
Created link configuration context.
Using default interface naming scheme 'v245'.
ID_NET_NAMING_SCHEME=v245
ID_NET_NAME_MAC=enxa0369f63342a
ID_OUI_FROM_DATABASE=Intel Corporate
ID_NET_NAME_PATH=enp2s0f2
ID_NET_NAME_SLOT=ens2f2
Unload module index
Unloaded link configuration context.
Load module index
Parsed configuration file /usr/lib/systemd/network/99-default.link
Created link configuration context.
Using default interface naming scheme 'v245'.
ID_NET_NAMING_SCHEME=v245
ID_NET_NAME_PATH=enp2s0f3
ID_NET_NAME_SLOT=ens2f3
Unload module index
Unloaded link configuration context.
Load module index
Parsed configuration file /usr/lib/systemd/network/99-default.link
Created link configuration context.
Using default interface naming scheme 'v245'.
ID_NET_NAMING_SCHEME=v245
ID_NET_NAME_ONBOARD=eno1
ID_NET_LABEL_ONBOARD=PowerVille
ID_NET_NAME_PATH=enp6s0f0
Unload module index
Unloaded link configuration context.
Load module index
Parsed configuration file /usr/lib/systemd/network/99-default.link
Created link configuration context.
Using default interface naming scheme 'v245'.
ID_NET_NAMING_SCHEME=v245
ID_NET_NAME_MAC=enx001e67a4173a
ID_OUI_FROM_DATABASE=Intel Corporate
ID_NET_NAME_ONBOARD=eno1
ID_NET_LABEL_ONBOARD=PowerVille
ID_NET_NAME_PATH=enp6s0f1
Unload module index
Unloaded link configuration context.
I am going to try static naming for the two NICs that are being interchanged after reboot, eno1 (eth4) and eth5. Before doing so, @Siosm could you confirm if indeed the name for my udev rule file should be this:
/etc/udev/rules.d/80-ifname.rules
And the content will be something like this:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:xx:xx:xx:xx", ATTR{type}=="1", NAME="eno1"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:xx:xx:xx:xx", ATTR{type}=="1", NAME="eth5"
I am not changing anything, I just want to statically name the NICs as they are now, with their HW MAC the same, so my existing bond connection is not broken.