LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Re: piranha not working(it's still not working)

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Re: piranha not working(it's still not working)
From: hotcola <hotcola@xxxxxxx>
Date: Thu, 31 May 2001 16:29:36 +0800
Julian Anastasov write:

>       Hello,
>
>On Wed, 30 May 2001, hotcola wrote:
>
>> now I use ipvsadm for ipvs0.9.7.
>> But i can't still access the page .
>> The status is:
>>
>>
>>   It seems that can't active the connections.
>>   How can I do to make it working?
>
>       Follow the steps mentioned in this mail:
>
>http://marc.theaimsgroup.com/?l=linux-virtual-server&m=99065801508035&w=2
>
Follow the steps in the article, I've made some progress.

    On the director:

       [root@alpha2 /root]# tcpdump -ln host 192.168.193.158
Kernel filter, protocol ALL, datagram packet socket
tcpdump: listening on all devices
16:48:17.365911 eth0 < 192.168.193.158.3597 > 192.168.193.224.www: S 3688807335:
3688807335(0) win 16384 <mss 1460,nop,nop,sackOK> (DF)
16:48:20.315130 eth0 < 192.168.193.158.3597 > 192.168.193.224.www: S 3688807335:
3688807335(0) win 16384 <mss 1460,nop,nop,sackOK> (DF)
16:48:26.325872 eth0 < 192.168.193.158.3597 > 192.168.193.224.www: S 3688807335:
3688807335(0) win 16384 <mss 1460,nop,nop,sackOK> (DF)

    The request is serverd by the lvs box.

[root@alpha2 /root]# ipvsadm -ln
IP Virtual Server version 0.9.7 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port          Forward Weight ActiveConn InActConn
TCP  192.168.193.224:80 wlc
  -> 192.168.194.111:80          Masq    1      0          0
    
    on the real server:

      [root@alpha /root]# tcpdump -ln host 192.168.193.158
Kernel filter, protocol ALL, datagram packet socket
tcpdump: listening on all devices
  
   there is no request to reach the real server.

   The commands I've issue are :
  
   echo "1" >/proc/sys/net/ipv4/ip_forward
   echo "1" >/proc/sys/net/ipv4/ip_always_defrag
   ipchains -A forward -j MASQ -s 192.168.194.0/24 -d 0.0.0.0/0
   
   ipvsadm -A -t 192.168.193.224:80 -s wlc
   ipvsadm -a -t 192.168.193.224:80 -r 192.168.194.111:80 -m

   I'm so doubt why the request is directly taken over by the lvs box.
Is my network or ipchain's configure wrong?

  the network likes it :

   192.168.193.158(CIP)
       |
   |--------|
   |        |  192.168.193.224  eth1:1 (vip)
   |DIRECTOR|  192.168.193.223  eth1:0
   |        | --------------------------
   |        |  192.168.194.112  eth0:0
   ---------   192.168.194.254  eth0:1 (route)
       |
       |
   |-------------------|
   |                   |
|------|            |-----|
|rs1   |            |rs2  |
-------             -------
192.168.194.111        192.168.194.124

   the director's status of network is :
   
   [root@alpha2 /root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:00:F0:51:01:33
          inet addr:192.168.194.112  Bcast:192.168.194.255           
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25929878 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6013221 errors:4 dropped:0 overruns:4 carrier:0
          collisions:230809 txqueuelen:100
          Interrupt:5 Base address:0x280

eth0:1    Link encap:Ethernet  HWaddr 00:00:F0:51:01:33
          inet addr:192.168.194.254  Bcast:192.168.194.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:5 Base address:0x280

eth1      Link encap:Ethernet  HWaddr 00:50:04:C8:C6:4D
          inet addr:192.168.193.223  Bcast:192.168.193.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6637108 errors:0 dropped:0 overruns:1 frame:0
          TX packets:25458257 errors:0 dropped:0 overruns:0 carrier:22
          collisions:4042 txqueuelen:100
          Interrupt:11 Base address:0x200

eth1:1    Link encap:Ethernet  HWaddr 00:50:04:C8:C6:4D
          inet addr:192.168.193.224  Bcast:192.168.193.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:11 Base address:0x200

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:8020  Metric:1
          RX packets:11378 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11378 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0




>       You have to post the outputs if the problem is still hidden.
>
>Regards
>
>--
>Julian Anastasov <ja@xxxxxx>
>
>
>_______________________________________________
>LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
>Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
>or go to http://www.in-addr.de/mailman/listinfo/lvs-users



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