Network Cards from ip a command and what is listed in /etc/network/interfaces (and console) don't match

nande65

New Member
Dec 29, 2023
2
0
1
Hello,

I am newish to proxmox and linux, but hoping someone knows enough to help me out. I've had a proxmox server running for a few months and decided to add a new 4 port network card. Once the server rebooted the new 4 ports appeared in the console. But they did not work. I thought it was the hardware so I swapped out the card a couple of times, and after each reboot all of the interfaces were renamed, including the onboard which was never changed. I am still not able to use the ports on the new card. Not sure how to fix this strange problem

Here is what I get from ip addr. The first two entries are correct and match what is in the interfaces file/console, but the rest are a mystery, and I don't see the interfaces from the 4 port card

lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP>
enp10s0 UP 9c:6b:00:32:31:09 <BROADCAST,MULTICAST,UP,LOWER_UP>
vmbr0 UP 9c:6b:00:32:31:09 <BROADCAST,MULTICAST,UP,LOWER_UP>
tap100i0 UNKNOWN 2a:32:3b:cb:75:0f <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP>
fwbr100i0 UP 26:5c:49:37:07:02 <BROADCAST,MULTICAST,UP,LOWER_UP>
fwpr100p0@fwln100i0 UP ea:2d:03:28:11:a1 <BROADCAST,MULTICAST,UP,LOWER_UP>
fwln100i0@fwpr100p0 UP 26:5c:49:37:07:02 <BROADCAST,MULTICAST,UP,LOWER_UP>
tap102i0 UNKNOWN 96:9c:bd:cb:0a:80 <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP>
fwbr102i0 UP 72:8d:82:8a:c5:c2 <BROADCAST,MULTICAST,UP,LOWER_UP>
fwpr102p0@fwln102i0 UP 4a:23:e1:43:e4:86 <BROADCAST,MULTICAST,UP,LOWER_UP>
fwln102i0@fwpr102p0 UP 72:8d:82:8a:c5:c2 <BROADCAST,MULTICAST,UP,LOWER_UP>
tap107i0 UNKNOWN 26:b9:1c:71:47:c9 <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP>
fwbr107i0 UP 02:5b:4e:cb:7a:f9 <BROADCAST,MULTICAST,UP,LOWER_UP>
fwpr107p0@fwln107i0 UP ba:63:af:aa:ad:b2 <BROADCAST,MULTICAST,UP,LOWER_UP>
fwln107i0@fwpr107p0 UP 02:5b:4e:cb:7a:f9 <BROADCAST,MULTICAST,UP,LOWER_UP>


But here is what I get from the interfaces file. The one marked as LAN NIC (part of the vmbr0 bridge) is correct, but the rest do not appear in the shell when i run ip addr.

auto lo
iface lo inet loopback

iface enp10s0 inet manual
#LAN NIC

auto enp3s0f0
iface enp3s0f0 inet static
address 192.168.2.101/24

auto enp3s0f1
iface enp3s0f1 inet static
address 192.168.2.102/24

auto enp4s0f0
iface enp4s0f0 inet static
address 192.168.2.103/24

auto enp4s0f1
iface enp4s0f1 inet static
address 192.168.2.104/24

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


In the end if I add an IP address via the console to any of the cards that are in the interfaces file (the 4 port card), the NIC does not connect.

Hope I explained it well enough. I probably messed things up while troubleshooting, when I removed and added the network card multiple times.

Any help would be appreciated

Alex
 
An OS shouldn't have more than one IP of the same subnet. So giving them 192.168.2.101/24 to 192.168.2.104/24 is wrong.

Did you try another PCIe slot? Maybe that slot isn't connected because the PCIe lanes where needed elsewhere?
 
Hello Dunuin,

Thanks for your quick reply

Those multiple IPs in the same range were just part of my testing. I tried each port individually at first and they did not work. I've now removed all of the IP addresses to test one port at a time again, and still no bueno

My motherboard only has two PCIe slots, and the other slot is already in use for the video card. I don't know enough about how motherboards use PCIe lanes so I would need to investigate that.

Still, if the PCIe slot/lane had an issue I think I would not see the ports listed in the Proxmox console, and I am not sure that this explains why running the ip a command in a shell lists a different set of NICs.

Still a mystery to me.

Cheers.

Alex
 
Last edited:
Still, if the PCIe slot/lane had an issue I think I would not see the ports listed in the Proxmox console
You would and they would work but won't be fast as you then would be bottlenecked by PCIe bandwidth.
 

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!