You are not logged in.

#1 2018-09-24 09:15:08

Lenry
Member
From: Szeged, Hungary
Registered: 2010-03-27
Posts: 66
Website

[SOLVED] Only 100Mbps with r8168 GB Ethernet controller

Hi everyone!

I only got 100Mbps and half duplex speeds with my NIC, and I'm not sure what causes the problem. It's an integrated NIC on an MSI H110M PRO-VD PLUS motherboard. I replaced the cable and tried to connect to another switch. Due to the motherboard, I'm unable the put a separate NIC to the machine, there simply isn't enough space... hmm

Tried to use the r8168 driver found in the repos, but had the same result.

These are the outputs of ethtool and lshw

[root@vavatch lenry]# ethtool enp2s0
Settings for enp2s0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full 
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 100Mb/s
        Duplex: Half
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes 
[root@vavatch lenry]# lshw -c network
  *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: enp2s0
       version: 15
       serial: 4c:cc:6a:bc:44:05
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=off broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.210 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
       resources: irq:16 ioport:d000(size=256) memory:de104000-de104fff memory:de100000-de103fff
[root@vavatch lenry]# lsmod | grep r816
r8169                  90112  0
mii                    16384  1 r8169
[root@vavatch lenry]# lspci | grep Ethernet
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

Otherwise it works perfectly, as I never experienced interrupted connections, dropped packages, or weird errors in dmesg, so I suspect some driver or configurational problem, but I have no idea where or what to look.

Thanks for the help

Last edited by Lenry (2018-09-24 14:59:50)

Offline

#2 2018-09-24 14:10:39

seth
Member
Registered: 2012-09-03
Posts: 63,054

Re: [SOLVED] Only 100Mbps with r8168 GB Ethernet controller

Did you deliberately disable autoneg?

ethtool -s enp2s0 speed 1000 duplex full autoneg off

You could also try to set "autoneg on".

Does "modinfo r8169" advertise some parameter you might switch here?

Offline

#3 2018-09-24 14:59:08

Lenry
Member
From: Szeged, Hungary
Registered: 2010-03-27
Posts: 66
Website

Re: [SOLVED] Only 100Mbps with r8168 GB Ethernet controller

seth wrote:

Did you deliberately disable autoneg?

ethtool -s enp2s0 speed 1000 duplex full autoneg off

You could also try to set "autoneg on".

Does "modinfo r8169" advertise some parameter you might switch here?


I didn't notice Auto-negotiation was off!
Thank you, it immediately solved my problem.

I don't remember setting that, but this isn't the first hardware under this installation of OS, probably the change of HW enviroment caused it. At least I have no other ideas...

Anyway, thank you again!

Offline

#4 2018-09-24 15:04:17

seth
Member
Registered: 2012-09-03
Posts: 63,054

Re: [SOLVED] Only 100Mbps with r8168 GB Ethernet controller

Cool.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

You might have to do this with every reboot (actually, I expect that), depending on what you use to configure your network, you can maybe invoke it there.

Offline

Board footer

Powered by FluxBB