LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

a local network lvs problem

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: a local network lvs problem
From: "x d" <dxuranus@xxxxxxxxx>
Date: Wed, 17 Jan 2007 17:03:48 +0800
system info
uname -a
Linux server 2.6.9-22.EL #1 Sat Oct 8 17:48:27 CDT 2005 i686 i686 i386 GNU/Linux
[root@server ~]# ipvsadm -L -n | head -1
IP Virtual Server version 1.2.0 (size=4096)
[root@server ~]# ipvsadm -h | head -1
ipvsadm v1.24 2005/12/10 (compiled with popt and IPVS v1.2.0)

           o Using LVS-NAT, gatewaying method.
        o Load balancing port 80 (http) non-persistent.
        o Network Setup:

                       ________
                      |            |
                      | client   |
                      |________|
                       | CIP
                          |
                   |
                          |       __________
                          |  DIP |             |
                          +------+ director |
                          |  VIP |__________|
                          |
        +-----------------+
        |                 |
    RIP1, VIP         RIP2, VIP
   ____________      ____________
  |            |    |            |  |
  |realserver1 |    |realserver2 |
  |____________|    |____________|


        CIP  = 192.168.1.*
        DIP  = 192.168.1.97     (eth3:110)
        VIP = 192.168.1.4       (director: eth3)
        RIP1 = 192.168.1.99
        RIP2 = 192.168.1.24
        DGW  = 192.168.1.1      (GIP for all realserver)

[root@server ~]# ipvsadm -L -n
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
 -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.1.97:80 rr
 -> 192.168.1.24:80              Route   100    0          0
 -> 192.168.1.99:80              Route   100    0          0

ifconfig from director:
[root@server ~]# ifconfig eth3
eth3      Link encap:Ethernet  HWaddr 00:0A:EB:71:D7:6A
         inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
         inet6 addr: fe80::20a:ebff:fe71:d76a/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:204112 errors:0 dropped:0 overruns:0 frame:0
         TX packets:208054 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:18859818 (17.9 MiB)  TX bytes:44860063 (42.7 MiB)
         Interrupt:5 Base address:0x8400

[root@server ~]# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:02:B3:B0:DB:2A
         inet addr:10.1.2.254  Bcast:10.1.2.255  Mask:255.255.255.0
         inet6 addr: fe80::202:b3ff:feb0:db2a/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:23585 errors:0 dropped:0 overruns:0 frame:0
         TX packets:19778 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:18979167 (18.0 MiB)  TX bytes:1603444 (1.5 MiB)

eth2      Link encap:Ethernet  HWaddr 00:E0:4C:C8:10:C0
         inet addr:10.1.3.254  Bcast:10.1.3.255  Mask:255.255.255.0
         inet6 addr: fe80::2e0:4cff:fec8:10c0/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:156751 errors:0 dropped:0 overruns:0 frame:0
         TX packets:131926 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:17201108 (16.4 MiB)  TX bytes:10136438 (9.6 MiB)
         Interrupt:11 Base address:0x8000

eth3      Link encap:Ethernet  HWaddr 00:0A:EB:71:D7:6A
         inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
         inet6 addr: fe80::20a:ebff:fe71:d76a/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:204148 errors:0 dropped:0 overruns:0 frame:0
         TX packets:208083 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:18862230 (17.9 MiB)  TX bytes:44864525 (42.7 MiB)
         Interrupt:5 Base address:0x8400

eth3:110  Link encap:Ethernet  HWaddr 00:0A:EB:71:D7:6A
         inet addr:192.168.1.97  Bcast:192.168.1.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         Interrupt:5 Base address:0x8400

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:468 errors:0 dropped:0 overruns:0 frame:0
         TX packets:468 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:50162 (48.9 KiB)  TX bytes:50162 (48.9 KiB)


ifconfig from rs1:
eth0      Link encap:Ethernet  HWaddr 00:0F:EA:26:81:C6
         inet addr:192.168.1.99  Bcast:192.168.255.255  Mask:255.255.0.0
         inet6 addr: fe80::20f:eaff:fe26:81c6/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:2609 errors:0 dropped:0 overruns:0 frame:0
         TX packets:1662 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:534536 (522.0 KiB)  TX bytes:119680 (116.8 KiB)
         Interrupt:201

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:3117 errors:0 dropped:0 overruns:0 frame:0
         TX packets:3117 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:198064 (193.4 KiB)  TX bytes:198064 (193.4 KiB)


netstat -rn from director
[root@server ~]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth3
10.1.2.0        0.0.0.0         255.255.255.0   U         0 0          0 eth1
10.1.3.0        0.0.0.0         255.255.255.0   U         0 0          0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth3
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth3


netstat -rn from rs1:
root@dxuranus:~# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0

it seem the http server on rs* can't recive package.

thanks for any help

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