Hi,
I have cheap board JA76PF2 - which has two GE ports. On it there is installed OpenWRT 18.06.2 r7676-cddd7b4c77
Here is configuration:
root@xxxx:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fde0:b4b4:c302::/48'
config interface 'lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option _orig_ifname 'eth1'
option _orig_bridge 'true'
option ifname 'eth1'
option ipaddr '172.17.0.1'
option force_link '0'
config interface 'wan'
option _orig_ifname 'eth0'
option _orig_bridge 'false'
option ifname 'eth0'
option proto 'dhcp'
My problem is with interfaces speed. Ethtool reports on both eth and eth1 1000 mbps negotiated.
WAN:
root@xxx:~# ethtool eth0
Settings for eth0:
Supported ports: [ ]
Supported link modes: 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: external
Auto-negotiation: on
Current message level: 0x000000ff (255)
drv probe link timer ifdown ifup rx_err tx_err
Link detected: yes
LAN:
root@xxx:~# ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/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
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 4
Transceiver: external
Auto-negotiation: on
Current message level: 0x000000ff (255)
drv probe link timer ifdown ifup rx_err tx_err
Link detected: yes
But swconfig reports 100 mbps for Port 1 where outside traffic goes. So I can't get more then 100mbps speed:
root@xxx:~# swconfig dev switch0 port 1 get link
port:1 link:up speed:100baseT full-duplex auto
switch0 port 1 seems to be bound to WAN (!). Why I assume that?:
root@xxx:~# swconfig dev switch0 get arl_table
address resolution table
Port 0: MAC xx:xx:xx:xx:xx:86
Port 1: MAC xx:xx:xx:xx:xx::14
Mac address of Port 0 is same as my eth0.
Speed of Port 0 is 1000 mbps - the problem is with Port 1 which has a speed of 100 mbps and I thing this is limiting my wget -O /dev/null "http://noc.pirx.pl/500mb.bin"
to ~70 mbps
Can someone help me to debug that problem?