Add/Remove advertisements via birdc (or other mecanism)?

Thomas Liske liske at ibh.de
Thu Aug 7 11:07:39 CEST 2025


Hi,

you could use a (dedicated) kernel protocol for your VIP and
enable+disable that protocol via birdc.

You just need to ensure that this protocol is the only one which
imports the VIP into bird's routing table and it should not export any
routes the host may require.

(It would also be possible to use the static protocol for that purpose,
but it would advert the VIP also when it is not present in the Linux
routing stack.)


HTH,
Thomas


On Do, 2025-08-07 at 00:54 +0200, Anthony Hoppe via Bird-users wrote:
> 
> Hello,
> 
> We are currently using GoBGP with keepalived and are looking to
> switch
> to BIRD.  We currently have keepalived inject the VIPs into GoBGP via
> the following quorum_up and quorum_down commands:
> 
> quorum_up   "/usr/bin/gobgp global rib add -a ipv4 [VIP-ADDRESS]/32"
> quorum_down "/usr/bin/gobgp global rib del -a ipv4 [VIP-ADDRESS]/32"
> 
> Is there a similar mechanism with BIRD?  Right now what I've done is
> instead I'm having keepalived add/remove the VIPs to/from a dummy
> interface and have the dummy interface as one of the interested
> interfaces under protocol direct.
> 
> quorum_up   "/usr/bin/ip address add [VIP-ADDRESS]/32 dev VIPs"
> quorum_down "/usr/bin/ip address delete [VIP-ADDRESS]/32 dev VIPs"
> 
> This works as expected, when keepalived adds the VIPs BIRD exports
> them and when keepalived removes the VIPs BIRD stops exporting them.
> 
> However, I am still curious if there is a mechanism where I can tell
> keepalived to tell BIRD directly to advertise them?
> 
> Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20250807/087f78d7/attachment.htm>


More information about the Bird-users mailing list