LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

2.2.12 and tunneling Now way?

To: linux-virtualserver@xxxxxxxxxxxx
Subject: 2.2.12 and tunneling Now way?
From: Dietmar Kling <dietmar.kling@xxxxxxxxxx>
Date: Mon, 13 Sep 1999 15:30:01 +0200
Hello,

i trying to setup a vrtual server in 2.2.12

but i have problem (of understanding the docs?)

As far as I know you have to apply the VS-patch to the director box and
to the real servers
if all of them are 2.2 kernel . So ar mine.

I setup my RealServer box like this
--------------------------------------
#!/bin/sh
SERVER=192.168.100.77
BROADCAST=192.168.100.255
/sbin/insmod ipip
ifconfig -noarp tunl0 $SERVER netmask 255.255.255.255 broadcast
$BROADCAST up
route add -host $SERVER dev tunl0
-------------------------------------------------------------------


the problem:
this box responds to the configured 192.168.100.77 virtual address
so all traffice goes directly to 192.168.100.77 (you see no entries in
Director ipvsadm -L)

ping 192.168.100.77 reveals that the box does pass by the real server.
What I am doing wrong ?

(if i turn of the real server box, the director box connects to
192.168.100.77)
my setup for the directory:

Director Setup
-----------------------------------------------------------------
VIRTUAL_SERVER="192.168.100.77"
#VIRTUAL_SERVER_POLICY="wlc"  # WLC scheduling used for this virtual
service
VIRTUAL_SERVER_POLICY="wlc"  # WLC scheduling used for this virtual
service
FORWARDING="i"
REAL_SERVERS="192.168.100.1" # 192.168.100.3"
PATH=$PATH:/sbin

echo 1 >/proc/sys/net/ipv4/ip_forward


case "$1" in
start)
 #  Add virtual ipaddr

 ifconfig eth0:2 $VIRTUAL_SERVER netmask 255.255.255.255 broadcast \
   $VIRTUAL_SERVER up
 route add -host $VIRTUAL_SERVER dev eth0:2

 ipvsadm -A -t $VIRTUAL_SERVER:80 -s $VIRTUAL_SERVER_POLICY
 for SERVER in $REAL_SERVERS;
 do
  echo Adding $SERVER ...
  ipvsadm -a -t $VIRTUAL_SERVER:80 -R $SERVER -$FORWARDING -w 1
 done
 ;;
stop)
 # Delete virtual ipaddr
 route del -host $VIRTUAL_SERVER dev eth0:2
 ifconfig eth0:2 down

 # Delete
 for SERVER in $REAL_SERVERS;
 do
  echo Removing $SERVER ...
  ipvsadm -d -t $VIRTUAL_SERVER:80 -r $SERVER
 done
 ipvsadm -D -t $VIRTUAL_SERVER:80
 ;;
list)
 ipvsadm
 ;;
*)
 echo "Usage: virtualserver {start|stop|list}"
 exit 1
esac
exit 0
.------------------------------------

Regards
Dietmar


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