Proxmox 7 upgrade and network interface naming confusion (again)

mrpilgrim

New Member
Apr 5, 2021
2
0
1
57
Hi,
I have a proxmox server with a quad NIC card + 2 onboard NICs. I initially installed Proxmox 6 on it a few months ago and ran into issues related to the interface names, which were being named RENAME1, RENAME2 etc.
I found several threads related to this and resolved the issue by creating /etc/systemd/network/99-default.link with the following contents:
Code:
[Link]
NamePolicy=keep kernel database onboard path slot
MACAddressPolicy=persistent

My /etc/network/interfaces file contained
Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

iface enp10s0f0 inet manual

iface enp10s0f1 inet manual

iface enp9s0f0 inet manual

iface enp9s0f1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.8/24
        gateway 192.168.1.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

As you can see, nothing fancy and I'm currently not using any NIC apart from the primary onboard one.

I have just done an upgrade from V6 to V7 (7.1-5) on this machine. The actual upgrade went fine but after reboot I had lost network connectivity.

I discovered that the primary interface had changed back to eth0 ???
ip link shows:
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP mode DEFAULT group default qlen 1000
    link/ether d0:bf:9c:46:0e:64 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether d0:bf:9c:46:0e:65 brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:26:55:df:6d:99 brd ff:ff:ff:ff:ff:ff
5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:26:55:df:6d:98 brd ff:ff:ff:ff:ff:ff
6: eth4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:26:55:df:6d:9b brd ff:ff:ff:ff:ff:ff
7: eth5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:26:55:df:6d:9a brd ff:ff:ff:ff:ff:ff
8: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether d0:bf:9c:46:0e:64 brd ff:ff:ff:ff:ff:ff

So, I have currently resolved the issue by modifying /etc/network/interfaces to add
Code:
iface eth0 inet manual
and modifying the vmbr0 definition to use eth0 instead of eno1.

Does anyone know why this has happened and whether there is a better way to fix the naming ? I assume that I should probably be using the new interface names, but I'm currently unclear why it has reverted to old style ?

Thanks
 

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!