To specify static
route bidirectional forwarding detection (BFD) neighbors, use the
ip route static bfd command in global
configuration mode. To remove a static route BFD neighbor, use
theno form of this command
ip route static bfd
{ interface-type interface-number ip-address |
vrf
vrf-name} [ group
group-name] [passive] [unassociate]
no ip route static bfd
{ interface-type interface-number ip-address |
vrf
vrf-name} [ group
group-name] [passive] [unassociate]
Syntax Description
interface-type interface-number
|
Interface type and number.
|
ip-address
|
IP address of the gateway, in A.B.C.D format.
|
vrf
vrf-name
|
Specifies Virtual Routing and Forwarding (VRF) instance and
the destination vrf name.
|
group
group-name
|
(Optional) Assigns a BFD group. The group-name is a character
string of up to 32 characters specifying the BFD group name.
|
unassociate
|
(Optional) Unassociates the static route configured for a BFD.
|
Command Default
No static route BFD neighbors are specified.
Command Modes
Global configuration (config)
Command History
Release
|
Modification
|
|
This command was introduced.
|
Usage Guidelines
Use the ip route static bfd command to specify static route BFD
neighbors. All static routes that have the same interface and gateway specified
in the configuration share the same BFD session for reachability notification.
All static routes that specify the same values for the interface-type,
interface-number, and ip-address arguments will automatically use BFD to
determine gateway reachability and take advantage of fast failure detection.
The
group keyword assigns a BFD group. The static BFD configuration
is added to the VPN routing and forwarding (VRF) instance with which the
interface is associated. The
passive keyword specifies the passive member of the group.
Adding static BFD in a group without the passive keyword makes the BFD an
active member of the group. A static route should be tracked by the active BFD
configuration in order to trigger a BFD session for the group. To remove all
the static BFD configurations (active and passive) of a specific group, use the
no ip route static bfd
command and specify the BFD group name.
The
unassociate keyword specifies that a BFD neighbor is not
associated with static route, and the BFD sessions are requested if an
interface has been configured with BFD. This is useful in bringing up a BFDv4
session in the absence of an IPv4 static route. If the unassociate keyword is
not provided, then the IPv4 static routes are associated with BFD sessions.
BFD requires that BFD sessions are initiated on both endpoint devices.
Therefore, this command must be configured on each endpoint device.
The BFD static session on a switch virtual interface (SVI) is
established only after the
bfd interval
milliseconds
min_rx
milliseconds
multiplier
multiplier-value
command is disabled and enabled on that SVI.
To enable the static BFD sessions, perform the following steps:
-
Enable BFD timers on the SVI.
bfd interval
milliseconds
min_rx
milliseconds
multiplier
multiplier-value
-
Enable BFD for the static IP route
ip route static bfd
interface-type interface-number ip-address
-
Disable and enable the BFD timers on the SVI again.
no bfd interval
milliseconds
min_rx
milliseconds
multiplier
multiplier-value
bfd interval
milliseconds
min_rx
milliseconds
multiplier
multiplier-value
Examples
The following example shows how to configure BFD for all static routes
through a specified neighbor, group, and active member of the group:
Device# configuration terminal
Device(config)# ip route static bfd GigabitEthernet 1/0/1 10.1.1.1 group group1
The following example shows how to configure BFD for all static routes
through a specified neighbor, group, and passive member of the group:
Device# configuration terminal
Device(config)# ip route static bfd GigabitEthernet 1/0/1 10.2.2.2 group group1 passive
The following example shows how to configure BFD for all static routes
in an unassociated mode without the group and passive keywords:
Device# configuration terminal
Device(config)# ip route static bfd GigabitEthernet 1/0/1 10.2.2.2 unassociate