[Debian-ha-maintainers] Bug#618581: cluster-agents: ocf:IPaddr2 always sets broadcast address on interface

Moritz Augsburger debian-bugreport at moritz.augsburger.name
Wed Mar 16 16:17:11 UTC 2011


Package: cluster-agents
Version: 1.0.3-3.1
Severity: normal
Tags: upstream

$FINDIF=/usr/lib/heartbeat/findif is used to calculate netmask (and
broadcast address (if not given). The script always calculates the
last ip address in the net as broadcast, and afterwards this information
is used to add the ip to the interface:

Paddr2:394     CMD="$IP2UTIL -f inet addr add $ipaddr/$netmask brd $broadcast dev $iface"

This works as long as the netmask is at least /30. When using smaller
nets, the own or neighbours address is configured as broadcast, which
leads to irritation and unreachable neighbours.

I see no reason for setting the broadcast at all, todays iproute2
is intelligent enough to work with only ip and netmask given.





More information about the Debian-ha-maintainers mailing list