IP based Web hosting behind LVS
ja at ssi.bg
Wed Jan 17 00:37:18 GMT 2001
On Tue, 16 Jan 2001, Ian Courtney wrote:
> Ok, I've gotten it working but I don't like what I had to do to make it
> work. My setup so far: 1 director, 2 web servers, nfs-mounted /home
> directory that mounts on to both servers. There are 3 Class C's in total
> on the web servers, all 3 are on both of them.
> Now, I used the fwmark method to be able to load balance the delivery of
> those three class c's, but it didn't work until I aliased all 3 class
> c's to my director. Do I have to do this? It'll be a real problem if I
Of course, only the packets destined for local addresses/networks
are accepted. The others are dropped or forwarded to another box.
> do, cause the next project involves redoing our standard linux web
> space, which so far consists of about 8 webservers, each hosting atleast
> 2 class c's worth of hosting. I some how don't think Linux will take
> nicely to have 16 or more class C's aliased to it.
Why not? If possible use netmask < 24.
I assume you execute (replace with the right Class C nets):
ifconfig lo:1 22.214.171.124 netmask 255.255.254.0
ifconfig lo:2 126.96.36.199 netmask 255.255.255.0
ifconfig lo:3 188.8.131.52 netmask 255.255.255.0
on the director and on each real server and solve the arp problem using:
echo 1 > /proc/sys/net/ipv4/conf/all/hidden
echo 1 > /proc/sys/net/ipv4/conf/lo/hidden
in the real servers. If you don't want to advertise these addresses
using ARP to the Cisco LAN, you can execute the above two commands in
the director too.
> thanx in advance.
Julian Anastasov <ja at ssi.bg>
More information about the lvs-users