Hi Eneko,

We used to use net.ifnames=0 but where getting very unpredictable results.

So we switched to using /etc/systemd/network/*.link files with logical naming.

You can use

 udevadm test-builtin net_id /sys/class/net/$INTERFACENAME

where INTERFACENAME is the interface you want to have the attributes of.

Then you can - for example - use:

 cat /etc/systemd/network/10-management.link

 [Match]
 Property=ID_NET_NAME_PATH=enp130s0f3

 [Link]
 AlternativeNamesPolicy=onboard path
 Name=management

For logically naming the devices. Do remember to run

 update-initramfs -u -k $(uname -r)

or

 update-initramfs -u -k all

Hope that helps.

Best regards,

Stephan

On 01-08-2022 14:27, Eneko Lacunza via pve-user wrote:
_______________________________________________
pve-user mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user

_______________________________________________
pve-user mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user

Reply via email to