BFD configuration:
Code: Select all
[korobeynikov@MikroTik] /routing/bfd> export
# 2024-04-12 23:52:46 by RouterOS 7.14.2
# software id = XXXX-XXXX
#
# model = RB3011UiAS
# serial number = XXXXXXXXXXXX
/routing bfd configuration
add disabled=no interfaces=static min-rx=1s min-tx=1s
add addresses=203.0.113.153/32 disabled=no interfaces=ether1 min-rx=1s min-tx=1s multiplier=3
After creating the route, the BFD session is activated:
Code: Select all
[korobeynikov@MikroTik] /routing/bfd/session> print
Flags: U - up, I - inactive
0 U multihop=no vrf=main remote-address=203.0.113.153%ether1 local-address="" state=up state-changes=2
uptime=12s desired-tx-interval=1s actual-tx-interval=1s required-min-rx=1s remote-min-rx=1s remote-min-tx=1s
multiplier=5 hold-time=3s packets-rx=12 packets-tx=1
Moreover, if we print the route, we will get the following:
What means check-gateway="(unknown)"?[korobeynikov@MikroTik] /ip/route> export
/ip route
add check-gateway="(unknown)" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=203.0.113.153%ether1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no target-scope=10
But the saddest thing happens after the device is overloaded or the lights are turned off/on - the BFD session does not recover.
Using the Torch tool, I see that the ISP is sending packets via UDP to port 3784, but my device is not.
To activate a BFD session, you must first turn off the route and then turn it on.
Packets begin to flow in both directions.
I believe this is a serious software bug.
P.S. I know about other ways to control the gateway, but this topic is about BFD.