--- In [email protected], Nileshkumar Pitroda
<pitroda_nil...@...> wrote:
>
> 
> All,
> 
>  Is it possible to configure one (single) squid server to configure
with 2 different ISP's.

>  So we can use both ISP's at time to distribute load.
> 

> Regards

> Nilesh
> 
> 

Try static routes on your squid server,(also try with  single  lan)
For eg

> # ip route show
Sample output:

192.168.2.0/24 dev eth1 proto kernel  scope link  src 192.168.2.1
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.2
default via 192.168.1.254 dev eth0

You can add static route using following command:
ip route add {NETWORK} via {IP} dev {DEVICE}
For example network 192.168.55.0/24 available via 192.168.1.254:

# ip route add 192.168.55.0/24 via 192.168.1.254 dev eth1

Alternatively, you can use old good route command:

# route add -net 192.168.55.0 netmask 255.255.255.0 gw 192.168.1.254
dev eth1

Persistence Static Routing

You need to open /etc/sysconfig/network-scripts/route-eth0 file to
define static routes for eth0 interface:

# cat /etc/sysconfig/network-scripts/route-eth0
Sample Output:

GATEWAY0=192.168.1.254
NETMASK0=255.255.255.0
ADDRESS0=192.168.55.0

GATEWAY1=10.164.234.112
NETMASK1= 255.255.255.240
ADDRESS1=10.164.234.132

How do I define static routing for network 10.0.0.0/8 via 10.9.38.65
router?

Open /etc/sysconfig/network-scripts/route-eth0:

# vi /etc/sysconfig/network-scripts/route-eth0
Append following line:
10.0.0.0/8 via 10.9.38.65
Save and close the file. Restart networking:

# service network restart
Verify new routing table:

# route -n


__________________________________________________________
> Wish to Marry Now? Join MSN Matrimony FREE!
> http://www.in.msn.com/matrimony
> 
> [Non-text portions of this message have been removed]
>


Reply via email to