LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] 2 directors, 2 different networks

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] 2 directors, 2 different networks
From: Janusz Krzysztofik <jkrzyszt@xxxxxxxxxxxx>
Date: Mon, 01 Oct 2007 13:32:18 +0200
jcpetit@xxxxxxxxxxx napisał(a):
> Each realserver
> eth0 : IP (192.168.1.10x) / GW (192.168.1.254)
> eth1 : IP (192.168.2.10x) / GW (192.168.2.254)
> 
> I think we just need to established that gateway must be 192.168.1.254 for
> eth0 and 192.168.2.254 for eth1 on each realservers. But I just don't know
> how.

For example:
  ip rule add prio 1000 from 192.168.2.201 lookup 100
  ip route add table 100 default via 192.168.2.254 dev eth1

Janusz





<Prev in Thread] Current Thread [Next in Thread>