shutdown BGP sessions without administrative shutdown?

Tim Meusel bird at bastelfreak.de
Mon Feb 22 22:20:41 CET 2021



Hi!
I'm running many boxes with Bird 2.x. They all peer with virtual JunOS
routers via BGP. Each Bird instance announces routes for IP addresses
from local virtual machines. In case bird dies or gets stopped for
upgrades, I want that the JunOS route reflectors keep the routes for a
certain amount of time. My config currently looks like this:

template bgp VMX {
  local $ip as $as;
  multihop;  # we don't have a layer 2 connection to the routers
  bfd graceful;
  hold time 240;
  startup hold time 240;
  connect retry time 120;
  graceful restart yes;
  graceful restart time 0;
  long lived graceful restart yes;
  long lived stale time 90;
  ipv4 {
    export filter virtual_machines_v4;
    import none;
    next hop self;
  };
  ipv6 {
    export filter virtual_machines_v6;
    import none;
    next hop self;
  };
}

protocol bgp $peer from VMX {
  description $desc;
  neighbor $ip> as $as;
}

this works fine if I do:
* birdc reconfigure
* kill -HUP on the bird pid
* killall -9 bird

however if I do a `systemctl stop bird`, it does an  administrative
shutdown and the virtual MX drops the routes. As far as I understand the
RFC for LLGR this is the correct behavior. Can one of you tell me if
there is an option on JunOS to keep the routes, even after a `
administrative shutdown`, or if I can advice Bird to not cleanly
shutdown sessions?

Cheers, Tim


-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20210222/9d487b22/attachment.sig>


More information about the Bird-users mailing list