ganymedes
Goto Top

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. face-smile

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... face-sad
Well, at least I was able to plug it in to my power socket.

Cheers Mike
routing
networks

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

Lochkartenstanzer
Lochkartenstanzer 20.08.2016 um 16:23:42 Uhr
Goto Top
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


I've tried to setup static routes but obviously I'm doing something wrong... face-sad

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
ganymedes
ganymedes 20.08.2016 um 22:21:30 Uhr
Goto Top
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.
Lochkartenstanzer
Lochkartenstanzer 20.08.2016 um 23:54:34 Uhr
Goto Top
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.

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
ganymedes
ganymedes 21.08.2016 um 13:22:37 Uhr
Goto Top
All good now, it's working! It was my local firewall that blocked traffic... cheers anyway!
aqui
Lösung aqui 21.08.2016 um 13:23:03 Uhr
Goto Top
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 face-wink
ganymedes
ganymedes 21.08.2016 um 13:25:01 Uhr
Goto Top
All good now, it's working! It was my local firewall that blocked traffic... cheers anyway!
aqui
aqui 21.08.2016 um 13:28:19 Uhr
Goto Top
Typical "sunday" problem face-wink