bird BGP not advertise local routing, unless make it blackhole

LIU Chris chris-zq.liu at urbanandmainlines.com
Tue Jun 4 17:24:16 CEST 2024


Classified as: Hitachi Rail – Public

I am new for bird/BGP. My configuration as below. Basically it is working as expected except one thing.
This static routing, I want to advertise this route to BGP peers.
If I just configured as :  route 192.168.0.0/16,  Bird doesn’t advertise this route unless add it as blackhole
blackhole is sink or just drop, why ?

protocol static static_bgp {
    ipv4;
    check link;
    route 192.168.0.0/16 blackhole;
}


------------------------------------------
router id 1.1.1.1;

filter Filter_Export_Kernel {
    if net ~ [ 10.1.0.0/16 ] then {
        accept;
    }
    else
        reject;
}

protocol kernel {
    scan time 10;
    ipv4 {
        export filter Filter_Export_Kernel;
    };
}

protocol device {
    scan time 10;
}

protocol static static_bgp {
    ipv4;
    check link;
    route 192.168.0.0/16 blackhole;
}

protocol bgp BGP_INSTANCE_1 {
    local xx.xx.xx.xx as 10001;
    neighbor yy.yy.yy.yy as 10002;
    ipv4 {
        import all;
        export where proto ="static_bgp";
        preference 200;
    };
    hold time 3;
    bfd on;
}

protocol bfd BFD_INSTANCE_1 {
    interface "eth1" {
        min rx interval 1 s;
        min tx interval 1 s;
        idle tx interval 3000 ms;
        multiplier 3;
    };
    neighbor yy.yy.yy.yy local xx.xx.xx.xx;
}

---------------------------------


Hitachi Rail – Public
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20240604/a5c9ee6f/attachment.htm>


More information about the Bird-users mailing list