I have a dual homed Linux machine that I am using to configure a
router, remotely. To accomplish this, I vpn into the network and then
ssh into the Linux machine. After which, I can telnet to my router.
However I am not sure how to configure the routing and gateway on the
Linux. For example, I have 192.168.1.0 network for ssh/Linux-management
and 10.0.0.0 network for traffic/router-management. In the LinuxI put
/etc/sysconfig/network : GATEWAY=10.10.10.1 and I put
/etc/sysconfig/network-scripts/route-eth1 : 192.128.1.0 via
192.168.1.1. This works, but how do I configure for traffic across
multiple routers? By that I mean, the 10.20.0.0/16 network on the other
side of my router and a 10.30.0.0/16 network on the other side of
another router. I suppose that I need a couple of static route entries
that should say something like the following and go in a file:
10.10.0.0 via 10.10.10.1
10.20.0.0 via 10.20.10.1
10.30.0.0 via 10.30.10.1
Which file should these static route entries go into?
Should I create a route-eth0 and add them into this file?
I've just started learning about routing so this is a little confusing.
This is more or less a learning excersize to help me understand it a
little better.
VPN ---> SSH ---> Linux ---> Router ---> Router ---> Router ---> Etc...
|