LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] Setting the LVS for the web service in local node

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] Setting the LVS for the web service in local node
From: satishh <satishhargunani@xxxxxxxxx>
Date: Mon, 7 Apr 2008 05:17:21 -0700 (PDT)
Hello,

I want to setup the  LVS in the  local node  for Web Service .

i'am in the lan segment  of 192.168.0.0/24.

The LVS  Box has the ipaddress 192.168.0.84.
THE Virtual Service ip is  192.168.0.85

The web server is listening in ipadress  127.0.0.1:80 and 127.0.0.2:80 .

so i want to redirect the traffic .

I have created virtual interface 

eth0:0    Link encap:Ethernet  HWaddr 00:0C:29:95:DB:92
          inet addr:192.168.0.85  Bcast:192.168.0.85  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0x1080

route add -host 192.168.0.85 dev eth0:0 

i have created the following service  

ipvsadm -A -t 192.168.0.85:80 -s wlc
ipvsadm -a -t 192.168.0.85:80 -r 127.0.0.1
ipvsadm -a -t 192.168.0.85:80 -r 127.0.0.2


for testing  from the client 192.168.0.25 when i give this command it give


C:\>telnet 192.168.0.85 80
Connecting To 192.168.0.85...Could not open a connection to host on port 80
: Connect failed

And through this command in linux box i get this output 

ipvsadm -lnc                                                                    
         
Fri Apr  4 07:37:38 2008

IPVS connection entries
pro expire state       source             virtual            destination
TCP 00:57  SYN_RECV    192.168.0.25:3036  192.168.0.85:80   
192.168.0.240:80


what wrong settings i'am doing pls correct me ??





-- 
View this message in context: 
http://www.nabble.com/Setting-the-LVS-for-the--web-service-in-local-node-tp16537275p16537275.html
Sent from the LVS mailing list archive at Nabble.com.



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