Hi there I think I have figured out how to setup routing but I would like
you linux guru's to
grace me with a moment of your time and your vast wisdom :)
All ip's have been altered to protect the innocent :)
A small 6 node lan with public ip's connected to the internet through PPPoE
dsl.
(The ppp0/eth0 combo shown below is because I'm not sure what interface
shows up on the dsl link since it is PPPoE)
The router's iface to the net is 209.130.183.41 ppp0/eth0
The router's iface to the lan is 209.130.183.42 eth1
The isp's gateway is 199.123.321.199
Node 1 ip is 209.130.183.43
Node 2 ip is 209.130.183.44
Node 3 ip is 209.130.183.45
Node 4 ip is 209.130.183.46
Node 5 ip is 209.130.183.47
So here is my simplied routing table
Destination Gateway GenMask Iface
------------------------------------------------------------------
209.130.183.43 0.0.0.0 255.255.255.0 eth1
209.130.183.44 0.0.0.0 255.255.255.0 eth1
209.130.183.45 0.0.0.0 255.255.255.0 eth1
209.130.183.46 0.0.0.0 255.255.255.0 eth1
209.130.183.47 0.0.0.0 255.255.255.0 eth1
0.0.0.0 199.123.321.199 255.255.255.255 ppp0/eth0
127.0.0.0 0.0.0.0 255.0.0.0
lo
Here are the actual route commands
route add -host 209.130.183.43 eth1
route add -host 209.130.183.44 eth1
route add -host 209.130.183.45 eth1
route add -host 209.130.183.46 eth1
route add -host 209.130.183.47 eth1
route add default gateway 199.123.321.199 ppp0/eth0
route add -net 127.0.0.0 lo
So what do you say? Will this work?
Corbin Lemieux