Bird BGP in VRF

Toke Høiland-Jørgensen toke at toke.dk
Fri Apr 20 09:48:20 CEST 2018


Ticlea Alexandru <ticlea_alexandru at yahoo.com> writes:

> Hello
>
> BGP is able to run in a vrf using a specific table?
>
> I have this config (snippet)
>
> protocol bgp bgp_private {
>         vrf "vrf-private";
>         ipv4 {
>                 igp table vrf_private;
>                 #export where proto = "adv_my_private";
>                 #export filter { if net ~[ 10.1.10.0/24+ ] then accept; reject;} ;
>                  #import all;
>                  export all;
>                  next hop self;
>              };
>         debug {
>                states,
>                routes,
>                filters,
>                interfaces,
>                events,
>                packets
>               };
>
>         local  as 64418;
>             neighbor a.b.c.d as 64418;
> direct;
>
> }
>
> It seems to advertise routes from master4 (global), instead of vrf_private;
> I see this in tcpdump at ' Updated routes:' field

You need to also specify the table number in the 'kernel' protocol configuration.

-Toke



More information about the Bird-users mailing list