LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Can VS-DRouting change port ?

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Can VS-DRouting change port ?
From: Horms <horms@xxxxxxxxxxxx>
Date: Fri, 2 Dec 2005 08:14:14 +0000 (UTC)
Cauchy Song <cauchy.song@xxxxxxxxx> wrote:
> /sbin/ipvsadm -C
> /sbin/ipvsadm -A -t 192.168.0.232:80 -s rr
> /sbin/ipvsadm -a -t 192.168.0.232:80 -r 192.168.0.117:80 -g
> /sbin/ipvsadm -a -t 192.168.0.232:80 -r 192.168.0.117:8080 -g
> 
> Destination already exists

If you want to do port mapping you _must_ use LVS-NAT (-m not -g)
and the real server's address _must not_ be on the linux director.
Otherwise LVS will change the real-server's port to that
of the virtual service, which is what is happening here.
In other words, LVS is converting your commands to:

/sbin/ipvsadm -C
/sbin/ipvsadm -A -t 192.168.0.232:80 -s rr
/sbin/ipvsadm -a -t 192.168.0.232:80 -r 192.168.0.117:80 -g
/sbin/ipvsadm -a -t 192.168.0.232:80 -r 192.168.0.117:80 -g

-- 
Horms


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