LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Cannot ping to IP in public network

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Cannot ping to IP in public network
From: Allan Lee Kheen Woon <allanlee@xxxxxxxxxxx>
Date: Fri, 20 Apr 2001 12:28:20 +0800
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>> 


Attachment: LVS.CF
Description: Binary data

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