Is a static route the solution?
Dear experts
While I'm actually a software engineer and not a network engineer, I'm requesting your help.
Setup:
- Router 1, connected to my ISP (WAN) 192.168.192.1/24
- Switch, port based VLAN
- Router 2, EdgeRouter Lite, eth0 (WAN, internet) connected to router 1, 192.168.192.21
- Router 2, EdgeRouter Lite, eth1 (LAN) connected to router 1, 172.16.4.1/22, DHCP
- Router 2, EdgeRouter Lite, eth2 (LAN) connected to router 1, 172.16.8.1/22, DHCP currently not in use
What's ok:
- Clients connected to router 1, no problems
Problem:
- Clients connected to router 2, no problems to access internet but can't connect to network 192.168.192.0/24 on router 1
I've tried to setup static routes but obviously I'm doing something wrong...
Well, at least I was able to plug it in to my power socket.
Cheers Mike
While I'm actually a software engineer and not a network engineer, I'm requesting your help.
Setup:
- Router 1, connected to my ISP (WAN) 192.168.192.1/24
- Switch, port based VLAN
- Router 2, EdgeRouter Lite, eth0 (WAN, internet) connected to router 1, 192.168.192.21
- Router 2, EdgeRouter Lite, eth1 (LAN) connected to router 1, 172.16.4.1/22, DHCP
- Router 2, EdgeRouter Lite, eth2 (LAN) connected to router 1, 172.16.8.1/22, DHCP currently not in use
What's ok:
- Clients connected to router 1, no problems
Problem:
- Clients connected to router 2, no problems to access internet but can't connect to network 192.168.192.0/24 on router 1
I've tried to setup static routes but obviously I'm doing something wrong...
Well, at least I was able to plug it in to my power socket.
Cheers Mike
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 313157
Url: https://administrator.de/forum/is-a-static-route-the-solution-313157.html
Ausgedruckt am: 20.04.2025 um 21:04 Uhr
7 Kommentare
Neuester Kommentar
Zitat von @ganymedes:
Problem:
- Clients connected to router 2, no problems to access internet but can't connect to network 192.168.192.0/24 on router 1
Problem:
- Clients connected to router 2, no problems to access internet but can't connect to network 192.168.192.0/24 on router 1
I've tried to setup static routes but obviously I'm doing something wrong... 
On which box? You do have to enter the static route in router 1 Net 172.16.4.0/22 to gateway 192.168.192.21 (=Router2).
Or you the the Edgerouter to do NAT.
lks
Zitat von @ganymedes:
Well there is a static route on router 1, destination 172.16.4.0 via 192.168.192.21. And on picture 1 you can see the static routes on router 2.
Well there is a static route on router 1, destination 172.16.4.0 via 192.168.192.21. And on picture 1 you can see the static routes on router 2.
What results do you get, if you do a traceroute?
Do some network sniffing with wireshark ont the targets. Did you check the windows firewall for apropriate rules?
lks
The major question as always is: What is the default gateway address of clients ?
Due to tha fact that both routers 1 and 2 are in the same IP segment 192.168.192.0 /24 and clients having this router as the default router and cant connect to subnets behind router 1 its pretty much obvious that router 2 is missing some static routes here.
Guess he only has the default route to the provider and hence is not "seeing" that the 172.16. networks are behind router 1.
Therefor you need a static route here on router 2:
Either a summary route
ip route 172.16.0.0 255.255.240.0 gateway: 192.168.192.1
which routes all networks from 172.16.0.0 to 172.16.15.254
or 2 dedicated subnet routes
ip route 172.16.4.0 255.255.252.0 gateway: 192.168.192.1
ip route 172.16.8.0 255.255.252.0 gateway: 192.168.192.1
That should do the trick !
As always: Traceroute and Pathping are your best friends here
Due to tha fact that both routers 1 and 2 are in the same IP segment 192.168.192.0 /24 and clients having this router as the default router and cant connect to subnets behind router 1 its pretty much obvious that router 2 is missing some static routes here.
Guess he only has the default route to the provider and hence is not "seeing" that the 172.16. networks are behind router 1.
Therefor you need a static route here on router 2:
Either a summary route
ip route 172.16.0.0 255.255.240.0 gateway: 192.168.192.1
which routes all networks from 172.16.0.0 to 172.16.15.254
or 2 dedicated subnet routes
ip route 172.16.4.0 255.255.252.0 gateway: 192.168.192.1
ip route 172.16.8.0 255.255.252.0 gateway: 192.168.192.1
That should do the trick !
As always: Traceroute and Pathping are your best friends here