[SOLVED] Speed issue with a network card

lumox

Member
May 29, 2020
111
5
23
42
I added a network card to my Proxmox host. I "attached" to it a virtual switch as well for my internal VMs, but it seems that there is some problem with it:


Bash:
root@pve:~# ifconfig
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 00:18:f3:xx:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 949979  bytes 1185436281 (1.1 GiB)
        RX errors 0  dropped 107  overruns 0  frame 0
        TX packets 1015475  bytes 1288597630 (1.2 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp5s1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:0a:cd:xx:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 7039  bytes 1445959 (1.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7039  bytes 1445959 (1.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tap102i0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST>  mtu 1500
        ether 42:64:7e:54:xx:yy  txqueuelen 1000  (Ethernet)
        RX packets 22454  bytes 8449220 (8.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 67419  bytes 5964915 (5.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tap102i1: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST>  mtu 1500
        ether 1a:d4:a1:2e:xx:yy  txqueuelen 1000  (Ethernet)
        RX packets 14  bytes 1648 (1.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 60  bytes 5270 (5.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tap105i0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST>  mtu 1500
        ether 6e:36:c6:00:xx:yy  txqueuelen 1000  (Ethernet)
        RX packets 51  bytes 4396 (4.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3  bytes 726 (726.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vmbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.3.201  netmask 255.255.255.0  broadcast 0.0.0.0
        inet6 fe80::218:f3ff:fe0x:xxx  prefixlen 64  scopeid 0x20<link>
        ether 00:18:f3:xx:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 643784  bytes 1161830833 (1.0 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 196630  bytes 1239746230 (1.1 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vmbr1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::20a:cdff:fe38:a60f  prefixlen 64  scopeid 0x20<link>
        ether 00:0a:cd:38:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 63  bytes 4434 (4.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 18  bytes 1596 (1.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@pve:~# cat /sys/class/net/enp5s1/speed
10
root@pve:~# cat /sys/class/net/enp3s0/speed
1000
root@pve:~# cat /sys/class/net/vmbr1/speed
10
root@pve:~# cat /sys/class/net/vmbr0/speed
1000

As you can see, I got 10 both for the physical device and for the vmbr1.
it should be a 1000 one instead.
For the record, enp3s0 is my WAN and enp5s1 is my LAN.

Could you help figure it out please?
Thanks
 
Last edited:
hmmm

Bash:
root@pve:~# ethtool enp5s1
Settings for enp5s1:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 10Mb/s
        Duplex: Half
        Auto-negotiation: on
        Port: MII
        PHYAD: 32
        Transceiver: internal
        Supports Wake-on: pumbg
        Wake-on: d
        Current message level: 0x00000007 (7)
                               drv probe link
        Link detected: no

Mybe I found it out..Duplex:Half
So, what should I do now?
 
Looks like autonegotiation isn't working as it should. Replace the cable, check connectors on switch and server for dust or any other thing which may block good connection, check that the switch has autonegotiation enabled for that port and also try forcing speed on the switch to 100Mbps.

The supported speeds reported by ethtool do not show gigabit speeds, only 10/100 Half/Full duplex.
 
Looks like autonegotiation isn't working as it should. Replace the cable, check connectors on switch and server for dust or any other thing which may block good connection, check that the switch has autonegotiation enabled for that port and also try forcing speed on the switch to 100Mbps.

The supported speeds reported by ethtool do not show gigabit speeds, only 10/100 Half/Full duplex.

I think I fixed it finally:

I added this line:

Code:
pre-up /usr/sbin/ethtool -s enp5s1 speed 100 duplex full autoneg off

to file /etc/network/interfaces

then I reboot and now:


Bash:
root@pve:~# ethtool enp5s1
Settings for enp5s1:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 100Mb/s
        Duplex: Full
        Auto-negotiation: off
        Port: MII
        PHYAD: 32
        Transceiver: internal
        Supports Wake-on: pumbg
        Wake-on: d
        Current message level: 0x00000007 (7)
                               drv probe link
        Link detected: no

I hope that I fixed it for good.

Thanks
 
  • Like
Reactions: MaTTiQ and PhaseIV

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!