LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] change of behavior with ipvsadm from centos 5 to centos 6

To: "'lvs-users@xxxxxxxxxxxxxxxxxxxxxx'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] change of behavior with ipvsadm from centos 5 to centos 6
From: Besse Mickael <Mickael.Besse@xxxxxxxxxxxxx>
Date: Thu, 21 Feb 2013 16:27:52 +0100
Hello

I have a change of behavior with ipvsamd from centos 5 to centos 6.
I use ipvsadm to dispatch http. In this case, Ipvasadm and http run on the same 
server.
With centos 5, connect to one server when I do a TELNET VIP 80 on the server , 
the telnet doesn't care of ipvsadm and I think the VIP monted in loopback 
directly respond. This is the behavior I want
But now with centos6 when I do a TELNET VIP 80 on the server, the telnet enter 
in the ipvsadm virtual table. Why the VIP mounted in loopback doesn't respond 
directly. ?


Here is the configuration to reproduce the case :


The VIP is 10.30.145.179 mounted in loopback and in eth0 :

[root@lsn21510<mailto:root@lsn21510> ~]# ip addr sh
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet 10.30.145.179/32 brd 10.30.145.179 scope global lo:10
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
link/ether 00:0c:29:9e:51:87 brd ff:ff:ff:ff:ff:ff
inet 10.30.145.178/22 brd 10.30.147.255 scope global eth0
inet 10.30.145.179/32 scope global eth0
inet6 fe80::20c:29ff:fe9e:5187/64 scope link
valid_lft forever preferred_lft forever



I just add a add a virtual service without real server :

ipvsadm -A -t 10.30.145.179:80 -s rr

[root@lsn21510<mailto:root@lsn21510> ~]# ipvsadm -ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 10.30.145.179:80 rr

The server web is working :

[root@lsn21510<mailto:root@lsn21510> ~]# netstat -ltunp | grep 80
tcp 0 0 10.30.145.179:80 0.0.0.0:* LISTEN 1437/httpd


Now if I do a telnet 10.30.145.179 80 on centos5 it works because it bypass the 
ipvsadm and the loopback respond.
On centos 6 the telnet doesn't work because the request follow the virtual 
table define by ipvsadm.

Do you how I can have the same behavior in centos6 that I have in centos5 ?

Thanks
Mickael
_______________________________________________
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>
  • [lvs-users] change of behavior with ipvsadm from centos 5 to centos 6, Besse Mickael <=