Date: Tue, 06 Jun 2023 08:31:29 +0000 From: Benoit Chesneau <benoitc@enki-multimedia.eu> To: "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org> Subject: how to use fib and bird Message-ID: <axFHByZm283A3LecL6ZL3ShMBp5ZCzEPFuVJHVpVQ08LfdoosBLrjNkz51hPfXrOzlEQiPYUZNHedRCgFmhBVufAwNVV0UaSdWZZ3TsUkiQ=@enki-multimedia.eu>
next in thread | raw e-mail | index | archive | help
Hi, I'm trying to advertise and get routing info via BGP andbird in a distinct = fib but it seems that bird is always trying to connect to peers on the Fib = 0. I tried the following configuration: ``` protocol bgp transit_ipv4_1 { =C2=A0 =C2=A0 local A.B.C.1 as XXXX; =C2=A0 =C2=A0 neighbor A.B.C.0 as XXXX; =C2=A0 =C2=A0 default bgp_med 0; =C2=A0 =C2=A0 default bgp_local_pref 50; =C2=A0 =C2=A0 password "somepass"; =C2=A0 =C2=A0 ipv4 { =C2=A0 =C2=A0 =C2=A0 =C2=A0 import keep filtered; =C2=A0 =C2=A0 =C2=A0 =C2=A0 import filter ebgp_import; =C2=A0 =C2=A0 =C2=A0 =C2=A0 export filter ebgp_export; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 igp table enki_tabv4; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 next hop self; =C2=A0 =C2=A0 }; }; ``` where the enki_tabv4 should be populated via the kernel protocol: ``` protocol kernel enkiv4 { =C2=A0 =C2=A0 =C2=A0 =C2=A0 learn; =C2=A0 =C2=A0 =C2=A0 =C2=A0 kernel table 1; =C2=A0 =C2=A0 =C2=A0 =C2=A0 ipv4 { =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 table enki_tabv= 4; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 import all; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 export filter e= xport_kernel; =C2=A0 =C2=A0 =C2=A0 =C2=A0 }; } ``` I say "should be" because apparentlyit isn't and I get such error: ``` 2023-06-06 02:05:58.571 <TRACE> enkiv4: A.B.C.D/24: ignored 2023-06-06 02:05:58.571 <TRACE> enkiv4: A.B.C.D/32: [alien]=20 ... 2023-06-06 02:05:58.571 <TRACE> enkiv4.ipv4 > added [best] A.B.C.D/32 0L 4G= unicast 2023-06-06 02:05:58.571 <TRACE> enkiv4.ipv4 < rejected by protocol A.B.C.D/= 32 0L 4G unicast ``` How can I tell the bgp protocol to look at the routing info in the fib 1 to= connect? Beno=C3=AEt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?axFHByZm283A3LecL6ZL3ShMBp5ZCzEPFuVJHVpVQ08LfdoosBLrjNkz51hPfXrOzlEQiPYUZNHedRCgFmhBVufAwNVV0UaSdWZZ3TsUkiQ=>