Re: multiple nic anguish

To: Chris Anderson <chris.anderson@xxxxxxxxxx>
Subject: Re: multiple nic anguish
Cc: LVS <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>, HA <linux-ha@xxxxxx>
From: Christian Bronk <chris@xxxxxx>
Date: Tue, 15 Aug 2000 09:45:43 +0200

I had the same problem, but you can solve it with
giving the second 
NIC no IP-address.
if then the first HUP fails and on the the second
NIC is still active
(I use the programm arping fron the iputil
package) you mußt only switch
the network an default route and then the server
is under his old IP
online again.
The advantage is that the script only needs to
know the networks and gateways
and not the IP´s which the server has.
(usefull if you have a servers an IP-failover)


Chris Anderson wrote:
> >From the pain-and-suffering-with-multiple-nics department:
> I'm putting together a server farm, with heartbeat, lvs, mon, and a few
> other goodies. In order to reduce the problems caused by having a hub
> die, I've put two NICs in each server (both directors and realservers),
> and connected card 0 to one hub, and card 1 to another.
> Then, thinking that all is well, I wrote a script for mon (which is
> running on the directors) to test network connectivity by pinging all
> the relevant IPs via the two net cards in each director; in more detail,
> I ping the 2 IPs in for each director and each realserver via each
> device in the director.
> The problem I have found (and I'm not sure whether heartbeat/lvs is
> responsible or not) is that this doesn't work. To illustrate (using the
> actual IP addresses on director 1):
> director1:
> eth0:
> eth1:  <-- only used for heartbeat vi crossover cable
> eth2:
> realserver1:
> eth0:
> eth1:
> If I (from director1) do the following:
> ping -c 1 -I eth0  or
> ping -c 1 -I eth2
> then I get no response. Similarly, if I ping (from the director) either
> of the realserver addresses with the cable to eth0 (on the realserver)
> unplugged, then I get no response, but if that cable is plugged in and
> the eth1 cable is removed, I can ping both of them.
> Here's the routing table, just in case that helps any:
> Destination     Gateway         Genmask         Flags   Iface
> UH      eth2
> UH      eth0
> UH      eth1
> UH      eth0
>   U       eth1
>   U       eth0
>   U       eth2
>       U       lo
>         UG      eth2
>         UG      eth0
> I'm kinda stumped here; any help at all would be appreciated!
> Cheers, Chris.
> mailto:chris.anderson@xxxxxxxxxx
> --
> "Personally, I am of the Opinion that The Bible(tm) has historical
>  value only slightly greater than The Silmarillion. But, that's
>  just My Opinion, and this is Usenet." -- David Eoll in ASR

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