[LARTC] 2 ISP connection sharing problem

Pan'ko Alexander pankoAA at yandex.ru
Mon Sep 3 20:15:57 CEST 2007


On Mon, 3 Sep 2007 22:57:06 +0500
Arman <arman.anwar at gmail.com> wrote:

> I have divided my network into 2 parts now that is 193.168.3.127/25 and
> 192.168.3.128/25. I want to route part1 to ISP1 and Part 2 to ISP2. I have
> made changes into rules. But I think my Tables T1,T2 are not used and
> default table is in use. How can I command to use tables T1,T2 instead of
> default table. route command output is
> 
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.3.0     *               255.255.255.0   U     0      0        0 eth0
> 203.81.213.0    *               255.255.255.0   U     0      0        0 eth2
> 192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
> 169.254.0.0     *               255.255.0.0     U     0      0        0 eth2
> default         203.81.213.1    0.0.0.0         UG    0      0        0 eth2
> 

What is in rules?

ip rule list

You need there:

xxxx:      from 193.168.3.127/25 lookup T1
xxxx:      from 193.168.3.128/25 lookup T2

Then you need NAT.
That is all...

-- 

With best regards, Pan'ko Alexander.



More information about the LARTC mailing list