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-Key: 313157

Url: https://administrator.de/contentid/313157

Printed on: April 18, 2024 at 22:04 o'clock

Member: Lochkartenstanzer
Lochkartenstanzer Aug 20, 2016 at 14:23:42 (UTC)
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
Member: ganymedes
ganymedes Aug 20, 2016 at 20:21:30 (UTC)
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.
Member: Lochkartenstanzer
Lochkartenstanzer Aug 20, 2016 at 21:54:34 (UTC)
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
Member: ganymedes
ganymedes Aug 21, 2016 at 11:22:37 (UTC)
Goto Top
All good now, it's working! It was my local firewall that blocked traffic... cheers anyway!
Member: aqui
Solution aqui Aug 21, 2016 at 11:23:03 (UTC)
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
Member: ganymedes
ganymedes Aug 21, 2016 at 11:25:01 (UTC)
Goto Top
All good now, it's working! It was my local firewall that blocked traffic... cheers anyway!
Member: aqui
aqui Aug 21, 2016 at 11:28:19 (UTC)
Goto Top
Typical "sunday" problem face-wink