All of lore.kernel.org
 help / color / mirror / Atom feed
* experimenting with 2 ISP's
@ 2005-08-15 19:19 Brent Clark
  2005-08-15 21:06 ` Edmundo Carmona
  0 siblings, 1 reply; 3+ messages in thread
From: Brent Clark @ 2005-08-15 19:19 UTC (permalink / raw)
  To: iptables

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-15 21:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-15 19:19 experimenting with 2 ISP's Brent Clark
2005-08-15 21:06 ` Edmundo Carmona
2005-08-15 21:08   ` Edmundo Carmona

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.