hi all,
i have two virtualbox machines both with nearly identical debian lenny, to test
LVS.
Machine A (Director) has IP 192.168.1.106 and
Machine B (Real Server) has IP 192.168.1.105
Further does machine B (real server) have a vsftpd running at port 7772.
And thats how I configured it:
Commands:
Both:
echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe ip_vs_ftp
Director:
(ifconfig eth2 192.168.1.106 netmask 255.255.255.0 broadcast 192.168.1.255 up)
ifconfig eth2 192.168.1.106 netmask 255.255.255.255 broadcast 192.168.1.106 up
ipvsadm -A -t 192.168.1.106:7772 -s rr
ipvsadm -a -t 192.168.1.106:7772 -r 192.168.1.105 -i
Real Server:
echo 1 > /proc/sys/net/ipv4/conf/eth1/arp_ignore
echo 2 > /proc/sys/net/ipv4/conf/eth1/arp_announce
modprobe ipip
(ifconfig eth1 192.168.1.105 netmask 255.255.255.0 broadcast 192.168.1.255 up)
route add -net 192.168.1.0 netmask 255.255.255.0 dev eth1
ifconfig tunl0 192.168.1.106 netmask 255.255.255.255 broadcast 192.168.1.106 up
route add -host 192.168.1.106 dev tunl0
Restart vsftpd
Test ftp-connection from host (IP 192.168.1.104)
Ccommands in brackets are not executed because the machines come up, with this
configuration.
But it does not work!! If I configure it with the free IP 192.162.1.150 as VIP
instead of the DIP=VIP (192.168.1.106) it works!
Where is the my mistake?
Thanks for any helpful answers.
X. Weber
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
|