Hi, I am transitioning from a working (release 19.07) OpenWRT device (Zyxel 2812) to a new device, NanoPI R2S. I am using the latest available snapshot for that device.
Situation: OpenWRT device is a router, behind a Draytek VDSL modem in bridge mode (RFC1483).
Problem is that I cannot get WAN connectivity to work. The configuration is pretty much the same; dhcp on the WAN interface with an additional interface ("modem") to allow access to the modem user interface (on 192.168.2.1).
Please see below some outputs. I have masked my public IP address.
Other facts:
- The R2S WAN interface works fine it it's in the LAN behind the existing Zyxel.
- I can access the modem UI just fine via web browser from the R2S LAN, ping also works.
- This happens with latest OpenWRT snapshot for R2S as well as with the most recent dev build by @jayanta525.
- The modem can handle switching a device just fine; I tried my Windows laptop, it gets my public IP, and connects to the Internet just fine.
- Before I tested that, I tried to copy the MAC address from the working Zyxel, hence you will see 00:11:22:33:44:55 twice below.
Any suggestions on where to look?
R2S output:
root@castor:~# uname -a
Linux castor 5.4.52 #0 SMP PREEMPT Fri Jul 31 21:50:38 2020 aarch64 GNU/Linux
root@castor:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.2/24 brd 192.168.2.255 scope global eth0
valid_lft forever preferred_lft forever
inet XXX.YY.ZZ.200/25 brd XXX.YY.ZZ.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::211:22ff:fe33:4455/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether 46:07:cf:44:7a:f4 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/24 brd 10.0.0.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fd12:4c15:1f7b::1/60 scope global
valid_lft forever preferred_lft forever
inet6 fe80::4407:cfff:fe44:7af4/64 scope link
valid_lft forever preferred_lft forever
root@castor:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 XXX.YY.ZZ.129 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
XXX.YY.ZZ.128 0.0.0.0 255.255.255.128 U 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
root@castor:~# ping -c1 -W3 XXX.YY.ZZ.129
PING XXX.YY.ZZ.129 (XXX.YY.ZZ.129): 56 data bytes
--- XXX.YY.ZZ.129 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
root@castor:~# ping -c1 -W3 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
64 bytes from 192.168.2.1: seq=0 ttl=255 time=0.532 ms
--- 192.168.2.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 0.532/0.532/0.532 ms
root@castor:~# ping -c1 -W3 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
--- 1.1.1.1 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
root@castor:~#
Zyxel output:
root@castor:~# uname -a
Linux castor 4.14.171 #0 SMP Thu Feb 27 21:05:12 2020 mips GNU/Linux
root@castor:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff
inet6 fe80::211:22ff:fe33:4455/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:0c:43:30:62:00 brd ff:ff:ff:ff:ff:ff
4: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether b0:b2:dc:10:3e:fb brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/24 brd 10.0.0.255 scope global eth0.1
valid_lft forever preferred_lft forever
inet6 fd88:aa2e:255b::1/60 scope global
valid_lft forever preferred_lft forever
inet6 fe80::b2b2:dcff:fe10:3efb/64 scope link
valid_lft forever preferred_lft forever
5: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.2/24 brd 192.168.2.255 scope global eth0.2
valid_lft forever preferred_lft forever
inet XXX.YY.ZZ.200/25 brd XXX.YY.ZZ.255 scope global eth0.2
valid_lft forever preferred_lft forever
inet6 fe80::211:22ff:fe33:4455/64 scope link
valid_lft forever preferred_lft forever
root@castor:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 XXX.YY.ZZ.129 0.0.0.0 UG 0 0 0 eth0.2
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.1
XXX.YY.ZZ.128 0.0.0.0 255.255.255.128 U 0 0 0 eth0.2
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.2
root@castor:~# ping -c1 -W3 XXX.YY.ZZ.129
PING XXX.YY.ZZ.129 (XXX.YY.ZZ.129): 56 data bytes
64 bytes from XXX.YY.ZZ.129: seq=0 ttl=255 time=9.879 ms
--- XXX.YY.ZZ.129 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 9.879/9.879/9.879 ms
root@castor:~# ping -c1 -W3 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: seq=0 ttl=61 time=11.486 ms
--- 1.1.1.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 11.486/11.486/11.486 ms
root@castor:~# ping -c1 -W3 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
64 bytes from 192.168.2.1: seq=0 ttl=255 time=1.154 ms
--- 192.168.2.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 1.154/1.154/1.154 ms
root@castor:~#