LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: please help...

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: please help...
From: "Zorro" <malalon@xxxxxxxxxxxxxx>
Date: Wed, 20 Mar 2002 19:57:05 +0100
On 02-03-16 at 14:51 Joseph Mack wrote:

>Zorro wrote:
>> 
>> Hi.
>> 
>> So I've tried. I've read "Routing in Linux 2.2" and "Advanced Routing
>HOWTO".
>> Tried various possibilities of "ip route add" command and still can't do
>it. Can
>> anyone help me?
>
>I assume that you have two concurrently operating LVS-NAT directors,
>forwarding
>requests to two RS. Lets say you are serving http and the directors are
>forwarding
>requests to VIP1:80 and VIP2:80. Each realserver will have to be offering
>a service
>for each director, ie 2 http services on say RIP1:80 and RIP1:8080,
>RIP2:80 and RIP2:8080
>(or each RS can have 2 RIPs each offering service on port 80). These two
>services can
>be reading the same files in DOCROOT.
>
>Now you have replies coming from two IP:ports on each realserver. iproute2
>allows
>routing by src_addr and/or src_port.

Lets say I got one RS and two NAT DIRs.

RS:

RIP1:   192.168.1.2/24 dev eth0
RIP2    192.168.2.2/24 dev eth0:10

DIR1:

VIP:    x.x.x.69        eth0:110
DIP     192.168.1.1

DIR2:

VIP:    x.x.x.70        eth0:110
DIP     192.168.2.1

I want RS to work with DIR1 and DIR2.

I can add a route on RS to each DIR but only alone, never together.
Everything is fine, when I'm adding route to DIR1:

ip route add src 192.168.1.2 via 192.168.1.1

but then I can't add the second route:

ip route add src 192.168.2.2 via 192.168.2.1:

"RTNETLINK answers: File exists"

How to add the second route?

Thanks,

M.





-- 

Okresl Swoje potrzeby - my znajdziemy oferte za Ciebie!
[ http://oferty.onet.pl ]



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