linux router with two gateways to internet
I've to setup a small business netwerk with a debian router, the network is
a 192.168.0.0/24 and the router has two gateways, a adsl connection and
another broadband connection. Default gateway points to the adsl, all
clients are masquereded.
Well, problem is that about 10 clients should be routed to the other
broadband connection but just adding a host route won't give a internect
connection.
route -n will show:
195.190.xxx.xxx 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
213.93.xx.xx 0.0.0.0 255.255.255.192 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 195.190.xxx.xxx 0.0.0.0 UG 0 0 0 ppp0
If i want to have a host routed to the eth0 i would add a route like
route add -host 192.168.0.10 dev eth0
general masquereding rule is added for the full 192.168.0.0/24 netwerk, it
should figure out itself what external ip to use for the masquereding since
routing will be done before ? masquereding.
But after adding a route I won't even get a reply from the router when I
send echo-replys from the client to the router.
I'm probably missing a point here, anyone got an idea?
Frank
ps: due to some reasons we can't work with subnets, it has to be done with
static host routes..
Reply to: