default protocol preference values
Hello! I could not find any information about default protocol preference values (administrative distance) for bird. Can anybody please help with it? Are there any default values for OSFP, BGP, static, etc.? Or is it better to configure each value explicitly?
On Tue, Aug 03, 2021 at 10:00:45AM +0300, Kseniya Blashchuk wrote:
Hello! I could not find any information about default protocol preference values (administrative distance) for bird. Can anybody please help with it? Are there any default values for OSFP, BGP, static, etc.? Or is it better to configure each value explicitly?
Hello #define DEF_PREF_DIRECT 240 /* Directly connected */ #define DEF_PREF_STATIC 200 /* Static route */ #define DEF_PREF_OSPF 150 /* OSPF */ #define DEF_PREF_BABEL 130 /* Babel */ #define DEF_PREF_RIP 120 /* RIP */ #define DEF_PREF_BGP 100 /* BGP */ #define DEF_PREF_RPKI 100 /* RPKI */ #define DEF_PREF_INHERITED 10 /* Routes inherited from other routing daemons */ -- 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."
Thanks for providing that. I was thinking about the same but couldn't find it in the manual. Additional question is do I see it correctly that bird in comparison to Cisco/Juniper does reverse logical so higher value means "more preferred" route? Regards, Grzegorz From: Ondrej Zajicek <santiago@crfreenet.org> Date: Tuesday 2021-08-03 at 16:27 To: Kseniya Blashchuk <ksyblast@gmail.com> Cc: "bird-users@network.cz" <bird-users@network.cz> Subject: Re: default protocol preference values On Tue, Aug 03, 2021 at 10:00:45AM +0300, Kseniya Blashchuk wrote: Hello! I could not find any information about default protocol preference values (administrative distance) for bird. Can anybody please help with it? Are there any default values for OSFP, BGP, static, etc.? Or is it better to configure each value explicitly? Hello #define DEF_PREF_DIRECT 240 /* Directly connected */ #define DEF_PREF_STATIC 200 /* Static route */ #define DEF_PREF_OSPF 150 /* OSPF */ #define DEF_PREF_BABEL 130 /* Babel */ #define DEF_PREF_RIP 120 /* RIP */ #define DEF_PREF_BGP 100 /* BGP */ #define DEF_PREF_RPKI 100 /* RPKI */ #define DEF_PREF_INHERITED 10 /* Routes inherited from other routing daemons */ -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org<mailto: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 Tue, Sep 07, 2021 at 04:33:26PM +0000, Ponikierski, Grzegorz wrote:
Thanks for providing that. I was thinking about the same but couldn't find it in the manual.
Yes, we should put it there.
Additional question is do I see it correctly that bird in comparison to Cisco/Juniper does reverse logical so higher value means "more preferred" route?
That is true, but note a change in name. Cisco calls it 'administrative distance', so it makes sense that lower is better. We call it 'preference', so it makes sense that higher is better (more preferred). It is Juniper who calls it 'preference', but counterintuitively uses lower is better meaning. -- 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 (3)
-
Kseniya Blashchuk -
Ondrej Zajicek -
Ponikierski, Grzegorz