LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Multiple VIP on one director??

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Multiple VIP on one director??
From: "Grames Gernot" <gernot.grames@xxxxxxxxxxx>
Date: Thu, 7 Jul 2005 11:02:23 +0200
Hello,
 
is it possible to use multiple IP adr. (VIP) for my director ??
 
I want to have .13, .18 and .19 as last part of the IP for my VIP.
I tried it this way
/sbin/ifconfig eth1:10 192.168.0.13 broadcast 192.168.0.255 netmask
255.255.255.0
/sbin/ifconfig eth1:10 192.168.0.18 broadcast 192.168.0.255 netmask
255.255.255.0
/sbin/ifconfig eth1:10 192.168.0.19 broadcast 192.168.0.255 netmask
255.255.255.0
 
but only the last configuration (.19) is taken!
 
What is my fault!
Or is it really possible??
 
my current configuration:
 
#!/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
# VIP is the address which is used for the incoming traffic from the
outside network
/sbin/ifconfig eth1:10 192.168.0.13 broadcast 192.168.0.255 netmask
255.255.255.0
 
#set default gateway
#the default gateway in the siemens net is 158.226.150.254
/sbin/route add default gw 192.168.0.1 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 192.168.0.13:8080 -s rr
 
#first realserver iacapp3
#forward http to realserver 192.168.0.11 using LVS-NAT (-m), with
weight=1
/sbin/ipvsadm -a -t 192.168.0.13:8080 -r 192.168.0.20:8080 -m -w 1
#Return channel
 
#check that realserver is reachable from director
ping -c 1 192.168.0.20
 
#second realserver
#forward telnet to realserver 192.168.1.12 using LVS-NAT (-m), with
weight=1
####/sbin/ipvsadm -a -t 158.226.149.123:telnet -r 192.168.0.21:telnet -m
-w 1
/sbin/ipvsadm -a -t 192.168.0.13:8080 -r 192.168.0.21:8080 -m -w 1
#Return channel
 
#checking if realserver is reachable from director
ping -c 1 192.168.0.22
 
#list ipvsadm table
/sbin/ipvsadm
#------mini-HOWTO-setup-LVS-NAT-director----------

Thanks for help!
 
Gernot

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