Protocols device and direct getting out of sync

Ondrej Zajicek santiago at
Fri Feb 7 16:20:45 CET 2014

On Fri, Feb 07, 2014 at 01:43:21PM +0100, Tore Anderson wrote:
> Hi, I've noticed that when adding addresses, BIRD will notice (i.e.
> "birdc show interface" will immediately show the newly-added address)
> but the direct protocol isn't notified until the periodic device scan
> triggers. The below console log with embedded comments shows what's
> happening. I'm running BIRD 1.4.0 and the config file contains simply:
> $ birdc show route; birdc show interface
> BIRD 1.4.0 ready.
> lo up (index=1)
> 	MultiAccess AdminUp LinkUp Loopback Ignored MTU=65536
> (Primary, scope host)
> (Primary, opposite, scope univ)
> $ ip address add dev lo
> bird: direct1 < primary address on interface lo removed
> bird: direct1 < secondary address on interface lo removed
> The debug messages from BIRD show up instantly. Not sure why why they
> say ?removed?, as is unchanged, while was *added*.
> So here it has clearly noticed that there's an new address on lo, but
> for some reason it's not showing up in BIRD's routing table. Also, for
> some reason "lo" is now marked DOWN?


The main problem in your example is that primary address of the iface
changed, which caused virtual restart of the iface, which caused the
device to be down until the next scan and log messages about removal of
addresses. The whole primary address selection is a relic of the past
and will be removed in the future, currently you could fix your problem
by explicitly declaring that is the primary address on the

protocol device {
	primary "lo";

After that, any other manipulation of addresses on loopback should
be seamless and immediate.

Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago at
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3,
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <>

More information about the Bird-users mailing list