LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] LVS on localhost

To: Tim Vaillancourt <tim@xxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] LVS on localhost
Cc: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: Joseph Mack NA3T <jmack@xxxxxxxx>
Date: Wed, 23 Mar 2011 15:02:57 -0700 (PDT)
On Wed, 23 Mar 2011, Tim Vaillancourt wrote:

> Setup LVS. 127.0.0.1:9000 mapping to realservers 127.0.0.2 and 127.0.0.3, no 
> change in port:
>
> "
> thor:~# ipvsadm -A -t 127.0.0.1:9000 -s rr
> thor:~# ipvsadm -a -t 127.0.0.1:9000 -r 127.0.0.2 -m
> thor:~# ipvsadm -a -t 127.0.0.1:9000 -r 127.0.0.3 -m
> "

Hi Tim,

For LocalNode the syntax (off the top of my head) would be 
something like

ipvsadm -A -t $VIP -s rr
ipvsadm -a -t $VIP -r 127.0.0.1
ipvsadm -a -t $VIP -r 127.0.0.2
ipvsadm -a -t $VIP -r 127.0.0.3

where $VIP is the externally advertised IP.

In your ipvsadm table (above), by the time a packet is at 
127.0.0.1, it has already been delivered and beyond where 
ipvs can mess with it.

Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

_______________________________________________
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>