Added NVME drive to my mobo and lost network

adresner

Member
Mar 22, 2023
106
17
18
New to Proxmox, have been pretty amazed so far but am currently on the fence whether I will continue or not.

I have come to the understanding that proxmox can't handle hardware changes without renaming network cards breaking networking? Can you someone explain this and also tell me if there is something configuration step upon install that I should have done to prevent this?

I did see some threads with some vague info about nano into a networking config file, but it wasn't written for pros. I also saw something about renaming the connection so the name doesn't change?

Thank you for your help
 
  • Like
Reactions: adresner
New to Proxmox, have been pretty amazed so far but am currently on the fence whether I will continue or not.

I have come to the understanding that proxmox can't handle hardware changes without renaming network cards breaking networking? Can you someone explain this and also tell me if there is something configuration step upon install that I should have done to prevent this?

I did see some threads with some vague info about nano into a networking config file, but it wasn't written for pros. I also saw something about renaming the connection so the name doesn't change?

Thank you for your help
The nic predictables name is based on pci slot position. But some motherboard (mainly desktop motherboard), with nvme (as they are also pci device), is changing the slots id internally. (I never see this on a server).

The good way can be to fix name based on mac address with .link files.
 
  • Like
Reactions: adresner
The nic predictables name is based on pci slot position. But some motherboard (mainly desktop motherboard), with nvme (as they are also pci device), is changing the slots id internally. (I never see this on a server).

The good way can be to fix name based on mac address with .link files.
Is there a noob guide you are aware of on this? step by step? thanks!
 
The Debian page in my previous post details how to do that fairly well. You just need to create a .link file under /etc/systemd/network/. For example, create the file /etc/systemd/network/10-persistent-net.link, then put these contents into it:

Code:
 [Match]
 MACAddress=01:23:45:67:89:ab

 [Link]
 Name=lan0

This will assign the interface with the Mac address 01:23:45:67:89:ab the name lan0. If you don't know the Mac address of your NIC, you can use ip a to determine it. For example, given the following (shortened) output:

Code:
[..]
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
    link/ether 02:42:1a:2a:a3:81 brd ff:ff:ff:ff:ff:ff
[..]

The Mac address of the interface currently named enp4s0 is 02:42:1a:2a:a3:81. So to assign it the name interface0 you would need to create a .link file with these contents:

Code:
 [Match]
 MACAddress=02:42:1a:2a:a3:81

 [Link]
 Name=interface0
 
Last edited:
nano /etc/systemd/network/10-persistent-net.link

[Match]
MACAddress=01:23:45:67:89:ab

[Link]
Name=lan0

ctrl O ctrl X

Then upon reboot, that should be static to lan0?

:D

I have 6 NICs. I can add for all of them like?>

[Match]
MACAddress=01:23:45:67:89:ab

[Link]
Name=lan0

[Match]
MACAddress=01:23:45:67:89:af

[Link]
Name=lan1

[Match]
MACAddress=01:23:45:67:89:ah

[Link]
Name=lan2

[Match]
MACAddress=01:23:45:67:89:au

[Link]
Name=lan3
 
Last edited:
Answering my own question here. Setting up the link file works for 1 NIC, but not for 6 unless I should format that differently

Also, when it does work for that one NIC, the new name is not reflected in the GUI, only when viewing my network config: ip a
 
Last edited:
Last edited:
  • Like
Reactions: befc558
There probably is. There is the MAC address option, so that each NIC is named the MAC address? that rule might cover all my NICs with 1 file? However, what a name for a NIC

I see in the man file, each file should have a unique name.

Maybe
10-persistent-net.link
9-persistent-net.link
8-persistent-net.link
7-persistent-net.link
6-persistent-net.link
etc?

But the name in the GUI won't change?
 
Odd just this morning I added a QNAP QM2-2P10G1T card which has 10Gbit ethernet and 2xNVME drives. It came up the existing NIC didn't work. I updated the network settings from the console, and it came back up after reboot.
 
Odd just this morning I added a QNAP QM2-2P10G1T card which has 10Gbit ethernet and 2xNVME drives. It came up the existing NIC didn't work. I updated the network settings from the console, and it came back up after reboot.
I have seen that card, neat. Can you share the steps in updating from the console?
 

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!