Ethernet interfaces are switched after fresh installation of PVE 6.2 from ISO

jjakob

New Member
May 15, 2020
5
0
1
31
A fresh installation of PVE 6.2 from the official ISO, during the installation, the ethernet cable was plugged into the first ethernet port. The network was detected, configured and the installation finished successfully.

After rebooting into the installed system, there is no network connectivity. 'ip link' does show both the bridge and both ethernet ports, all are state DOWN, instead of 'enp2s0f0' being the bridge slave, 'enp2s0f1' is, which is the 2nd ethernet port. Plugging in the cable into the 2nd port brings the ethernet and bridge interfaces up and I can now connect to PVE via the configured IP.

The ethernet cards use the tg3 driver (Broadcom BCM5730).
 
Thank you for your suggestion. I'll try rebooting a few times to see if the naming stays the same or if it switches. I knew about udev, but I think this is managed by systemd now? But I think the names now should be stable, as the 'enp2s0f0' is the interface with the lower MAC (first port), and 'enp2s0f1' is the one with the nigher MAC (2nd port), as they should be named. I suspect they were switched in the installer.
 
After rebooting into the installed system, there is no network connectivity. 'ip link' does show both the bridge and both ethernet ports, all are state DOWN, instead of 'enp2s0f0' being the bridge slave, 'enp2s0f1' is, which is the 2nd ethernet port. Plugging in the cable into the 2nd port brings the ethernet and bridge interfaces up and I can now connect to PVE via the configured IP.

Did you plug in anything between installation and firs boot, e.g., some PCIe device, NVMe drive or similar?
Because such changing of network interfaces names should only happen out of a result of such a thin...
 
No, I just unplugged the USB drive that had the installation ISO and let it reboot into PVE.
 
I've rebooted 3 times now and the interface naming stayed the same. So I'm pretty sure they must've been switched in the installer.
If it were a PCI bus or slot change, the pX or sX would have changed but they didn't, just the fX changed, which in systemd naming means "function".

Per this post I also got some info from the running system:

Bash:
root@pve:~# udevadm info -e | grep -A 11 ^P.*enp2
P: /devices/pci0000:00/0000:00:02.5/0000:02:00.0/net/enp2s0f0
L: 0
E: DEVPATH=/devices/pci0000:00/0000:00:02.5/0000:02:00.0/net/enp2s0f0
E: SUBSYSTEM=net
E: INTERFACE=enp2s0f0
E: IFINDEX=2
E: USEC_INITIALIZED=2464914
E: ID_NET_NAMING_SCHEME=v240
E: ID_NET_NAME_MAC=enx9440c9xxxxx6
E: ID_OUI_FROM_DATABASE=Hewlett Packard Enterprise
E: ID_NET_NAME_PATH=enp2s0f0
E: ID_BUS=pci
--
P: /devices/pci0000:00/0000:00:02.5/0000:02:00.1/net/enp2s0f1
L: 0
E: DEVPATH=/devices/pci0000:00/0000:00:02.5/0000:02:00.1/net/enp2s0f1
E: SUBSYSTEM=net
E: INTERFACE=enp2s0f1
E: IFINDEX=3
E: USEC_INITIALIZED=2408940
E: ID_NET_NAMING_SCHEME=v240
E: ID_NET_NAME_MAC=enx9440c9xxxxx7
E: ID_OUI_FROM_DATABASE=Hewlett Packard Enterprise
E: ID_NET_NAME_PATH=enp2s0f1
E: ID_BUS=pci

(the xxxxx in the MAC I redacted)

I'll get this from the installer too to see if there's any differences.
 
No differences in the installer, weird. I guess it's possible I selected the 2nd port in the installer, but would the installer let me continue with the cable not plugged into it?
 
No differences in the installer, weird. I

Makes sense to me, while not a full blown systemd environment the devices are still managed by udev there too, and it's the same version and kernel as when then first booted.

No differences in the installer, weird. I guess it's possible I selected the 2nd port in the installer, but would the installer let me continue with the cable not plugged into it?

Yes it would, albeit it really would be nicer if the link status would be visible in the selector.
 

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!