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
|