Command Line Reference
High Availability Configuratio...
BFD
26 min
bfd view bfd view table 1 bfd view table 1 bfd view command purpose show bfd peers \[ options ] display bfd session information show bfd peer { a b c d|x\ x x\ x } \[ multihop|local address|interface|json|counters ] display the specified bfd session information clear bfd peers counters clear bfd session statistics clear bfd peer { a b c d|x\ x x\ x } \[ multihop|local address|interface ] counters clear the specified bfd session statistics show bfd peers \[ show bfd peers \[ options ] \[command] show bfd peers \[ options ] \[purpose] display bfd session information \[options] option description brief display abbreviated bfd information json display in json format counters display bfd statistics \[view] privileged user view \[use cases] sonic# show bfd peers bfd peers peer 10 226 46 2 multihop local address 10 226 33 2 vrf default id 1634016920 remote id 2927170466 passive mode minimum ttl 254 status up uptime 32 minute(s), 14 second(s) diagnostics ok remote diagnostics ok peer type configured 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 sonic# show bfd peers brief session count 2 sessionid localaddress peeraddress status \========= ============ =========== ====== 1634016920 10 226 33 2 10 226 46 2 up 2943610781 2000 226 33 2 2000 226 46 2 admin down sonic# show bfd peers counters bfd peers peer 10 226 46 2 multihop local address 10 226 33 2 vrf default control packet input 7808 packets control packet output 7675 packets echo packet input 0 packets echo packet output 0 packets session up events 1 session down events 3 zebra notifications 1 show bfd peer { show bfd peer { a b c d|x\ x x\ x x\ x } \[multihop| local address| interface| json| counters] } \[multihop| local address| interface| json| counters] \[command] show bfd peer { a b c d|x\ x x\ x } \[multihop| local address| interface| json| counters] \[purpose] display the specified bfd session information \[parameters] parameter description a b c d ipv4 neighbor address x\ x x\ x ipv6 neighbor address \[view] privileged user view \[use cases] sonic# show bfd peer 10 226 46 2 local address 10 226 33 2 multihop bfd peer peer 10 226 46 2 multihop local address 10 226 33 2 vrf default id 1634016920 remote id 2927170466 passive mode minimum ttl 254 status up uptime 3 minute(s), 56 second(s) diagnostics ok remote diagnostics ok peer type configured 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 clear bfd peers counters clear bfd peers counters \[command] clear bfd peers counters \[purpose] clear bfd session statistics \[view] privileged user view \[use cases] sonic# clear bfd peers counters clear bfd peer { clear bfd peer { a b c d|x\ x x\ x } \[multihop| local address| interface] counters \[command] clear bfd peer { a b c d|x\ x x\ x } \[multihop| local address| interface] counters \[purpose] clear the specified bfd session statistics \[parameters] parameter description a b c d ipv4 neighbor address x\ x x\ x ipv6 neighbor address \[view] privileged user view \[use cases] sonic# clear bfd peer 10 226 46 2 multihop local address 10 226 33 2 interface ethernet 0/81 counters sonic# bfd config bfd config table 2 bfd config table 2 bfd config command purpose bfd enter bfd configuration view peer { a b c d|x\ x x\ x } \[ multihop| local address| interface ] create a bfd peer, and enter bfd peer configuration view profile profile name create a bfd configuration template, and enter bfd profile configuration view profile accelerate profile name create a hardware accelerated bfd configuration template, and enter bfd profile accelerate configuration view detect multiplier detect multiplier value set bfd detection times echo mode enable echo mode echo { transmit interval interval | receive interval { interval | disabled } } specify the transmit or receive interval of echo packets echo interval interval specify both the transmit and receive interval of echo packets passive mode set bfd to passive mode receive interval interval specify the receive interval of bfd control messages transmit interval interval specify the transmit interval of bfd control messages shutdown shutdown the bfd session profile profile name use bfd profile settings bfd bfd \[command] bfd \[purpose] enter bfd configuration view \[view] global configuration view \[use cases] sonic# configure terminal sonic(config)# bfd sonic(config bfd)# peer { peer { a b c d|x\ x x\ x } \[multihop| local address| interface] \[command] peer { a b c d|x\ x x \ x } \[multihop| local address| interface] \[purpose] create a bfd peer, and enter bfd peer configuration view \[parameters] parameter description a b c d ipv4 neighbor address x\ x x \ x ipv6 neighbor address \[view] bfd configuration view \[notes] run command no peer { a b c d|x\ x x \ x } \[multihop| local address| interface] to delete bfd peer \[use cases] sonic# configure terminal sonic(config)# bfd sonic(config bfd)# peer 10 226 46 2 multihop local address 10 226 33 2 sonic(config bfd peer)# profile profile profile name \[command] profile profile name \[purpose] create a bfd configuration template, and enter bfd profile configuration view \[parameters] parameter description profile name bfd profile name \[view] bfd configuration view \[notes] run command no profile profile name to delete the profile \[use cases] sonic# configure termina sonic(config)# bfd sonic(config bfd)# profile profile1 sonic(config bfd profile)# profile accelerate profile accelerate profile name \[command] profile accelerate profile name \[purpose] create a hardware accelerated bfd configuration template, and enter bfd profile accelerate configuration view \[parameters] parameter description profile name bfd profile name \[view] bfd configuration view \[notes] the distributed bfd feature is recommended when there is a requirement for the number of bfd sessions (more than 64) or when the detection accuracy is required to be high (the packet sending interval is less than 100ms) currently, only the physical layer 3 ports on the cx308p 48y n v2, cx532p n v2 and cx732q n v2 support distributed bfd, and there are limitations on its use multihop mode, echo mode and passive mode are not supported it supports at most 7 different local detection durations there will be more than 7 different local detection durations in the following scenarios only one profile accelerate profile is configured on local system, but over 7 different session parameters are configured on remote system more than 8 profile accelerate profiles is configured on local system and is bound to bfd sessions the calculation method for local detection duration is as follows local actual receiving time interval = max {local receive interval, remote transmission interval} local detection duration= local actual receiving time interval x remote detect multiplier it is not supported to work alone with at present, you can combine it with other protocol work with bgp run command neighbor { a b c d|x\ x x \ x |string } bfd profile profile name in bgp configuration view ; work with ospf/ospfv3 run command ip ospf bfd profile profile name / ipv6 ospf6 bfd profile profile name in physical interface configuration view run command no profile accelerate profile name to delete the profile \[use cases] sonic# configure terminal sonic(config)# bfd sonic(config bfd)# profile accelerate profile1 sonic(config bfd profile accelerate)# detect multiplier detect multiplier detect multiplier value \[command] detect multiplier detect multiplier value \[purpose] set bfd detection times \[parameters] parameter description detect multiplier value the default value is 3, and the range is 2 255 \[view] bfd peer configuration view / bfd profile configuration view / bfd profile accelerate configuration view \[use cases] sonic# configure terminal sonic(config)# bfd sonic(config bfd)# peer 10 226 46 2 multihop local address 10 226 33 2 sonic(config bfd peer)# detect multiplier 5 echo mode echo mode \[command] echo mode \[purpose] enable echo mode \[view] bfd peer configuration view / bfd profile configuration view \[notes] the default is asynchronous mode only single hop bfd sessions can be configured as echo mode run command no echo mode to disable echo mode and restore to asynchronous mode \[use cases] sonic# configure terminal sonic(config)# bfd sonic(config bfd)# peer 10 226 46 2 sonic(config bfd peer)# echo mode echo {transmit interval echo {transmit interval interval |receive interval { interval |disabled}} \[command] echo { transmit interval interval | receive interval { interval | disabled }} \[purpose] specify the transmit or receive interval of echo packets \[parameters] parameter description interval specify the interval in msec, and the default value is 50 \[view] bfd peer configuration view / bfd profile configuration view \[notes] echo receive interval disabled indicates not to receive echo packets \[use cases] sonic# configure terminal sonic(config)# bfd sonic(config bfd)# peer 10 226 33 1 sonic(config bfd peer)# echo transmit interval 100 sonic(config bfd peer)# echo receive interval 100 echo interval echo interval interval \[command] echo interval interval \[purpose] specify both the transmit and receive interval of echo packets \[parameters] parameter description interval specify the interval in msec, and the default value is 50 \[view] bfd peer configuration view / bfd profile configuration view \[use cases] sonic# configure terminal sonic(config)# bfd sonic(config bfd)# peer 10 226 33 1 sonic(config bfd peer)# echo interval 100 passive mode passive mode \[command] passive mode \[purpose] set bfd to passive mode \[view] bfd peer configuration view / bfd profile configuration view \[notes] in passive mode, the switch does not attempt to start a session run command no passive mode to revert to active mode \[use cases] sonic# configure termina sonic(config)# bfd sonic(config bfd)# peer 10 226 33 1 sonic(config bfd peer)# passive mode receive interval receive interval interval \[command] receive interval interval \[purpose] specify the receive interval of bfd control messages \[parameters] parameter description interval specify the interval in msec, and the default value is 300 \[view] bfd peer configuration view / bfd profile configuration view / bfd profile accelerate configuration view \[notes] this configuration affects the local bfd session detection duration local bfd detection duration = peer detection multiplier max{local receive interval, peer transmit interval} the detection duration less than 100ms may cause bfd session flapping \[use cases] sonic# configure termina sonic(config)# bfd sonic(config bfd)# peer 10 226 33 1 sonic(config bfd peer)# receive interval 100 transmit interval transmit interval interval \[command] transmit interval interval \[purpose] specify the transmit interval of bfd control messages \[parameters] parameter description interval specify the interval in msec, and the default value is 300 \[view] bfd peer configuration view / bfd profile configuration view / bfd profile accelerate configuration view \[notes] this configuration affects the local bfd session detection duration local bfd detection duration = peer detection multiplier max{local receive interval, peer transmit interval} the detection duration less than 100ms may cause bfd session flapping \[use cases] sonic# configure termina sonic(config)# bfd sonic(config bfd)# peer 10 226 33 1 sonic(config bfd peer)# transmit interval 100 shutdown shutdown \[command] shutdown \[purpose] shutdown the bfd session \[view] bfd peer configuration view / bfd profile configuration view / bfd profile accelerate configuration view \[notes] run command no shutdown to start the bfd session \[use cases] sonic# configure termina sonic(config)# bfd sonic(config bfd)# peer 10 226 33 1 sonic(config bfd peer)# shutdown sonic(config bfd peer)# profile profile name \[command] profile profile name \[purpose] use bfd profile settings \[parameters] parameter description profile name bfd profile name \[view] bfd peer configuration view \[notes] run command no profile profile name to unbind the profile when a bfd session is configured with parameters and a bfd profile is bound, the parameters configured under the bfd peer configuration view take precedence \[use cases] sonic# configure termina sonic(config)# bfd sonic(config bfd)# peer 10 226 33 1 sonic(config bfd peer)# profile profile1 sonic(config bfd peer)# no profile profile1
