Page MenuHomeVyOS Platform

BFD Static Route Monitoring
Closed, ResolvedPublic

Description

Staticd has introduced the ability to monitor a static route and remove it from RIB , When the BFD session is down it is removed from RIB and propagated , if it's is up the routes are installed :

frr eg :

rt-1# show running-config staticd
Building configuration...

Current configuration:
!
frr version 8.5

hostname vyos
hostname rt-1

!
ip route 192.168.10.0/24 192.168.2.3
ip route 10.10.13.3/32 192.168.2.3 bfd profile static 

operation command :

rt-1# show bfd static route
Showing BFD monitored static routes:

  Next hops:
    VRF default IPv4 Unicast:
        10.10.13.3/32 peer 192.168.2.3 (status: installed)

Details

Version
VyOS 1.4-rolling-202304130846
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)

Event Timeline

fernando changed the task status from Open to In progress.
fernando claimed this task.
fernando created this object in space S1 VyOS Public.

bfd is able to monitoring static routes , using profiles and multi-hop to reached a peer :

vyos@rt-1# run show configuration commands | match static
set protocols bfd profile static interval multiplier '3'
set protocols bfd profile static interval receive '300'
set protocols bfd profile static interval transmit '300'
set protocols bfd profile static_m interval multiplier '5'
set protocols bfd profile static_m interval receive '800'
set protocols bfd profile static_m interval transmit '800'

set protocols static route 10.10.13.3/32 next-hop 192.168.2.3 bfd profile 'static'
set protocols static route 172.16.10.3/32 next-hop 192.168.10.1 bfd multi-hop source 192.168.2.1 profile 'static_m'
set protocols static route 192.168.10.0/24 next-hop 192.168.2.3

operational commands :

vyos@rt-1# run show bfd static routes
Showing BFD monitored static routes:

  Next hops:
    VRF default IPv4 Unicast:
        10.10.13.3/32 peer 192.168.2.3 (status: installed)
        172.16.10.3/32 peer 192.168.10.1 (status: installed)

    VRF default IPv4 Multicast:

    VRF default IPv6 Unicast:


vyos@rt-1# run show bfd peers
BFD Peers:
        peer 192.168.10.1 multihop local-address 192.168.2.1 vrf default
                ID: 4085568367
                Remote ID: 580912409
                Active mode
                Minimum TTL: 2
                Status: up
                Uptime: 14 minute(s), 52 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 800ms
                        Transmission interval: 800ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 5
                        Receive interval: 800ms
                        Transmission interval: 800ms
                        Echo receive interval: 50ms

        peer 192.168.2.3 vrf default
                ID: 4157956230
                Remote ID: 3836274322
                Active mode
                Status: up
                Uptime: 1 hour(s), 15 minute(s), 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
Viacheslav changed the task status from In progress to Needs testing.May 31 2023, 2:57 PM