News: This forum is now permanently frozen.
Pages: [1]
Topic: Static route not routing  (Read 1562 times)
« on: November 15, 2012, 15:28:47 »
Phatsta *
Posts: 12

Hello,

Before I go rushing into calling this a bug I'd like to verify that I'm not an idiot, which I probably am  Grin

I have a m0n0 running as router between 4 networks; 3 LAN and 1 WAN (internet). The problem is on the LAN side where I've added static routes to be able to reach one network from the other and vice versa. And I know this network isn't according to best practice but I simply haven't got a choice at this point.

All below machines are VM's on a ESXi host.
m0n0 manages 10.0.0.0/8 network with an ip of 10.0.0.1.
Win2003#1 manages 172.23.0.0/16 and has ip's 10.0.0.20 (if_A) and 172.23.1.1 (if_B) on each side.
Win2003#2 manages 172.24.0.0/16 and has ip's 10.0.0.21 (if_A) and 172.24.1.1 (if_B) on each side.

The 172.x.x.x networks can both ping hosts on their own and the 10.x.x.x network, but not each others network. The 10.x.x.x network however cannot ping any hosts except on it's own network.

In the m0n0 I've set these static routes:
Interface LAN, dest 172.23.0.0 mask 255.255.0.0 use gateway 10.0.0.20
Interface LAN, dest 172.24.0.0 mask 255.255.0.0 use gateway 10.0.0.21

On the Win2003#1 router I've set the corresponding:
Interface if_A dest 172.23.0.0 mask 255.255.0.0 use gateway 172.23.1.1
Interface if_B dest 10.0.0.0 mask 255.0.0.0 use gateway 10.0.0.20

On the Win2003#2 router I've set the corresponding:
Interface if_A dest 172.24.0.0 mask 255.255.0.0 use gateway 172.24.1.1
Interface if_B dest 10.0.0.0 mask 255.0.0.0 use gateway 10.0.0.21

Am I doing something wrong, or is there really no reason for not being able to ping between networks?

Thanks for your time!

/Daniel
« Reply #1 on: November 30, 2012, 19:33:07 »
Lee Sharp *****
Posts: 517

I can not understand what you are describing...  Can you just post all of the routers, and interfaces with default gateways you have?  Also, static routes only go in the routers, not other servers...
« Reply #2 on: December 09, 2012, 16:10:58 »
Јаневски ***
Posts: 153

There's always a reason for things to or not to happen in any state system.
The question is what is that reason for the situation in the current state subsystem?

You could connect them directly:
On Win1 -  Interface if_B dest 172.24.0.0 mask 255.255.0.0 use gateway 10.0.0.21
On Win2 - Interface if_B dest 172.23.0.0 mask 255.255.0.0 use gateway 10.0.0.20

Or add default gw on both Win 10.0.0.1 - m0n0 and put rules to allow traffic.
Also You need to add outbound NAT on m0n0 for internet access.

 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines