LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: Configure IPVSADM

To: lvs <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Configure IPVSADM
From: Aniruddh Singh <aps@xxxxxxxxxxxxx>
Date: Thu, 23 Feb 2006 17:26:32 +0530
oh! the problem is you are using the same network for director and real
server, real server should be on different network, use two network card
on director and if you configure 192.168.1.4 on director then use
192.168.2.1 on real server coze linux kernel does not forward packets
for same network.

On Thu, 2006-02-23 at 10:53 +0100, José María Lopez Marzal wrote:
> Hi,
> 
> Well, I'm novel in this technology, but I think I'm using as 
> packet-forwarding-method NAT or MASQ. If I put ipvsadm the server shows me:
> 
> IP Vitual Server version 1.0.8 (size=65536)
> Prot LocalAddress: Port Scheduler Flags
> -> RemoteAddress: Port                Forward Weight  ActiveConn      
> InActConn
> TCP 192.168.1.4:http rr               
> -> 192.168.1.2:http           Masq            1               0               > 0
> 
> In the Real Server is also activate ip_froward and Apache listen in 0.0.0.0 
> 80.
> 
> Thanks,
> 
> José María López
> 
> -----Mensaje original-----
> De: Aniruddh Singh [mailto:aps@xxxxxxxxxxxxx] 
> Enviado el: jueves, 23 de febrero de 2006 10:14
> Para: lvs
> Asunto: Re: Configure IPVSADM
> 
> On Thu, 2006-02-23 at 09:51 +0100, José María Lopez Marzal wrote:
> > Hi,
> > 
> >  
> > 
> > I have a problem. I tray to configure a load balancing with ipvsadm. I have 
> > configure it of the following way:
> > 
> >  
> > 
> > I have two Server.
> > 
> > As virtual IP I have put: 192.168.1.4 (interface eth0:1)
> > 
> > Port: 80
> > 
> > Real Server: 192.168.1.2
> > 
> > My IP in the interface eth0 is 192.168.1.3
> > 
> > I open the ip_forward
> > 
> > My Operator System is Red Hat ES 3.0
> > 
> >  
> > 
> > When in the browse I put the virtual ip so that it send me to the real 
> > server, it doesn't find the web page.
> > 
> >  
> > 
> > If I watch in ipvsadm -lc, it shows me the following line:
> > 
> >  
> > 
> > Pro       expire   state                 source                          
> > virtual                           destination
> > 
> > TCP      00:22    SYN_RECV      192.168.1.10:1173         192.168.1.4:http  
> >         192.168.1.2:http
>  SYN_RECV shows that director is sending packet to real server but real
> server is not sending it back.
> 
> what packet-forwarding-method are you using? 
> 
> >  
> > 
> > Somebody can help me with this problem?
> > 
> >  
> > 
> > Thanks,
> > 
> >  
> > 
> > José María
> > 
> > _______________________________________________
> > 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
-
-- 
Regards
Aniruddh Singh
System Administrator
Monster.com India Pvt. Ltd.
FC 23, Block B, 1st Floor, Sector 16A
Film City Noida 201301 U.P.



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