Help Configuring a Network Adapter on VE Host

greenhornet

New Member
Jan 31, 2025
23
0
1
I've got several adapter cards on my Proxmox server. They're all showing up in the datacenter server view under my host server in the network settings. That much is good. The first NIC is getting an IP address from the DHCP server but the second is not. I've got a total of 6 NICs on this server. Two of them are plugged in and show physical link lights on the cards. Of those two, one is not getting an IP address.
I have two challenges:
1. How to identify the card in Proxmox that has a cabled connection and link (but no IP) and then
2. How to configure that adapter to accept DHCP.
Proxmox NICs.png
 
Hi,

The first NIC is getting an IP address from the DHCP server but the second is not.
DHCP is only used during installation, that received address is than set as static address.
On an installed system, no DHCP is performed on any host network interfaces - since in such environments, you'd rarely want that anyway and isn't really supported.
Changing IP address is not trivial on Proxmox VE, since you need to take care of a few sites to match everything up.

If you are really sure you want to use DHCP, see the Debian documentation: https://wiki.debian.org/NetworkConfiguration#Using_DHCP_to_automatically_configure_the_interface
 
Hi,


DHCP is only used during installation, that received address is than set as static address.
On an installed system, no DHCP is performed on any host network interfaces - since in such environments, you'd rarely want that anyway and isn't really supported.
Changing IP address is not trivial on Proxmox VE, since you need to take care of a few sites to match everything up.

If you are really sure you want to use DHCP, see the Debian documentation: https://wiki.debian.org/NetworkConfiguration#Using_DHCP_to_automatically_configure_the_interface
Thanks. Static is definitely fine - but I'm still trying to solve #1 - how can I tell which one of those cards has the connection if we can't use DHCP first?
 
how can I tell which one of those cards has the connection
You can use e.g. ip link on the shell, which lists all network interfaces with their flags/operational stats.
NO-CARRIER means that no cable is plugged in, while LOWER_UP indicates a physical connection. UP indicates administratively up.

For further information, you can also use ethtool <portname>, which lists, among other things, available/negotiated speed.
 
Last edited:
You can use e.g. ip link on the shell, which lists all network interfaces with their flags/operational stats.
NO-CARRIER means that no cable is plugged in, while LOWER_UP indicates a physical connection. UP indicates administratively up.

For further information, you can also use ethtool <portname>, which lists, among other things, available/negotiated speed.
If I'm reading my output (below) corectly, the system only thinks I have 1 interface with a cable connected. I have visually verified that both cables are plugged in and have link lights on their respective ports - at the NIC.

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: enp3s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP mode DEFAULT group defaul t qlen 1000
link/ether 9c:8e:99:0f:be:24 brd ff:ff:ff:ff:ff:ff
3: enp3s0f1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 9c:8e:99:0f:be:26 brd ff:ff:ff:ff:ff:ff
4: enp4s0f0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 9c:8e:99:0f:be:28 brd ff:ff:ff:ff:ff:ff
5: enp4s0f1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 9c:8e:99:0f:be:2a brd ff:ff:ff:ff:ff:ff
6: ens3f0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether a0:36:9f:37:d2:b4 brd ff:ff:ff:ff:ff:ff
altname enp14s0f0
7: ens3f1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether a0:36:9f:37:d2:b6 brd ff:ff:ff:ff:ff:ff
altname enp14s0f1
8: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 9c:8e:99:0f:be:24 brd ff:ff:ff:ff:ff:ff

It should be one of these two, because it's a 10GbE card and both show 10000baseT (the other card is only 1000). The "link detected" is what's throwing me.
root@jayne:~# ethtool ens3f0
Settings for ens3f0:
Supported ports: [ TP ]
Supported link modes: 100baseT/Full
1000baseT/Full
10000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 100baseT/Full
1000baseT/Full
10000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
Auto-negotiation: on
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
MDI-X: Unknown
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: no



root@jayne:~# ethtool ens3f1
Settings for ens3f1:
Supported ports: [ TP ]
Supported link modes: 100baseT/Full
1000baseT/Full
10000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 100baseT/Full
1000baseT/Full
10000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
Auto-negotiation: on
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
MDI-X: Unknown
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: no


If I move the same cable to any other port (of the 5 available NICs) I get the same result. Link light is on but the ip link command shows everything down except the one I configured at installation.
 
Last edited:
You have "vmbr0", the first "Linux Bridge", that is actually configured. Nothing else is done. So what do you expect?
If you do not set it up in any way, how should it automagically work?

So, depending on what you would like to do, it might make sense to add additional devices to the already defined "vmbr0". It might make sense to add a new, addtional bridge etc.. Nobody besides you can know what you are actually trying to achieve.
 
You have "vmbr0", the first "Linux Bridge", that is actually configured. Nothing else is done. So what do you expect?
If you do not set it up in any way, how should it automagically work?

So, depending on what you would like to do, it might make sense to add additional devices to the already defined "vmbr0". It might make sense to add a new, addtional bridge etc.. Nobody besides you can know what you are actually trying to achieve.
Sorry, thought I had done a better job of laying this out. Per the output above, it looks like the system doesn't see the interfaces as being up. That is the problem. Does that help?
 
Since you are attaching your bridge to enp3s0f0, and you didnt check ethtool above for this interface may be good to verify its up.

If it is, and you have connectivity to your router- can you ping 192.168.1.1? I assume thats your router address.
 
proxmox in this context is dependent on what you tell it to do. post your /etc/network/interfaces file to clarify.
Sorry, I posted the output earlier without the second card installed.


iface enp3s0f1 inet manual

iface enp4s0f0 inet manual

iface enp4s0f1 inet manual

iface ens3f0 inet manual

iface ens3f1 inet manual

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

source /etc/network/interfaces.d/*
 
Since you are attaching your bridge to enp3s0f0, and you didnt check ethtool above for this interface may be good to verify its up.

If it is, and you have connectivity to your router- can you ping 192.168.1.1? I assume thats your router address.
Yes. I can SSH to the Proxmox server and from there, I can ping the router at 192.168.1.1 with good replies.
 
so..... all is well?
No. Still exact same problem: If I'm reading my output corectly, the system only thinks I have 1 interface with a cable connected. I have visually verified that both cables are plugged in and have link lights on their respective ports - at the NIC.
 
Look at your configuration.

The ONLY interface you are using is enp3s0f0. Whether other interfaces have a connection or not, they are not being used.

What are you trying to accomplish? perhaps if you describe what you're after, I can help craft your interfaces file.
 
Look at your configuration.

The ONLY interface you are using is enp3s0f0. Whether other interfaces have a connection or not, they are not being used.

What are you trying to accomplish? perhaps if you describe what you're after, I can help craft your interfaces file.
First. Thanks.

I need one of the 10GbE interfaces to work. There are two problems related to this that I need to resolve:

I have a cable connected to the one I want to use but I can't tell which interface that is in ProxMox because none of them show a "link detected" per the output above.
1. figure out which interface in Proxmox matches the physical port with the cable in it.
2. enable that interface and configure IP info.

I've been stuck at #1