public inbox for pve-user@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stephan Leemburg <sleemburg@it-functions.nl>
To: pve-user@lists.proxmox.com
Subject: Re: [PVE-User] PVE 6 to 7 BCM57412 devices name change
Date: Mon, 1 Aug 2022 19:45:19 +0200	[thread overview]
Message-ID: <9d90626b-7fcf-66fa-fe28-9691a665c37a@it-functions.nl> (raw)
In-Reply-To: <mailman.48.1659375454.440.pve-user@lists.proxmox.com>

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



           reply	other threads:[~2022-08-01 17:46 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <mailman.48.1659375454.440.pve-user@lists.proxmox.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9d90626b-7fcf-66fa-fe28-9691a665c37a@it-functions.nl \
    --to=sleemburg@it-functions.nl \
    --cc=pve-user@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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