How to pass two routers

Dario Lesca d.lesca at solinos.it
Wed Sep 8 14:17:41 UTC 2010


Il giorno mer, 08/09/2010 alle 09.28 +0200, roland ha scritto:
> Is there a way to tell the server at site A to pass all traffic  
> 192.168.0.0/24 to site  B? 

Suppose

 - router on lan B have IP 192.168.0.254/24
 - router on lan A have IP 192.168.9.254/24
 - server on lan A have IP 192.168.9.69/24 and default GW 192.168.9.254

on server 192.168.9.69/24 run this command line:

# ip route rep 192.168.0.0/24 via 192.168.0.254

Now server 192.168.9.69/24 can see router B and also all host of lan B
with GW 192.168.0.254 and a static route for see lan A (some think like
this (ip route rep 192.168.9.0/24 via 192.168.9.254)

It's also possible set the route on router A and B, in this case is not
necessary set the route on any host of lan A and B 

hope this help

-- 
Dario Lesca <d.lesca at solinos.it>



More information about the users mailing list