I have openwrt installed on a TPLink Archer A7
Model TP-Link Archer A7 v5
Architecture Qualcomm Atheros QCA956X ver 1 rev 0
Firmware Version OpenWrt 21.02.0 r16279-5cc0535800 / LuCI openwrt-21.02 branch git-21.231.26241-422c175
Kernel Version 5.4.143
I'm not yet ready to deploy it in my network. I'm still getting it set up.
I'm working on understanding routes and such, and getting ready for multiple LANs eventually.
Right now while I'm working on it, the Router's connected only on one LAN port.
And it's on a different subnet than the rest of my LAN.
The configuration looks like this:
INTERNET
|
|
| enp1s0: WAN ip = XX.XX.XX.XX
MAIN_ROUTER
| enp2s0: ip = 10.1.1.100, 10.199.199.100
|
SWITCH
|
|------------------------------ OPENWRT
| |- 'Internet' empty
| ip = 10.1.1.7, 10.199.199.7 |- 'Ethernet 1' ip = 10.199.199.1
DESKTOP |- 'Ethernet 2' empty
|- 'Ethernet 3' empty
|- 'Ethernet 4' empty
from my MAIN_ROUTER & DESKTOP everything works as normal.
I can get everywhere out on the net.
And I can
ping to OPENWRT @ 10.199.199.1
ssh to OPENWRT @ 10.199.199.1
http to OPENWRT @ 10.199.199.1
From OPENWRT I can only ping internal network on the same LAN segment
ping to DESKTOP @ 10.199.199.7
ping to MAIN_ROUTER @ 10.199.199.100
But nowhere external. e.g.
ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
ping: sendto: Network unreachable
Checking routes on OPENWRT
ip route show
default via 10.199.199.100 dev br-lan onlink
10.199.199.0/24 dev br-lan scope link src 10.199.199.1
ip route get 10.199.199.7
10.199.199.7 dev br-lan src 10.199.199.1
ip route get 10.199.199.100
10.199.199.100 dev br-lan src 10.199.199.1
ip route get 10.1.1.7
10.1.1.7 via 10.199.199.100 dev br-lan src 10.199.199.1
ip route get 10.1.1.100
10.1.1.100 via 10.199.199.100 dev br-lan src 10.199.199.1
ip route get 1.1.1.1
1.1.1.1 via 10.199.199.100 dev br-lan src 10.199.199.1
Looks ok to me.
Testing ping from OPENWRT
ping 1.1.1.1 -c1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
while watching on MAIN_ROUTER
tcpdump -i enp2s0 host 10.199.199.1 -vv -n
16:05:57.757418 IP (tos 0x0, ttl 64, id 57580, offset 0, flags [DF], proto ICMP (1), length 84)
10.199.199.1 > 1.1.1.1: ICMP echo request, id 4050, seq 0, length 64
16:05:57.757657 IP (tos 0xc0, ttl 64, id 48840, offset 0, flags [none], proto ICMP (1), length 112)
10.199.199.100 > 10.199.199.1: ICMP host 1.1.1.1 unreachable, length 92
IP (tos 0x0, ttl 63, id 57580, offset 0, flags [DF], proto ICMP (1), length 84)
10.199.199.1 > 1.1.1.1: ICMP echo request, id 4050, seq 0, length 64
The traffic is getting TO the MAIN_ROUTER, and it looks like it's getting out to 1.1.1.1 too.
But that
10.199.199.100 > 10.199.199.1: ICMP host 1.1.1.1 unreachable, length 92
looks like a problem.
What I'm confused by is that when testing from MAIN_ROUTER to OPENWRT it looks OK
ip route get 10.199.199.1
10.199.199.1 dev enp2s0 src 10.199.199.100 uid 0
cache
ping -c1 10.199.199.1
PING 10.199.199.1 (10.199.199.1) 56(84) bytes of data.
64 bytes from 10.199.199.1: icmp_seq=1 ttl=64 time=0.355 ms
--- 10.199.199.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.355/0.355/0.355/0.000 ms
I guess I'm missing a route somewhere.
Don't have a clue where though :-/
Any hints on what's missing, where? So I can get out to the net from the OPENWRT when only connected by the LAN?