LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Cannot ping to IP in public network

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Cannot ping to IP in public network
From: "Peter Martin" <p.martin@xxxxxxxxxx>
Date: Fri, 20 Apr 2001 09:38:21 +0100
Default Gateway on the real servers set to the internal IP address of the
Director?

----- Original Message -----
From: "Allan Lee Kheen Woon" <allanlee@xxxxxxxxxxx>
To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, April 20, 2001 5:28 AM
Subject: Cannot ping to IP in public network


> Dear Sir/Mdm:
> I have setup the lvs on my redhat 6.2 machines(pls see attached the
> lvs.cvf file)
> What I did is to have one LVS router, and  4 real servers.
> My questions are:
>
> 1) do I need to make any changes to the real servers?
> 2)  I donno what went wrong,I have already done the followings, why
> I still cannot ping to the public network(184.20.199.21)?This is a valid
IP
> when I ping from within the public network:
> a) enable NAT
> :>>edited the file /etc/sysct1.conf with the
> following params and restarted the lvs server
> i) net.ipv4.ip_forward = 1
> ii)net.ipv4.ip_always_defrag = 1
>
> b) enable IP masquerading
> :>>ipchains -A forward -j MASQ -s 192.1.1.0/24 -d
> 0.0.0.0/0
> c) at /etc/ , started the pulse
> :>>./pulse start   (it shows OK)
>
> 3) I am not sure what I have done this is correct:
> :>>I have enable a direct routing at real server 192.1.1.24
> by typing the following at the prompt:
> ifconfig eth0:0 184.20.199.26 up    ,whereby
> 184.20.199.26 is the virtual server IP.
>    when I ping from all the real servers(from 192.1.1.21 to
> 192.1.1.24) to 192.1.1.71(NAT router IP) it pings successfully!
>    when I ping from real server 192.1.1.24 to 184.20.199.26, it
> pings successfully too!
>    when I ping from real server 192.1.1.24 to 184.20.199.21(which is
> a valid public address), it says "Destination Host Unreachable"
>
>    when I ping from real servers 192.1.1.21,22,and 23 to
> 184.20.199.21, it says "Destination Host Unreachable" too!
>
> Can you help me?May I know what steps that I might have missed out?
> Thanks a million!
>
>
> regards,
> allan
>  <<LVS.CF>>
>
>
>



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