LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: Problem with LVS DR - 10065 Host is unreachable

To: "'lvs-users@xxxxxxxxxxxxxxxxxxxxxx'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Problem with LVS DR - 10065 Host is unreachable
From: "Rogers, Paul" <Paul.Rogers@xxxxxxxxxx>
Date: Thu, 19 Dec 2002 08:10:13 -0000

Malcolm

Once again thanks for your reply.

>Put a simple client on the same segment as the real servers & LVS,
>NB you should be able to ping the VIP from this client
>install mozilla, don't configure proxy OR default gateway
>try to access the VIP directly using http://x.x.x.x

I think I probably over complicated matters previously.  The above is what I am doing.  The client is on the same physical network as both the directors and the realservers. I cannot ping either of the RIP's either from the client or the director.  This must be where the problem lies I think.  If I run the run the mini-rc.lvs_dr-realserver script one statement at a time, I am unable to ping the real servers after executing the line "/sbin/ifconfig lo:203 10.80.18.203 broadcast 10.80.18.203 netmask 255.255.248.0 up".  The whole script is shown below and has been copied from the mini how to.

I assume that this is incorrect, but don't know what I'm doing wrong. Any ideas?

>try to access the VIP directly using http://x.x.x.x

If I try the above I then get the 10065 Host is unreachable error.

>If that doesn't work post the output of IPVSADM -L

the output after refreshing the page is as follows:

IP Virtual Server version 1.0.6 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.80.18.203:http rr
  -> edm_bfhxx_wb001:http         Route   1      0          1        
  -> edm_bfhxx_wb002:http         Route   1      0          1        

So I assume the request is reaching the director but can't be forwarded on because the RIP's have disappeared.  Any ideas?

Many thanks

Paul
 
#!/bin/bash
#----------mini-rc.lvs_dr-realserver------------------
#installing default gw 10.80.16.1 for vs-dr
/sbin/route add default gw 10.80.16.1
#showing routing table
/bin/netstat -rn
#checking if DEFAULT_GW 10.80.18.16.1 is reachable
ping -c 1 10.80.16.1

#set_realserver_ip_forwarding to OFF (1 on, 0 off).
echo "0" >/proc/sys/net/ipv4/ip_forward
cat       /proc/sys/net/ipv4/ip_forward

#looking for DIP 10.80.18.202
ping -c 1 10.80.18.202

#looking for VIP (will be on director)
ping -c 1 10.80.18.203

#install_realserver_vip
/sbin/ifconfig lo:203 10.80.18.203 broadcast 10.80.18.203 netmask 255.255.248.0 up
#ifconfig output
/sbin/ifconfig lo:203
#installing route for VIP 10.80.18.203 on device lo:203
/sbin/route add -host 10.80.18.203 dev lo:203
#listing routing info for VIP 10.80.18.203
/bin/netstat -rn

#hiding interface lo:203, will not arp
echo "1" >/proc/sys/net/ipv4/conf/all/hidden
cat       /proc/sys/net/ipv4/conf/all/hidden
echo "1" >/proc/sys/net/ipv4/conf/lo/hidden
cat       /proc/sys/net/ipv4/conf/lo/hidden

#----------mini-rc.lvs_dr-realserver------------------

-----Original Message-----
From: Malcolm Turnbull [mailto:Malcolm.Turnbull@xxxxxxxxxxxx]
Sent: 18 December 2002 13:16
To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Problem with LVS DR - 10065 Host is unreachable



Quick Points :

The loadbalancer can NOT access the VIP
The real servers may access their own copy of the VIP but NOT the real
one on the loadbalancer.

Put a simple client on the same segment as the real servers & LVS,
NB you should be able to ping the VIP from this client
install mozilla, don't configure proxy OR default gateway
try to access the VIP directly using http://x.x.x.x

If that doesn't work post the output of IPVSADM -L

What OS are the real servers ?



--


Regards,

Malcolm Turnbull.

Crocus.co.uk Ltd
01344 629629
http://www.crocus.co.uk/






_______________________________________________
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



*****************************************************************************
This email and any attachments transmitted with it are confidential
and intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the sender and do not store, copy or disclose the content
to any other person.

It is the responsibility of the recipient to ensure that opening this
message and/or any of its attachments will not adversely affect
its systems. No responsibility is accepted by the Company.
*****************************************************************************
<Prev in Thread] Current Thread [Next in Thread>