LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: kernel 2.4.1 with LVS patch & Netfilter

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: kernel 2.4.1 with LVS patch & Netfilter
From: "Ivan Figueredo" <idf@xxxxxxxxxxxxxx>
Date: Mon, 19 Feb 2001 16:30:10 -0600
Julian,

I love it!

This kind of handholding, _IMHO_, is what should be in the HowTo's,
inclusing the nice diagram that the gentleman included. This can be done in
.pdf, etc.

Thanks a MILLION.

Regards,

Ivan
----- Original Message -----
From: "Julian Anastasov" <ja@xxxxxx>
To: "Andy Gussie" <andy.gussie@xxxxxxxxxxxxxxxxxxxxxxx>
Cc: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, February 19, 2001 6:26 PM
Subject: Re: kernel 2.4.1 with LVS patch & Netfilter


>
> 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>
>
>
> _______________________________________________
> 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
>



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