LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

My setting of LVS/DR...Still had problem

To: LinuxVirtualServer.org users mailing list. <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>, lvs-users@xxxxxxxxxxxxxxxxxxxxxx <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: My setting of LVS/DR...Still had problem
From: "Leo" <fds3ssw@xxxxxxxxxxxx>
Date: Sun, 1 Aug 2004 1:26:38 -0500
Hi All,

  After 2 weeks testing, I come back and bother you again :-)

  For now, I still can't open any page in client, and ActiveConn/InActConn in 
ipvsadm 
is always 0.

  Anyone can give me some advice?

PS: 
1. I had open Routing and Remote Access service in Real Server(win2000)
2. Few one suggest me turn /proc/sys/net/ipv4/ip_forward to 0, so I had try 
both 0 and 1,
   none of them is working.
3. Each one can ping others, and client can get RealServer's testing page, 
Director 
   also can get RealServer's testing page
4. I'm using Redhat AS 3 as Director, it don't need any patch when it as 
Director 
   or RealServer, right?
 
   If anyone need more detail, please give me email or post in this list

   Thanks a lot,
                         Leo

========================================================================
Mode    :  DR
VirtulIP:  192.168.0.11
RealServer RealIP:192.168.0.103. 192.168.0.108 (Windows 2000)
Director   RealIP:192.168.0.102                (Redhat  AS 3)
=========================================================================
Director:

[root@localhost tmp]# iptables  --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

[root@localhost tmp]# cat /proc/sys/net/ipv4/ip_forward
1
[root@localhost tmp]# cat /proc/sys/net/ipv4/conf/all/send_redirects
1
[root@localhost tmp]# cat /proc/sys/net/ipv4/conf/default/send_redirects
1
[root@localhost tmp]# cat /proc/sys/net/ipv4/conf/eth0/send_redirects
1
[root@localhost tmp]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:B0:D0:4C:7B:4D
          inet addr:192.168.0.102  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:73581 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53241 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:35230759 (33.5 Mb)  TX bytes:3750215 (3.5 Mb)
          Interrupt:5 Base address:0xec00

eth0:0    Link encap:Ethernet  HWaddr 00:B0:D0:4C:7B:4D
          inet addr:192.168.0.11  Bcast:192.168.0.11  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:73581 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53241 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:35230759 (33.5 Mb)  TX bytes:3750215 (3.5 Mb)
          Interrupt:5 Base address:0xec00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:175889 errors:0 dropped:0 overruns:0 frame:0
          TX packets:175889 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:19178361 (18.2 Mb)  TX bytes:19178361 (18.2 Mb)

[root@localhost tmp]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth0
[root@localhost tmp]#

[root@localhost tmp]# ipvsadm
IP Virtual Server version 1.0.8 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.0.11:http rr
  -> 192.168.0.108:http           Route   1      0          0
  -> 192.168.0.103:http           Route   1      0          0
==================================================================
==================================================================
Real server(192.168.0.108)(Windows 2000)

<Httpd.conf  of Apache>
..
BindAddress 192.168.0.11
BindAddress 192.168.0.108
..

c:\>IPCONFIG
Windows IP Configuration

Ethernet adapter Local connection 2:
        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.0.11
        Subnet Mask . . . . . . . . . . . : 255.255.255.255
        Default Gateway . . . . . . . . . :

Ethernet adapter Local connection:
        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.0.108
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.0.1

route PRINT
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...02 00 4c 4f 4f 50 ...... Microsoft Loopback Adapter
0x3 ...00 0c 29 cc 02 a0 ...... AMD PCNET Family PCI Ethernet Adapter 
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.0.1   192.168.0.108   30
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1   1
      192.168.0.0    255.255.255.0    192.168.0.108   192.168.0.108   30
     192.168.0.11  255.255.255.255        127.0.0.1       127.0.0.1   30
    192.168.0.108  255.255.255.255        127.0.0.1       127.0.0.1   30
    192.168.0.255  255.255.255.255     192.168.0.11    192.168.0.11   30
    192.168.0.255  255.255.255.255    192.168.0.108   192.168.0.108   30
        224.0.0.0        240.0.0.0     192.168.0.11    192.168.0.11   30
        224.0.0.0        240.0.0.0    192.168.0.108   192.168.0.108   30
  255.255.255.255  255.255.255.255     192.168.0.11    192.168.0.11   1
  255.255.255.255  255.255.255.255    192.168.0.108   192.168.0.108   1
Default Gateway:       192.168.0.1
===========================================================================
Persistent Routes:
  None
===========================================================================



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