Re: experimenting with 2 ISP's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I mean.... you also have to define the default gateway as a multipath route.

On 8/15/05, Edmundo Carmona <eantoranz@xxxxxxxxx> wrote:
> That's not the right way to set the default GW.
> 
> You have to use IP. Remove your default GWs. then:
> 
> ip route add default netxhop via 196.36.10.114 dev eth0 nexthop via
> 196.168.10.100 dev eth2
> ip route flush cache.
> 
> If you set the routing tables correctly, It should start working right away.
> 
> On 8/15/05, Brent Clark <bclark@xxxxxxxxxxxxxxxxxxxx> wrote:
> > Hi list
> >
> > I have just a added a few rules to my routing table.
> >
> > Would someone be so kind as to see if my setup is correct.
> >
> > My setup is as so
> >
> > eth0
> > IP 196.36.10.114
> > GW 196.36.10.113 (my routers IP)
> >
> > eth1 192.168.111.10
> > PRIVATE LAN
> >
> > eth2
> > IP 192.168.10.200
> > GW 192.168.10.100 (my adsl modem)
> >
> > Please keep in mind that my router that is connected to eth0 has a static ip, where as my adsl modem that is connected to eth2 is dynamically assigned.
> >
> > echo 200 IS >> /etc/iproute2/rt_tables
> > echo 201 TELKOM >> /etc/iproute2/rt_tables
> >
> > /sbin/ip route add 196.36.10.0 dev eth0 src 196.36.10.114 table IS
> > /sbin/ip route add default via 196.36.10.113 table IS
> >
> > /sbin/ip route add 192.168.10.0 dev eth2 src 192.168.10.100 table TELKOM
> > /sbin/ip route add default via 192.168.10.100 table TELKOM
> >
> > /sbin/ip route add 196.36.10.0 dev eth0 src 196.36.10.114
> > /sbin/ip route add 192.168.10.0 dev eth2 src 192.168.10.100
> >
> > /sbin/ip route add default via 196.36.10.113
> >
> > /sbin/ip rule add from 196.36.10.114 table IS
> > /sbin/ip rule add from 192.168.10.100 table TELKOM
> >
> >  From my routing table all seem ok:
> > gate:~# route -n
> > Kernel IP routing table
> > Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> > 196.36.10.0     0.0.0.0         255.255.255.255 UH    0      0        0 eth0
> > 192.168.10.0    0.0.0.0         255.255.255.255 UH    0      0        0 eth2
> > 196.36.10.112   0.0.0.0         255.255.255.248 U     0      0        0 eth0
> > 192.168.111.0   0.0.0.0         255.255.255.0   U     0      0        0 eth1
> > 192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth2
> > 0.0.0.0         196.36.10.113   0.0.0.0         UG    0      0        0 eth0
> > gate:~#
> >
> > If anyone has any tips or advise they would care to add, it would be most appreciated.
> >
> > Kind Regards
> > Brent Clark
> >
> >
> >
>



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux