LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Have a problem setting LVS on RedHat7.1

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Have a problem setting LVS on RedHat7.1
Cc: yraksri116@xxxxxxxxxxx
From: Gonzalo Servat <gonzalo@xxxxxxxxxxxx>
Date: Thu, 29 Nov 2001 23:17:38 +1100
Hi  Yarnvith!

++ 29/11/01 09:20 +0000 - yarnvith raksri:

> Hi  all
> First i have to say that i am a newbie in this Network area .
> So every suggestions will be usefull f rme :)
> 
> Now i try to set LVS to work as webserver.
> I using RedHat7.1 right now and i notice that it already patch with ipvs.
> So i just load ip_vs module by using following command
> 
> lsmod ip_vs  and lsmod ip_vs_wrr

You want to try 'modprobe ip_vs' and 'modprobe ip_vs_wrr' , not lsmod.
lsmod simply lists loaded modules.

> 
> then i set  ip_forwarding
> echo 1 > /proc/sys/net/ipv4/ip_forward
> ipchains -A forward -j MASQ -s 0/0 -d 0/0

You should probably use a line like:

ipchains -A forward -j MASQ -s 192.168.1.0/24 -d 0/0

... for example.

> 
> then i installed ipvsadm from  RedHat Powertool  CD
> 
> when i run ipvsadm it work out ok .
> Next  i type following lines
> ipvsadm -A -t 192.168.0.100:80 -s wrr
> ipvsadm -A -t 192.168.0.100:80 -r 192.168.0.2 -m
> ipvsadm -A -t 192.168.0.100:80 -r 192.168.0.3 -m

The first line is ok, the second and third should read:

ipvsadm -a -t 192.168.0.100:80 -r 192.168.0.2 -m
ipvsadm -a -t 192.168.0.100:80 -r 192.168.0.3 -m

(notice the lowercase -a)

> 
> (VIP=192.168.0.100 ,DIP=192.168.0.1, RIP1=192.168.0.2,RIP2=192.168.0.3 and 
> Gateway ip is 192.168.0.254)
> 
> and i already set  alias ip eth0:0 on director to 192.168.0.100
> but when i try to connect LVS from 192.168.0.254 (my gateway) Ô by using 
> LYNX , it's didn't work out.!!!
> what should i do  ?
> Do i have to get a fresh kernel and patch with ipvs myself?

Try the above changes and see how you go.

Hope this helps!

> 
> Thank you in advance
> 
> 
> 
> 
> 
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
> 

-- 
  Gonzalo Servat <gonzalo@xxxxxxxxxxxx>

  .. "Think positively, act positively, and never leave fingerprints." -- 
Robert Sneddon


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