[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha
Subject: Re: [Linux-ha-dev] Issues with heartbeat and iproute
From: Alan Robertson <alanr () unix ! sh>
Date: 2002-07-30 1:51:41
[Download RAW message or body]
Kevin Dwyer wrote:
> Hey folks, I'm attempting to run heartbeat on some firewalls and just ran
> into a problem. We decided to go with fwbuilder as the method for
> deploying rulesets since people around here don't really want to futz with
> writing/maintaining a script to do it, and prefer a GUI. That's fine, but
> the way that fwbuilder generates NAT rules (and it really is a superior
> way I think to that of my old method, creating lots of aliases) messes
> with heartbeat. Specifically, it uses iproute to add aliases to a device,
> like eth0 in this example:
>
> ip -f inet addr add ipa.ddr.ess.1 dev eth0 scope link
> ip -f inet addr add ipa.ddr.ess.2 dev eth0 scope link
> ip -f inet addr add ipa.ddr.ess.3 dev eth0 scope link
> ip -f inet addr add ipa.ddr.ess.4 dev eth0 scope link
> ip -f inet addr add ipa.ddr.ess.5 dev eth0 scope link
>
> That's all fine, except that it causes really weird stuff to happen to the
> output of ifconfig. For one, the inet addr: field will change once in a
> while if I make a modification with ifconfig. That doesn't affect
> heartbeat, but the Bcast: field is wrongly reported as 0.0.0.0. Now, I
> know for a fact that I set it correctly when I bring up the interface,
> prior to using the ip route commands. Once they've been applied, it goes
> crazy. So my question: Does anyone know if there's an ip route command to
> make the Bcast field show up as the correct value, or is there a better
> way for heartbeat to get the broadcast address?
>
> (I'm just realizing now that I don't know how it gets the broadcast address.)
I have a packet of C code which is supposed to do much/all of what IPaddr
does. It might be nice to use that for some of these things...
-- Alan Robertson
alanr@unix.sh
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic