Posts: 57
Registered: ‎06-02-2008

BFD for static routes

Hi All,


i have a network scenario wherein i have two paths to another site (site 2) for redundancy purposes

SITE 1                                                                          SITE 2
Router A ---- Switch  ---------------------------switch ----- Router C
   |                                                                                   |
   |                                                                                   |
Switch                                                                         Switch
   |                                                                                   |
   |                                                                                   |
Router B ----- Switch ---------------------------------------------|

Routes A, B and C are clustered J6350s.  Router B has only static routes and the primary path to router C is through Router A.  My objective is to switch to link Y when link X fails.  Since i only have static routes, it will not be withdrawn when link X fails because the interface is still active.  

note: router A failover to router B going to Router C, however, Router B routes the packet back to router A creating a loop since the static route is not withdrawn and the qualified next hop does not become active.

If BFD can help in this scenario, can anyone provide correct BFD configuration?  what other options are available?


this is currently what i have and it doesn't work:


route {

     next-hop;    <--router A

     qualified-next-hop;   <---router C

     bfd-liveness-detection {

          minimum-interval 500;

          multiplier 3;



          minimum-receive-ttl 255;




Thank you,



Recognized Expert
Posts: 191
Registered: ‎12-30-2008

Re: BFD for static routes


Hello cyke,


 Yes, BFD should help in your case and your configuration should work (assuming you have a matching one on the remote end(s).


 What does the output of show bfd session tell you?




If you think your question's answered, please
mark the respective post as "Accepted Solution".

Kudos are an excellent way of showing appreciation, too.
Posts: 196
Registered: ‎09-21-2010

Re: BFD for static routes

[ Edited ]

Not a BFD pro by any means, but with that config, aren't you monitoring the forwarding to Router A?  If the link between router A and router B stays up, then BFD would be live right?  It's when the link between router A and C drops you want the B-C (y link) to be used.



Posts: 52
Registered: ‎02-02-2010

Re: BFD for static routes

Configuraton seems fine, are those layer 3 connectivity normal?

Copyright© 1999-2015 Juniper Networks, Inc. All rights reserved.