I am confused here. If the setup is as simple as you say (the two computers with the router actually having the external access) why do you need to route the network traffic manually?
It should happen automatically as long as you have your netmasks set correctly. It should know to look for 10.0.0.x addresses on the local network.
But, Say you had a network that went like this:
router a 172.23.23.1 ------- bunch of computers 172.23.23.x
172.23.24.253
|
|
|
172.23.23.253
router b 172.23.24.1------ bunch of computers 172.23.24.x
On all the computers BEHIND router a you would need issue the command
Code:
route -n add -net 172.23.24 172.23.23.1
And for the computers behind router b you would need to issue the command
Code:
route -n add -net 172.23.23 172.23.24.1
Each router would have two network cards (one on each network). 172.23.x.1 for the local network they control and 172.23.x.253 for their connection to the other network they don't control.
You would setup something like this only in very special circumstances (I can think of one off the top of my head -- having one network firewalled from the other). And I don't think this is what you are trying to do.