Download speed test:
root@R3D:~# iperf3 -c spd-rudp.hostkey.ru -p 5202 -t 5 -R
Connecting to host spd-rudp.hostkey.ru, port 5202
Reverse mode, remote host spd-rudp.hostkey.ru is sending
[ 5] local 192.168.0.199 port 38144 connected to 31.192.104.200 port 5202
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 42.5 MBytes 356 Mbits/sec
[ 5] 1.00-2.00 sec 42.3 MBytes 355 Mbits/sec
[ 5] 2.00-3.00 sec 29.1 MBytes 244 Mbits/sec
[ 5] 3.00-4.00 sec 35.3 MBytes 296 Mbits/sec
[ 5] 4.00-5.00 sec 28.9 MBytes 243 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-5.00 sec 182 MBytes 305 Mbits/sec 275 sender
[ 5] 0.00-5.00 sec 178 MBytes 299 Mbits/sec receiver
Upload spped test:
root@R3D:~# iperf3 -c spd-rudp.hostkey.ru -p 5202 -t 5
Connecting to host spd-rudp.hostkey.ru, port 5202
[ 5] local 192.168.0.199 port 38140 connected to 31.192.104.200 port 5202
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 19.2 MBytes 161 Mbits/sec 51 67.9 KBytes
[ 5] 1.00-2.00 sec 6.52 MBytes 54.6 Mbits/sec 48 1.41 KBytes
[ 5] 2.00-3.02 sec 0.00 Bytes 0.00 bits/sec 1 1.41 KBytes
[ 5] 3.02-4.00 sec 0.00 Bytes 0.00 bits/sec 1 1.41 KBytes
^C
After testing the upload speed, traffic through the WAN interface does not move in any direction. All logs are completely silent.
Device tree: https://github.com/openwrt-xiaomi/openwrt/commit/912fe9a77a7ea920b3fded09bd667c6337aea0f4
Kernel log: https://pastebin.com/gAervSy8
System log: [no defects]
Command for restore WAN connect:
ip l set down dev eth0 ; sleep 1 ; ip l set up dev eth0
Network config:
root@R3D:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdb4:63f3:f046::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth1.1'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option device 'eth0.2'
option proto 'dhcp'
config interface 'wan6'
option device 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '5 0t'
ifconfig:
root@R3D:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 40:31:3C:XX:XX:XX
inet6 addr: fe80::4231:3cff:XXXX:XXXX/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15160 errors:0 dropped:0 overruns:0 frame:0
TX packets:47137 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2468315 (2.3 MiB) TX bytes:70703543 (67.4 MiB)
Interrupt:31
root@R3D:~# ethtool eth0
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 1000baseKX/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 1000baseKX/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: ug
Wake-on: d
Current message level: 0x0000003f (63)
drv probe link timer ifdown ifup
Link detected: yes