BFD configuration
bfd-enable
This command enables BFD protocol on the BGP neighbor being configured.
The use of a negative form (no) of the command disables BFD protocol.
Syntax
[no] bfd-enable
Parameters
The command does not contain parameters.
Default value
Process disabled.
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-neighbor)# bfd-enable
ip bfd idle-tx-interval
This command sets the interval after which the BFD message is sent to the neighbor. This parameter is used to reduce the number of generated messages for those cases when the BFD neighbor is not available or the BFD protocol is turned off.
The use of a negative form (no) of the command sets the default value.
Syntax
ip bfd idle-tx-interval <TIMEOUT>
no ip bfd idle-tx-interval
Parameters
<TIMEOUT> – interval after which the BFD packet is sent takes a value in milliseconds in the range:
- [200..65535] for ESR-1000/1200/1500/1511/1700/3100;
- [300..65535] for ESR-10/12V/12VF/14VF/20/21/100/200.
Default value
1 second
Required privilege level
10
Command mode
CONFIG
CONFIG-GI
CONFIG-TE
CONFIG-SUBIF
CONFIG-QINQ-IF
CONFIG-PORT-CHANNEL
CONFIG-BRIDGE
CONFIG-GRE
CONFIG-IP4IP4
Example
esr(config)# ip bfd idle-tx-interval 4000
ip bfd log-adjacency-changes
This command enables logging of BFD protocol state changes.
The use of a negative form (no) of the command disables logging of BFD protocol state changes.
Syntax
ip bfd log-adjacency-changes
no ip bfd log-neighbor-changes
Parameters
The command does not contain parameters.
Default value
Disabled.
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# ip bfd log-adjacency-changes
ip bfd min-rx-interval
This command sets the minimum interval after which the neighbor should generate BFD message. This parameter is advertising to the neighbor.
The use of a negative form (no) of the command sets the default value.
Syntax
ip bfd min-rx-interval <TIMEOUT>
no ip bfd min-rx-interval
Parameters
<TIMEOUT> – interval after which the BFD message is sent by the neighbor takes a value in milliseconds in the range:
- [200..65535] for ESR-1000/1200/1500/1511/1700/3100;
- [300..65535] for ESR-10/12V/12VF/14VF/20/21/100/200.
Default value
300 ms on ESR-10/12V/12VF/14VF/20/21/100/200
200 ms on ESR-1000/1200/1500/1511/1700/3100
Required privilege level
10
Command mode
CONFIG
CONFIG-GI
CONFIG-TE
CONFIG-SUBIF
CONFIG-QINQ-IF
CONFIG-PORT-CHANNEL
CONFIG-BRIDGE
CONFIG-GRE
CONFIG-IP4IP4
Example
esr(config)# ip bfd min-rx-interval 1000
ip bfd min-tx-interval
This command sets the minimal interval after which the BFD message is sent to the neighbor. This parameter is used only when the BFD session is active; in other cases, «p bfd idle-tx-interval is used.
The use of a negative form (no) of the command sets the default value.
Syntax
ip bfd min-tx-interval <TIMEOUT>
no ip bfd min-tx-interval
Parameters
<TIMEOUT> – interval after which the BFD message is sent to the neighbor takes a value in milliseconds in the range:
- [200..65535] for ESR-1000/1200/1500/1511/1700/3100;
- [300..65535] for ESR-10/12V/12VF/14VF/20/21/100/200.
Default value
300 ms on ESR-10/12V/12VF/14VF/20/21/100/200
200 ms on ESR-1000/1200/1500/1511/1700/3100
Required privilege level
10
Command mode
CONFIG
CONFIG-GI
CONFIG-TE
CONFIG-SUBIF
CONFIG-QINQ-IF
CONFIG-PORT-CHANNEL
CONFIG-BRIDGE
CONFIG-GRE
CONFIG-IP4IP4
Example
esr(config)# ip bfd min-tx-interval 1000
ip bfd multiplier
This command sets the amount of dropped packets, at which the BFD neighbor is considered to be unavailable. The time of detection of unavailability in each direction is calculated from the given number multiplied by the tx/rx interval.
The use of a negative form (no) of the command sets the default value.
Syntax
ip bfd multiplier <COUNT>
no ip multiplier
Parameters
<COUNT> – amount of dropped packets, at which the neighbor is considered to be unavailable, takes values in the range of [1..100].
Default value
5
Required privilege level
10
Command mode
CONFIG
CONFIG-GI
CONFIG-TE
CONFIG-SUBIF
CONFIG-QINQ-IF
CONFIG-PORT-CHANNEL
CONFIG-BRIDGE
CONFIG-GRE
CONFIG-IP4IP4
Example
esr(config)# ip bfd multiplier 10
ip bfd neighbor
This command puts BFD mechanism with the specified IP address into operation. Operation of this mechanism is necessary to remove static routes from the routing table when next-hop is not available (the bfd key of the ip route command. See section ip route)
The use of a negative form (no) of the command stops mechanism with the specified IP address operation
Syntax
ip bfd neighbor <ADDR> [ { interface <IF> | tunnel <TUN> } ] [ local-address <ADDR> [ multihop ] ] [ vrf <VRF> ]
no ip bfd neighbor <ADDR> [vrf <VRF>]
Parameters
<ADDR> – gateway IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255];
<IF> – an interface or a group of interfaces is specified in the form described in Section Types and naming order of router interfaces;
<TUN> – the name of the tunnel is specified as described in section Types and naming order of router tunnels;
<VRF> – VRF name, set by the string of up to 31 characters.
multihop – key for setting TTL=255, for BFD mechanism operation through the routed network.
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# ip bfd neighbor 192.168.0.2
ip bfd passive
This command switches BFD session to the passive mode, so that BFD messages will not be sent until the messages from BFD neighbor are received.
The use of a negative form (no) of the command sets the default value.
Syntax
[no] ip bfd passive
Parameters
The command does not contain parameters.
Default value
Active mode.
Required privilege level
10
Command mode
CONFIG-GI
CONFIG-TE
CONFIG-SUBIF
CONFIG-QINQ-IF
CONFIG-PORT-CHANNEL
CONFIG-BRIDGE
CONFIG-GRE
CONFIG-IP4IP4
Example
esr(config)# ip bfd passive
ip ospf bfd-enable
This command enables the BFD protocol for the OSPF protocol on the interface.
The use of a negative form (no) of the command disables the BFD protocol for the OSPF protocol on the interface.
Syntax
[no] ip ospf bfd-enable
Parameters
The command does not contain parameters.
Default value
BFD protocol for OSPF protocol disabled.
Required privilege level
10
Command mode
CONFIG-GI
CONFIG-TE
CONFIG-SUBIF
CONFIG-QINQ-IF
CONFIG-SERIAL
CONFIG-PORT-CHANNEL
CONFIG-BRIDGE
CONFIG-E1
CONFIG-MULTILINK
CONFIG-LOOPBACK
CONFIG-GRE
CONFIG-IP4IP4
CONFIG-LT
Example
esr(config-if-gi)# ip ospf bfd-enable
ipv6 bfd log-adjacency-changes
This command enables logging of IPv6 BFD protocol state changes.
The use of a negative form (no) of the command disables logging of IPv6 BFD protocol state changes.
Syntax
ipv6 bfd log-adjacency-changes
no ipv6 bfd log-adjacency-changes
Parameters
The command does not contain parameters.
Default value
Logging disabled.
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# ipv6 bfd log-adjacency-changes
ipv6 bfd neighbor
This command puts BFD mechanism with the specified IPv6 address into operation. This mechanism is necessary to remove bgp routes from the routing table if the next-hop is not available.
The use of a negative form (no) of the command stops mechanism with the specified IPv6 address operation
Syntax
ipv6 bfd neighbor <IPV6-ADDR> [ interface <IF> ] [ local-address <IPV6-ADDR> [ multihop ] ] [ vrf <VRF> ]
no ipv6 bfd neighbor <IPV6-ADDR> [ vrf <VRF> ]
Parameters
<IPV6-ADDR> – client IPv6 address, defined as X:X:X:X::X where each part takes values in hexadecimal format [0..FFFF];
<IF> – an interface or a group of interfaces is specified in the form described in Section Types and naming order of router interfaces;
<VRF> – VRF name, set by the string of up to 31 characters.
multihop – key for setting TTL=255, for BFD mechanism operation through the routed network.
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# ipv6 bfd neighbor FF02:0:0:0:0:1:FF00::/104
ipv6 ospf bfd-enable
This command enables the BFD protocol for the OSPFv3 protocol on the interface.
The use of a negative form (no) of the command disables the BFD protocol for the OSPFv3 protocol on the interface.
Syntax
[no] ipv6 ospf bfd-enable
Parameters
The command does not contain parameters.
Default value
BFD protocol for OSPF protocol disabled.
Required privilege level
10
Command mode
CONFIG-GI
CONFIG-TE
CONFIG-SUBIF
CONFIG-QINQ-IF
CONFIG-PORT-CHANNEL
CONFIG-BRIDGE
CONFIG-LOOPBACK
CONFIG-LT
Example
esr(config-if-gi)# ip ospf bfd-enable
show ip bfd
This command displays information about the BFD protocol parameters or specific interfaces when using a filter.
Syntax
show ip bfd [ { interface <IF> | tunnel <TUN> } ]
Parameters
<IF> – an interface or a group of interfaces is specified in the form described in Section Types and naming order of router interfaces.
<TUN> – the name of the tunnel is specified as described in section Types and naming order of router tunnels.
Required privilege level
1
Command mode
ROOT
Example
esr# show ip bfd
Minimum RX interval: 200 ms
Minimum TX interval: 200 ms
Idle TX interval: 1000 ms
Multiplier: 5 packets
Passive: No
esr# show ip bfd interface gi1/0/1
Minimum RX interval: 200 ms
Minimum TX interval: 200 ms
Idle TX interval: 1000 ms
Multiplier: 10 packets
Passive: Yes