LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: [newbie] Experimenting with LVS

To: "'LinuxVirtualServer.org users mailing list.'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: [newbie] Experimenting with LVS
From: Michael Jervis <michael.jervis@xxxxxxxxx>
Date: Tue, 25 Feb 2003 14:37:14 -0000
> It doesn't matter. IPVS will treat any host with a local IP address as
> localnode.

That is what I gathered from the docs, but since Joe suggested it, worth a try 
I felt.
 
> I just wanted the *IP* routing table not the *IPVS* one. On both
> machines please.

1:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
10.122.0.0      *               255.255.0.0     U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         10.122.254.254  0.0.0.0         UG    0      0        0 eth0

2:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         orangeweb       0.0.0.0         UG    0      0        0 eth0

> First netmask mistake. It's not really a big problem as long as it's set
> with way on all machines around, but network 10.0.0.0 is a class A
> network, so its netmask is 255.0.0.0.

Strange, that is the value the Redhat gui defaulted to, and the value that 
every machine on the corporate LAN has for it's netmask (>200 machines)

>why the hell do you have a 192. address on the public interface whereas
>it's a private address ?

Because of getting a 10.x IP address allocated by sys admin so is like getting 
blood from a stone...

I'm waiting on permission to assign other IPs to the machines.

> OK, here is the way you should probably set the IP stuff :

I'm going to go and try and get all that sorted out now. Thanks, you've been 
VERY helpful.

> In lvs.cf you should have a nat_router line or something close. If
> you're using piranha-gui, you've forgotten a field.

ah yeah.. Cheers.

> But whatever version of piranha you're using, you won't be able to do
> what you initialy wanted to (2 boxes, acting both as RS and directors)
> without applying one of my patches (you'll find them on the piranha
> mailing list).

You mean patches to the Piranha gui? Or patches to the LVS system?

Thanks

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