On Wed, 14 Jun 2023 11:52:38 +0200 Bernd Naumann <bernd@kr217.de> wrote:
On 14.06.23 11:29, Marek Küthe wrote:
Hello,
I noticed that when you "mix" routing protocols, it can be useful to change the "preference", but unfortunately there is little documentation in bird about this and no way to view it.
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? ``` 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?
`show protocols all`, does show the preference, too.
Where exactly? I could not find anything there.
Is it possible to include the default values (in https://gitlab.nic.cz/labs/bird/-/blob/v2.0.12/nest/route.h#L748-755) in the documentation?
Yes, this blob is my reference, too :) And yes it would be nice if it would be more visible...
Bernd
Thanks for the answer! -- Marek Küthe m.k@mk16.de er/ihm he/him