public inbox for pve-user@lists.proxmox.com
 help / color / mirror / Atom feed
* Re: [PVE-User] PVE 6 to 7 BCM57412 devices name change
       [not found] <mailman.48.1659375454.440.pve-user@lists.proxmox.com>
@ 2022-08-01 17:45 ` Stephan Leemburg
  0 siblings, 0 replies; only message in thread
From: Stephan Leemburg @ 2022-08-01 17:45 UTC (permalink / raw)
  To: pve-user

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
> pve-user@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-01 17:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.48.1659375454.440.pve-user@lists.proxmox.com>
2022-08-01 17:45 ` [PVE-User] PVE 6 to 7 BCM57412 devices name change Stephan Leemburg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal