Flint2 LAN1 @100mbps

I'm seeing a strange problem on my Flint2.
The speed on LAN1 seems not able to negotiate the 2500 without forcing it from command line.
From dmesg I saw this:

[ 7089.449218] mt7530 mdio-bus:1f lan1: Link is Down
[ 7089.454058] br-lan: port 1(lan1) entered disabled state
[ 7110.717072] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control rx/tx

Seems that the port is not able to negotiate the 1000 or the 2500 automatically.

Is the device connected to LAN1 able to serve gigabit?

yes! also the 2500!

tested with:

  • mac book pro (port at 2.5gbps)
  • protectli (port at 1gbps)
  • fritzbox 6000 (port at 1gbps and 2.5gbps)

all the time I saw a sort of renegotiation and the port goes to 100mbps

Only happens on LAN1?

yes only on LAN1
the others ports are working well at 1gbps

probably related to: ramips: mt7530 not works autodetection 100Mb speed ethernet link on kernel 6.6 · Issue #15348 · openwrt/openwrt · GitHub

@bruce will have a look into this, I assume.

May I know these devices only go to 100Mbps?

Could you please list their NIC chip? like MT7530, RTL5186. I try to reproduce if I have these NIC.

I don't if this can help

on my mac:

Ethernet:

USB 10/100/1G/2.5G LAN:

  Bus: USB
  Vendor Name: Realtek
  Product Name: USB 10/100/1G/2.5G LAN
  Vendor ID: 0x0bda
  Product ID: 0x8156
  USB Link Speed: Up to 5 Gb/s
  Driver: com.apple.driver.usb.cdc.ncm
  BSD Device Name: en9
  MAC Address: d8:ec:5e:bc:84:0e
  AVB Support: No
  Maximum Link Speed: 2.5 Gb/s

on my linux:

Settings for enp0s25:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Auto-negotiation: on
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
MDI-X: on (auto)
netlink error: Operation not permitted
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes

00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (3) I218-LM (rev 03)

WAN2 or LAN1
Is this checked?


I also have the RTL8156 NIC which same as your Mac, it can work as 2.5Gbps.

  1. Please check your network cable.
  2. Please connect to the USB RTL 5156 NIC to Windows, and see if it works?

tried also on my PFSENSE:

[2.7.2-RELEASE][root@pfsense.meox.dev]/root: ifconfig
igb0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
description: WAN
options=4e120bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,MEXTPG>
ether 64:62:66:21:0b:04
inet 192.168.8.240 netmask 0xffffff00 broadcast 192.168.8.255
inet6 fe80::6662:66ff:fe21:b04%igb0 prefixlen 64 scopeid 0x1
media: Ethernet autoselect (100baseTX )
status: active
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>

the hw is:

igb0@pci0:1:0:0: class=0x020000 rev=0x03 hdr=0x00 vendor=0x8086 device=0x1539 subvendor=0x8086 subdevice=0x0000
vendor = 'Intel Corporation'
device = 'I211 Gigabit Network Connection'
class = network
subclass = ethernet

I also tried different net cables!
same result

The issue of hardware compatibility, it is difficult for us to resolve such issues.
May can try in SSH of Flint 2 to fix the consultation rate of Ethernet interface.

A solution could be have the possibility from the UI to set a subset of the possible speed for a specific interface.
In this way I can specify the 1000 and the 2500 mbps for the LAN1 without having to enter via the shell and change stuff directly.

thanks

Yep, thanks, I think PM team will consider that.

SSH temporary solution:

#Check the router WAN interface:
ifconfig

#Fixed the negotiation rate for the WAN, example, the WAN is eth1, and fixed 1000Mbps
​ethtool -s eth1 speed 1000 duplex full

is there a way to make those changes permanent?

Do you have this issue also on 4.6.3-op24 release candidate?

Yep, until reset the router.

Update: * reset -> reboot.

permanent config please see admon's comment.

I tried to force the speed on the other device to 1000mbps.
Also in this case the LAN1 refuse to negotiate the same speed and the carrier don't goes up.

So the only way for now is to use a 1gbps port.