LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] LVS on localhost

To: Joseph Mack NA3T <jmack@xxxxxxxx>
Subject: Re: [lvs-users] LVS on localhost
Cc: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: Tim Vaillancourt <tim@xxxxxxxxxxxxxxxx>
Date: Thu, 24 Mar 2011 10:25:59 -0700
Not a problem! I'd be even more lost without your help.

I run 2.6.32-5-amd64, Debian 6 Squeeze, 64-bit.

I tried these configurations yesterday without any luck:

1)

    ip route add 127.0.0.2 via 127.0.0.1
    ip route add 127.0.0.3 via 127.0.0.1
    ipvsadm -A -t 127.0.0.10:9000 -s rr
    ipvsadm -a -t 127.0.0.10:9000 -t 127.0.0.2 -m
    ipvsadm -a -t 127.0.0.10:9000 -t 127.0.0.3 -m

    I also tried adding a route to 127.0.0.1 for the VIP.

2) Then, for the hell of it, I tried adding a VIP from my eth0/LAN.

    ip route add 127.0.0.2 via 127.0.0.1
    ip route add 127.0.0.3 via 127.0.0.1
    ipvsadm -A -t 192.168.1.100:9000 -s rr
    ipvsadm -a -t 192.168.1.100:9000 -t 127.0.0.2 -m
    ipvsadm -a -t 192.168.1.100:9000 -t 127.0.0.3 -m

Thanks again for the help!

Tim Vaillancourt

On 24/03/11 05:58 AM, Joseph Mack NA3T wrote:
> On Thu, 24 Mar 2011, Julian Anastasov wrote:
>
>>> The ipvsadm syntax I've tried:
>>>
>>> ipvsadm -A -t 127.0.0.1:9000 -s rr
>>> ipvsadm -a -t 127.0.0.1:9000 -r 127.0.0.1:9100 -m
>>> ipvsadm -a -t 127.0.0.1:9000 -r 127.0.0.1:9200 -m
>>
>>     LocalNode is rewritten in 2.6.37. The above commands
>> should work with NFCT enabled or disabled:
>
> I didn't know about this. Sorry Tim, looks like I've been misleading you.
>
>> http://archive.linuxvirtualserver.org/html/lvs-devel/2010-10/msg00134.html 
>>
>
> thanks. Are there instructions on setting up LocalNode and using 
> ipvsadm as a result of these changes?
>
> Thank Joe
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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