two virtual IP configuration problem

Jiang bearie66 at gmail.com
Tue Jun 20 15:48:21 BST 2006


Hi All,

Previously I have only one virtual IP configured, and it has been
running well until we decided to put in more sevices and give a new
virtual IP. But the newly configured VIP just simply doesn't work, and
I don't know where is the problem and how I can troubleshoot.

I just created a new ifcfg-lo:1 with configurations like:

DEVICE=lo:1
IPADDR=10.226.200.220
NETMASK=255.255.255.255
NETWORK=10.226.200.0
BROADCAST=10.226.200.255
ONBOOT=yes
NAME=loopback

my arptable file is look like:
*********************************************************************
*filter
:IN ACCEPT [195235:5466580]
:OUT ACCEPT [21851:611828]
[0:0] -A IN -d 10.226.200.210 -j DROP
[0:0] -A OUT -s 10.226.200.210 -o bond0 -j mangle --mangle-ip-s 10.226.200.211
[0:0] -A OUT -s 10.226.200.210 -o eth0 -j mangle --mangle-ip-s 10.226.200.211
[0:0] -A OUT -s 10.226.200.210 -o eth1 -j mangle --mangle-ip-s 172.16.1.1
[0:0] -A OUT -s 10.226.200.210 -o eth2 -j mangle --mangle-ip-s 10.226.200.211
[0:0] -A OUT -s 10.226.200.210 -o eth3 -j mangle --mangle-ip-s 172.16.2.1
[0:0] -A IN -d 10.226.200.220 -j DROP
[0:0] -A OUT -s 10.226.200.220 -o bond0 -j mangle --mangle-ip-s 10.226.200.211
[0:0] -A OUT -s 10.226.200.220 -o eth0 -j mangle --mangle-ip-s 10.226.200.211
[0:0] -A OUT -s 10.226.200.220 -o eth1 -j mangle --mangle-ip-s 172.16.1.1
[0:0] -A OUT -s 10.226.200.220 -o eth2 -j mangle --mangle-ip-s 10.226.200.211
[0:0] -A OUT -s 10.226.200.220 -o eth3 -j mangle --mangle-ip-s 172.16.2.1
COMMIT
# Completed on Tue Jun 20 21:58:18 2006
***********************************************************************

And in ldirectord.cf I have:
**********************************************************************
virtual=10.226.200.220:8070
        real=10.226.200.211:8070 gate
        real=10.226.200.213:8070 gate
        #fallback=127.0.0.1:21
        service=none
        scheduler=rr
        #persistent=600
        #netmask=255.255.255.255
        checktype=connect
        #checkcount=3
        protocol=tcp
**********************************************************************

And in ldirectord.cf I have:

**********************************************************************
IP Virtual Server version 1.0.8 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.226.200.220:8070 rr
  -> 10.226.200.211:8070          Local   0      0          0
  -> 10.226.200.213:8070          Route   0      0          0
TCP  10.226.200.210:80 rr
  -> 10.226.200.213:80            Route   0      0          0
  -> 10.226.200.211:80            Local   0      0          0
TCP  10.226.200.210:9007 rr
  -> 10.226.200.211:9007          Local   0      0          0
  -> 10.226.200.213:9007          Route   0      0          0
TCP  10.226.200.210:9005 rr
  -> 10.226.200.213:9005          Route   0      0          0
  -> 10.226.200.211:9005          Local   0      0          0
**********************************************************************

>From client I try to telnet to the destination port 8070, but from
tcpdump collected from client, I found no packet actually has been
sent to the virtual IP configured.

Please help!!! Thanks a lot!!

-- 
Regards,
Jiang Lei

Search lvs-users Archives
Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort

More information about the lvs-users mailing list