LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ipvsadm problem

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: ipvsadm problem
From: Rafa Rodriguez Hernandez <rhernandez@xxxxxxxxxxxx>
Date: Mon, 29 Mar 2004 17:35:47 +0200
Thanks, now runs :)

The problem was here:
#

On the director, turn off icmp redirects on the NIC that is the default gw for 
the realservers. (Note: eth0 may be eth1 etc, on your machine).

director:/etc/lvs# echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects
director:/etc/lvs# echo 0 > /proc/sys/net/ipv4/conf/default/send_redirects
director:/etc/lvs# echo 0 > /proc/sys/net/ipv4/conf/eth0/send_redirects

#

Make the director the default and only route for outgoing packets.

You will probably have set the routing on the realserver up like this

realserver:/etc/lvs# netstat -r
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 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         director        0.0.0.0         UG        0 0          0 eth0

Remove the route to 192.168.1.0/24.

realserver:/etc/lvs#route del -net 192.168.1.0 netmask 255.255.255.0 dev eth0



Thanks to all a lot.

Regards.


Recuerdo que era Mon, 29 Mar 2004 08:32:03 -0500 y Joseph Mack 
<mack.joseph@xxxxxxx> tecleo:

> Rafa Rodriguez Hernandez wrote:
> > 
> 
> > -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> > TCP  vip-director:telnet rr
> > 
> > -> 192.168.1.3:telnet                   Masq         1               0      
> >     0
> > -> 192.168.1.4:telnet                   Masq         1               0      
> >     0
> > 
> > When I try to telnet vip-director (192.168.1.8) I see the connection in 
> > "InActConn" , after several tries I see that InActConn increase in both 
> > real servers (192.168.1.3 and 192.168.1.4)
> 
> With LVS-NAT and one network you need to read this
> 
> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network
> 
> If you're going to use LVS-NAT with a simple setup, you need two networks.
> 
> One network is fine with LVS-DR
> 
> Joe
> 
> -- 
> Joseph Mack PhD, High Performance Computing & Scientific Visualization
> SAIC, Supporting the EPA Research Triangle Park, NC 919-541-0007
> Federal Contact - John B. Smith 919-541-1087 - smith.johnb@xxxxxxx
> _______________________________________________
> 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


-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

Rafa Rodriguez Hernandez
Departamento de Sistemas - Prisacom
mail to: <rhernandez@xxxxxxxxxxxx>
lynx to: http://www.prisacom.com
Tfno: 91 353 78 27

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

"Bombs do not make peace, brains do"


============================================================================
This e-mail message and any attached files are intended SOLELY for the 
addressee/s identified herein. It may contain CONFIDENTIAL and/or LEGALLY 
PRIVILEGED  information and may not necessarily represent the opinion of this 
company. If you receive this message in ERROR, please immediately notify the 
sender and DELETE it since you ARE NOT AUTHORIZED  to use, disclose, 
distribute, print or copy all or part of the contained information. Thank you.  
============================================================================
<Prev in Thread] Current Thread [Next in Thread>