Feature Request: Preference in bird
Maria Matejka
maria.matejka at nic.cz
Wed Jun 14 16:20:45 CEST 2023
You basically shouldn't do it. BIRD does something like last-resort pointer comparison and we should probably even add a warning if somebody misconfigures in this way.
Maria
On 14 June 2023 15:54:13 CEST, "Marek Küthe" <m-k-mailling-list at mk16.de> wrote:
>Thanks for the answer.
>
>What happens when the preference is the same for two different protocol
>types - which protocol is preferred? For example, if you have the
>preference of BGP and Babel routes both set to 100, which route will be
>chosen? BGP and Babel routes can't really be compared since BGP takes
>the AS path and Babel takes the metric as the main decision criterion.
>
>On Wed, 14 Jun 2023 13:05:15 +0200
>Bernd Naumann <bernd at kr217.de> wrote:
>
>> On 14.06.23 12:20, Marek Küthe wrote:
>> > On Wed, 14 Jun 2023 11:52:38 +0200
>> > Bernd Naumann <bernd at kr217.de> wrote:
>> >
>> >> On 14.06.23 11:29, Marek Küthe wrote:
>> >>> Is it possible to view the preference using "birdc"?
>> >>
>> >> `birdc show route` shows the protocol preference at the end of the line
>> >> in brackets. Or do you mean something different, like when showing the
>> >> protocols?
>> >
>> > ```
>> > unicast [brandweb_v4 17:31:34.208] (100)
>> > [AS4242422032i] via 172.20.191.129 on brandweb
>> > ```
>> > So that would have a preference of 100, right?
>>
>> Yes.
>>
>> >
>> > ```
>> > fd04:234e:fc31::/128 unicast [inner_network 2023-06-13] (130/1)
>> > [00:00:00:00:ac:16:95:e2] via fe80::2923:1 on p2prouter
>> > ```
>> > And what would be the preference 130 with a Babel metric of 1?
>> >
>>
>> Yes. 130 is the default preference for babel.
>>
>> >> `show protocols all`, does show the preference, too.
>> >
>> > Where exactly? I could not find anything there.
>> >
>>
>> ```
>> # birdc show protocols all
>> # Shows all configured protocols, their state, details, etc, including
>> preference.
>>
>> # To view a single protocol:
>> # birdc show protocols all ospf_ipv6
>> BIRD 2.0.8 ready.
>> Name Proto Table State Since Info
>> ospf_ipv6 OSPF master6 up 2023-04-14 Running
>> Channel ipv6
>> State: UP
>> Table: master6
>> Preference: 150
>> ...
>> ```
>>
>
>
>--
>Marek Küthe
>m.k at mk16.de
>er/ihm he/him
--
Maria Matejka (she/her) | BIRD Team Leader | CZ.NIC, z.s.p.o.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20230614/cb31b56d/attachment.htm>
More information about the Bird-users
mailing list