Sstatic protocol routes not loaded until extra reload is done on unchanged config.
Hi all, Loosely based on https://redmine.labs.nic.cz/projects/bird/wiki/Route_server_with_community_b... I set up a bird test configuration for an eBGP router which is located in AS64515 and talks to another router in AS65517, using an extra routing table, T65517 and pipe protocol to get fine-grained, and easily debuggable control about which routes I want to announce to the peer, and which received routes I want to import into the local AS: (AS64515) Tmaster - P65517 - T65517 <-> eBGP peer AS65517
On Thu, Jan 31, 2013 at 01:16:19AM +0100, Hans van Kranenburg wrote:
Hi all,
My question is: what's going on here? Why are the static routes not fed into bird at startup, but only after I reload the unchanged configuration? Have I overlooked a configuration detail, or is there something else 'fishy' going on?
Hello There are two things: 1) Your dummy0 interface seems to be down, that is a reason why static protocol didn't generate routes at first. I don't know if it is really down or just BIRD thinks that it is, you should check by 'show interfaces' and enable it by 'ip link set dummy0 up'. If that were IPv4, dummy0 could be up but without IP address so BIRD would consider it down, but for IPv6 there is usually link-local address so this is not an issue. 2) There is a bug in reconfiguration of static protocol that device routes are added regardless of whether interfaces are up or down. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
On 02/04/2013 11:18 AM, Ondrej Zajicek wrote:
On Thu, Jan 31, 2013 at 01:16:19AM +0100, Hans van Kranenburg wrote:
Hi all,
My question is: what's going on here? Why are the static routes not fed into bird at startup, but only after I reload the unchanged configuration? Have I overlooked a configuration detail, or is there something else 'fishy' going on?
Hello
There are two things:
1) Your dummy0 interface seems to be down, that is a reason why static protocol didn't generate routes at first.
Aha! Didn't realize that. Actually I didn't even bother to up it before, because even when still down, it functioned perfectly when blackholing traffic to it.
I don't know if it is really down or just BIRD thinks that it is, you should check by 'show interfaces' and enable it by 'ip link set dummy0 up'. If that were IPv4, dummy0 could be up but without IP address so BIRD would consider it down, but for IPv6 there is usually link-local address so this is not an issue.
Ok, clear. Yes, it was down, and now it's up, with a link-local v6 address, and static routes are added now.
2) There is a bug in reconfiguration of static protocol that device routes are added regardless of whether interfaces are up or down.
Ah, that explains the behaviour. Not adding static routes when dummy0 is down -> "It's not a bug, it's a feature." Adding static routes on reconfigure when dummy0 is down -> "It's not a feature, it's a bug." :-) Thanks, -- Hans van Kranenburg - System / Network Engineer +31 (0)10 2760434 | hans.van.kranenburg@mendix.com | www.mendix.com
On Mon, Feb 04, 2013 at 01:03:50PM +0100, Hans van Kranenburg wrote:
Hello
There are two things:
1) Your dummy0 interface seems to be down, that is a reason why static protocol didn't generate routes at first.
Aha! Didn't realize that.
Actually I didn't even bother to up it before, because even when still down, it functioned perfectly when blackholing traffic to it.
It is a bit strange that it worked, because adding device route pointing to downed interface fails in IPv4. But behavior for IPv6 seems to be different (for some reasons unknown to me). -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (2)
-
Hans van Kranenburg -
Ondrej Zajicek