Dual Port NIC port naming issues

nyctomanica

Active Member
Dec 13, 2017
3
0
41
Hey!

I have three Proxmox servers, all of which are identical hardware-wise.
Each server has a Xeon E3-1286v3, 16GB DDR3, 256GB Samsung 840 Pro, Asus H81M-I board, onboard Realtek gigabit ethernet, and an additional Chelsio Dual-Port 10GbE NIC.

However, I am having problems with the names that Proxmox assigns to the ports on the Chelsio cards, on all three machines.

When I set up the servers, I expected the NICs to be named like so;
Realtek port: enp4s0
Chelsio port 0: enp1s0
Chelsio port 1: enp1s1

However, this is what actually happens:
Realtek port: enp4s0
Chelsio port 0: enp1s0
Chelsio port 1: rename3

Also, as an added issue, the number following 'rename' on the second port switches between 3 and 4 on every reboot!
One reboot it could be rename3, the next, it may be rename4.

This is incredibly frustrating, as I have a network bridge set up between both 10G ports, and I have to edit the /etc/network/interfaces file after every reboot to get the bridge to work correctly!
I can't even add both names to the bridge, as having one incorrect one causes the bridge to not work.

Is there any way to stop this happening, and ideally to permanently set the name of the interfaces?

For example, like this:
Realtek port: igb0
Chelsio port 0: cxgb0
Chelsio port 1: cxgb1


Thanks for your help, and I await your replies!
 
However, this is what actually happens:
Realtek port: enp4s0
Chelsio port 0: enp1s0
Chelsio port 1: rename3

Also, as an added issue, the number following 'rename' on the second port switches between 3 and 4 on every reboot!
One reboot it could be rename3, the next, it may be rename4.

This is incredibly frustrating, as I have a network bridge set up between both 10G ports, and I have to edit the /etc/network/interfaces file after every reboot to get the bridge to work correctly!
I can't even add both names to the bridge, as having one incorrect one causes the bridge to not work.

Is there any way to stop this happening, and ideally to permanently set the name of the interfaces?

For example, like this:
Realtek port: igb0
Chelsio port 0: cxgb0
Chelsio port 1: cxgb1


Yes; create a file named /etc/udev/rules.d/10-network.rules

You know probably the interface MAC adresses and add e.g. the following lines:

Code:
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:11:22:33:00:ee", NAME="igb0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:11:22:33:11:ee", NAME="cxgb0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:11:22:33:11:ff", NAME="cxgb1"
 
  • Like
Reactions: Patrick Simpson

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!