thanks for your help. the two windows 2000 are used as real servers
providing www service. now the problem is the real servers cannot ping
or connect the outside machine via the linux gateway. the LVS is in
a local network seperate from the outside world. the linux gateway/director
seems not to work. what should i do to make a linux box capable of being
a gateway? should i check some kernel compilation options or edit some
file? what are they?
thanks
James
>On Thu, Jul 26, 2001 at 09:37:50AM +0800, Xiong Zhao wrote:
>> i want to use a linux 2.4.5 box as director and two windows 2000
>> as real servers. i patch the kernel with linux-2.4.5-ipvs-0.8.1.patch,
>> but which version of ipvsadm should i install?
>
>This patch should have come in a tar ball
>http://linuxvirtualserver.org/software/kernel-2.4/ipvs-0.8.1.targz
>
>When you unpack this tarball there is a directory, ipvs/ipvsadm/
>that contains the version of ipvsadm that you should use.
>
>> where is the explaination
>> of the command parameters of ipvsadm?
>
>ipvsadm comes with a man page that explains the parameters that
>can be passed to ipvsadm. Try "man ipvsadm".
>
>> is there anything to
>> do on windows 2000 besides setting the director as gateway?
>
>Is the windows 2000 machine a real-server or a client. If you are lusing
>LVS-NAT and windows 2000 is a real-server then you just set up the linunx
>director as the default gateway. You will also need to configure the
>windows 2000 machine to run whatever services (web server?) you wish to
>have load balanced.
>
>> how to
>> make a linux box work as a gateway? should i check any kernel options
>> or something else? now the two realservers can ping either two NICs
>> on director, but cannot ping the outside computers. brief and clear
>> suggestion is in need. i'm almost confused with the howto.
>
>
>I would really suggest looking at
>http://linuxvirtualserver.org/Joseph.Mack/mini-HOWTO/LVS-mini-HOWTO-5.html
>or the HOTWO itself as it has detailed information on how to configure
>the system.
>
>
>Briefly:
>
>You need to ensure that you have IPV4 forwarding turned on.
>
>echo 1 > /proc/sys/net/ipv4/ip_forward
>
>You also need to ensure that you are masquerdaing the internal network.
>
>e.g.
>
>/sbin/iptables -t nat -A POSTROUTING -s 192.168.61.0/24 -j MASQUERADE
>
>
>--
>Horms
>
>_______________________________________________
>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
致
礼!
xiong zhao
xz@xxxxxxxxxx
|