Correct way to advertise network in BIRD 2.x

Ondrej Zajicek santiago at crfreenet.org
Thu Apr 30 01:30:03 CEST 2020


On Mon, Apr 27, 2020 at 10:25:44AM +0000, James Swineson wrote:
> Just use something like:
> 
> protocol static {
>     ipv4;
>     route 192.168.1.0/24 unreachable;
> }
> 
> You don't really need a valid next-hop if you are only importing static routes to eBGP since eBGP will overwrite next-hop to yourself. 

Yes, this is the best way.

Not only you do not need a valid next hop for EBGP routes, but also
having unreachable route for your whole prefix is useful if you have
say OSPF routes for its subnets that do not fully cover it, and a default
route to upstream. Having unreachable route ensures that a packet from
the upstream to a non-assigned IP would not loop between the router and
the upstream.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."


More information about the Bird-users mailing list