experimenting with 2 ISP's

Brent Clark bclark at eccotours.dyndns.org
Mon Aug 15 21:19:39 CEST 2005

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

GW (my routers IP)


GW (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 dev eth0 src table IS
/sbin/ip route add default via table IS

/sbin/ip route add dev eth2 src table TELKOM
/sbin/ip route add default via table TELKOM

/sbin/ip route add dev eth0 src
/sbin/ip route add dev eth2 src

/sbin/ip route add default via

/sbin/ip rule add from table IS
/sbin/ip rule add from table TELKOM

 From my routing table all seem ok:
gate:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface UH    0      0        0 eth0 UH    0      0        0 eth2 U     0      0        0 eth0   U     0      0        0 eth1   U     0      0        0 eth2         UG    0      0        0 eth0

If anyone has any tips or advise they would care to add, it would be most appreciated.

Kind Regards
Brent Clark

More information about the netfilter mailing list