LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Mandrake 10.1 Install problem

To: "'lvs-users@xxxxxxxxxxxxxxxxxxxxxx'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Mandrake 10.1 Install problem
From: Robert Wagner <rwagner@xxxxxxxxxx>
Date: Wed, 13 Oct 2004 16:16:09 -0500
I am not making much progress, so any help would be very appreciated.  I
installed a default Mandrake 10.1 (2.6 kernel) server installation and added
ipvsadm-1.24-2mdk.i586.rpm.  Everything seemed to install fine (one NIC).  I
edited /etc/sysconfig/ipvsadm and setup:

----------------
# servers being masqueraded by the LVS.
# see also ipvsadm(8).
-A -t 10.20.40.80:80 -s rr
-a -t 10.20.40.80:80 -r webip:80 -m -w 1
----------------

My servers IP address is 10.20.40.89

Starting the ipvsadm service, and running ipvsadm I see:

[root@localhost sysconfig]# ipvsadm
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.20.40.80:http wrr
  -> webip:http         Masq    1      0          0
--------------------------------------------------------
No traffic seems to go to the web box.
I then tried a script:

#!/bin/sh
#------mini-HOWTO-setup-LVS-NAT-director----------

#set ip_forward ON for vs-nat director (1 on, 0 off).
cat /proc/sys/net/ipv4/ip_forward
echo "1" >/proc/sys/net/ipv4/ip_forward

#director is gw for realservers
#turn OFF icmp redirects (1 on, 0 off)
echo "0" >/proc/sys/net/ipv4/conf/all/send_redirects
cat       /proc/sys/net/ipv4/conf/all/send_redirects
echo "0" >/proc/sys/net/ipv4/conf/default/send_redirects
cat       /proc/sys/net/ipv4/conf/default/send_redirects
echo "0" >/proc/sys/net/ipv4/conf/eth0/send_redirects
cat       /proc/sys/net/ipv4/conf/eth0/send_redirects

#setup VIP
/sbin/ifconfig eth0:80 10.20.40.80 broadcast 10.20.40.255 netmask
255.255.255.0

#set default gateway
# /sbin/route add default gw 192.168.2.254 netmask 0.0.0.0 metric 1

#clear ipvsadm tables
/sbin/ipvsadm -C

#install LVS services with ipvsadm
#add telnet to VIP with rr sheduling
/sbin/ipvsadm -A -t 10.20.40.80:80 -s rr

#first realserver
#forward telnet to realserver 192.168.1.11 using LVS-NAT (-m), with weight=1
/sbin/ipvsadm -a -t 10.20.40.80:80 -r webip:80 -m -w 1
#check that realserver is reachable from director
ping -c 1 webip

#second realserver
#forward telnet to realserver 192.168.1.12 using LVS-NAT (-m), with weight=1
/sbin/ipvsadm -a -t 10.20.40.80:80 -r  webip2:80 -m -w 1
#checking if realserver is reachable from director
ping -c 1 webip2

#list ipvsadm table
/sbin/ipvsadm
#------mini-HOWTO-setup-LVS-NAT-director----------

running ipvsadm gets the same results, but still no traffic.
Any additional thoughts?  (I also tried Fedora Core 2, and RedHat ES v.3.0
U2)


--------------------------more debug information
[root@localhost sysconfig]# telnet 10.20.40.80 80
Trying 10.20.40.80...
telnet: connect to address 10.20.40.80: Connection refused
telnet: Unable to connect to remote host: Connection refused
[root@localhost sysconfig]# iptables
iptables v1.2.9: no command specified
Try `iptables -h' or 'iptables --help' for more information.
[root@localhost sysconfig]# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@localhost sysconfig]#


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