Community discussions

MikroTik App
 
danish67
just joined
Topic Author
Posts: 6
Joined: Tue Dec 05, 2023 4:00 pm

BFD without dynmaic routing protocol

Tue Mar 04, 2025 11:50 am

Hi

I have a device which supports bfd .and have two physical connection with two mikrotik routers

Both mikrotik acts as gateway and take over if primary router fails so bfd monitors the physical availability of the primary and secondary link between the device and router

Once bfd informs the device the primary link fails the device automatically set the backup router as gateway

Does mikrotik support single hop bfd configuration between a physical link where no dynamic routing are involved
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7209
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BFD without dynmaic routing protocol

Tue Mar 04, 2025 12:13 pm

Not directly. There is an option to use BFD as a gateway check for static routes but it is not yet implemented fully. It does not create BFD session, it can use only existing BFD sessions created by other routing protocols.
 
danish67
just joined
Topic Author
Posts: 6
Joined: Tue Dec 05, 2023 4:00 pm

Re: BFD without dynmaic routing protocol

Tue Mar 04, 2025 12:59 pm

Thanks for reply My device has BFD capability so once it detects there is a failure it automatically changes the gateway to backup router.My question is can mikrotik support BFD on physical links .I tried to set parameters on Mikrotik but it cannot establish BFD between the device and mikrotik to detect link failure
You do not have the required permissions to view the files attached to this post.
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1865
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: BFD without dynmaic routing protocol

Tue Mar 04, 2025 1:14 pm

BFD is just a signaling protocol, and ROS can use it with OSPF or BGP. How is the device in the drawing, labeled "Device with Single HOP BFD Activated," configured in terms of type/model, protocol (L2/L3?), etc.? Is it under your control?

Since you haven't provided any details about the setup, this is just a thought but have you considered VRRP as described in Mikrotik RouterOS > High Availability Solutions VRRP
Last edited by Larsa on Tue Mar 04, 2025 1:25 pm, edited 1 time in total.
 
danish67
just joined
Topic Author
Posts: 6
Joined: Tue Dec 05, 2023 4:00 pm

Re: BFD without dynmaic routing protocol

Tue Mar 04, 2025 1:24 pm

Yes this device is under my control

This device has BFD on it it montiors the Link status once there is a link failure on primary interface it automatically changes the default route from primary to secondary router. basically device want to monitor the link status via bfd to switch the links in case of fail over
You do not have the required permissions to view the files attached to this post.
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1865
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: BFD without dynmaic routing protocol

Tue Mar 04, 2025 1:29 pm

This is just a thought but have you considered VRRP as described in Mikrotik RouterOS > High Availability Solutions VRRP.

Anyhow, if you need further help, you'll need to provide much more detail about the entire setup in the drawing.
 
danish67
just joined
Topic Author
Posts: 6
Joined: Tue Dec 05, 2023 4:00 pm

Re: BFD without dynmaic routing protocol

Tue Mar 04, 2025 1:57 pm

I tried to add more info the diagram hope it helps
You do not have the required permissions to view the files attached to this post.
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1865
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: BFD without dynmaic routing protocol

Tue Mar 04, 2025 2:38 pm

Firstly, have you considered VRRP? I think this would be an easy-to-implement and elegant solution using the MikroTik devices. VRRP would also be completely independent of other devices in the network for their default gateway. You can also add ROS Netwatch to monitor the ISP connection status and trigger a failover if a connection breaks.

Anyhow, if VRRP won't work, you need to provide the following:
  • Primary goal: describe the intended behavior and redundancy mechanism without using technical terms.
  • Identifiers: number or label the boxes in the diagram for easier reference (e.g Router 1 = R1, Device = D1, etc). Also add labels and address for all links.
  • Network topology: is there direct physical connectivity between the device and the MikroTik routers, or are there intermediate switches? Are the MikroTik routers connected to each other in any way (e.g via a backup link or shared network segment)?
  • Device models: specify the exact models of the main device (the one detecting link failures) and both MikroTik routers.
  • NOS type and version: provide the NOS and version running on the main device and both MikroTik routers.
  • Link and interface types: clarify physical and logical connection details. Are the links Ethernet, fiber, or something else? What interfaces are used (e.g Ethernet1, SFP1, VLANs, etc.)?
  • BFD tracking type: what’s the main purpose of BFD tracking in this particular setup?