Proxmox 7.3 network interfaces rename/reorder

Hi,

I am installing on a system with 3 network cards (4+4+2 ports).
I am trying to provide the best assignment to the ports so that moving cables would be easier, but stumbled with the fact that the first card seems to have switched ports and do not know how to handle this.

Physical orderProxmox nic nameProxmox wanted nic name
Card1, port1eno3eno1
Card1, port2eno4eno2
Card1, port3eno1eno3
Card1, port4eno2eno4
Card2, port1enp5s0f0enp5s0f0
Card2, port2enp5s0f1enp5s0f1
...............
Card3, port1enp129s0f0enp129s0f0
.............

As you can see, ports of the first card do not match the real physical order, while the other two cards do.
How can I manage this to achieve the third column?

I could also rename all of the nics to eth1...eth10 to solve the issue, but do not know the best practice to achieve it.

Thank you very mutch.
 
Hi,

I think you would be better of just accepting how the NICs are named in column 2. This is based on the "predictable names" scheme [1]. Basically the idea is to give the NICs names based on the hardware location in your system.

The Debian wiki [1] also outlines how you could (previously) use a different naming scheme and why you probably don't want to:

Why this one was abandoned​

This still had subtle race conditions, required /etc to be on a writable file system, and had problems with virtualization, so it's no longer supported upstream. The plan (still taken for granted in most of the documentation) was for it not to be supported in Debian 10 "buster", but hand-crafted .rules files should continue to work. In Debian 11 "bullseye" this is not working anymore (though details are unclear; udev still accepts .rules files, and claims they can rename interfaces, so what has changed?)

How to cling to it for now​

If you've got a working "legacy" /etc/udev/rules.d/70-persistent-net.rules file and want to stick with it, you can safely upgrade through Debian 9 "stretch" and Debian 10 "buster". The udev on these releases still respects that file if present (and will accept a freshly created one). However, bear in mind that you'll need to maintain it yourself, and be ready to switch to a different scheme for Debian 11 "bullseye", which lacks this legacy support.

So tl;dr: Previous schemes had all kinds of issues and were abandoned. You could use a custom .rules under /etc/udev/rules.d/ to cling to an older scheme or a custom one. Debian 11 bullseye (which is the base for PVE 7.x) does not really support that anymore (although, the wiki does state that documentation on this isn't really clear) so you'd be better off to just transition and get used to the naming scheme.

[1]: https://wiki.debian.org/NetworkInterfaceNames#predictable
 
  • Like
Reactions: Urbaman

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!