LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

LVS configuration problem

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: LVS configuration problem
From: "Madhav" <msp@xxxxxxxxxxxx>
Date: Tue, 3 Apr 2001 13:21:08 +0530
hi all,
    I am trying to set up a simple load balancer using lvs in my red hat 6.1
distro cluster. I have one router with two ethernet cards. I have assigned
one class C(my public LAN) and one class A for eth0 and eth1. For the other
two real servers i have given class a addresses. I was able to ping from any
machine to any one in this three(10.1.10..), but only to router from public
LAN(172.16.30..). my problem is when I run my lvs script my router is not
forwarding the packets to the real servers.
The ipvsadm shows the connections as inactive.
Below is my lvs script. For router1 the eth0 IP is 172.16.30.75 and eth0:0
is 172.16.30.76(virtual IP) and eth1 is 10.1.10.9.
I tried this one year back. I think I forgot something. Can anyone tell me
what the problem is?
thanks in advance,
madhav.

#!/bin/bash
IPVSADM=/sbin/ipvsadm
case "$1" in
  start)
 if [ -x $IPVSADM ]
 then
  echo 1 > /proc/sys/net/ipv4/ip_forward
  /sbin/ipchains -A forward -j MASQ -s 10.1.10.9/24 -d 0.0.0.0
  $IPVSADM -A -t 172.16.30.76:80 -s wlc
  $IPVSADM -a -t 172.16.30.76:80 -R 10.1.10.10:80 -m
  $IPVSADM -a -t 172.16.30.76:80 -R 10.1.10.11:80 -m
 fi
 ;;
  stop)
 if [ -x $IPVSADM ]
 then
  $IPVSADM -C
 fi
 ;;
  *)
 echo "usage: lvs {start|stop}"
 exit 1
esac
exit 0



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