LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: kernel 2.4.1 with LVS patch & Netfilter

To: Andy Gussie <andy.gussie@xxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: kernel 2.4.1 with LVS patch & Netfilter
Cc: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: Julian Anastasov <ja@xxxxxx>
Date: Tue, 20 Feb 2001 00:26:52 +0000 (GMT)
        Hello Andy,

On Mon, 19 Feb 2001, Andy Gussie wrote:

> Could you please send me a detail sample config of your installation.
> Thank you.
>
> Attached you will find a diagram of what I am trying to do.

LVS1:

ifconfig eth0 63.120.77.X
ifconfig eth0:0 63.120.77.VIP, when LVS1 is active
ifconfig eth1 192.168.1.1
ifconfig eth1:0 192.168.1.5, when LVS1 is active

LVS2:

ifconfig eth0 63.120.77.Y
ifconfig eth0:0 63.120.77.VIP, when LVS2 is active
ifconfig eth1 192.168.1.2
ifconfig eth1:0 192.168.1.5, when LVS2 is active

LVS1/2:

echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/eth0/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/eth1/send_redirects
modprobe ip_vs_wlc
ipvsadm -A -t 63.120.77.VIP:80 -s wlc
ipvsadm -a -t 63.120.77.VIP:80 -r 192.168.1.3:80 -m
ipvsadm -a -t 63.120.77.VIP:80 -r 192.168.1.4:80 -m
ipvsadm -Ln
# No ipchains/iptables commands are needed for web clusters in Linux 2.4
# For Linux 2.2 you need:
# ipchains -A forward -s 192.168.1.0/24 -i eth0 -j MASQ
# For 2.4 it is optional

RS1:
ifconfig eth0 192.168.1.3
route add default gw 192.168.1.5, this IP is floating and points
        to the current gateway

RS2:
ifconfig eth0 192.168.1.4
route add default gw 192.168.1.5, this IP is floating and points
        to the current gateway

RS1/RS2:

httpd.conf:

Port 80
Listen 80

# Comment:
#BindAddress *

RS1:
<VirtualHost 192.168.1.3:80>
...
</VirtualHost>

RS2:
<VirtualHost 192.168.1.4:80>
...
</VirtualHost>


Regards

--
Julian Anastasov <ja@xxxxxx>



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