Table Of Contents
Configuring Bidirectional Forwarding Detection
Understanding BFD
Configuring BFD
Configuring BFD for OSPF
Configuring BFD for OSPF on One of More Interfaces
Configuring BFD for OSPF on All Interfaces
Configuring BFD for BGP
Configuring BFD for IS-IS
Configuring BFD for IS-IS on a Single Interface
Configuring BFD for IS-IS for All Interfaces
Configuring BFD for Static Routes
Configuration Examples for BFD
OSPF with BFD
BGP with BFD
IS-IS with BFD
Configuring Bidirectional Forwarding Detection
Bidirectional Forwarding Detection (BFD) provides a low-overhead, short-duration method of detecting failures in the forwarding path between two adjacent routers, including the interfaces, data links, and forwarding planes. BFD is a detection protocol that you enable at the interface and routing protocol levels.
The following sections describe how to configure BFD on the Cisco MWR 2941:
•
Understanding BFD
•
Configuring BFD
•
Configuration Examples for BFD
Understanding BFD
Cisco supports the BFD asynchronous mode, in which two routers exchange BFD control packets to activate and maintain BFD neighbor sessions. To create a BFD session, you must configure BFD on both systems (or BFD peers). After you have enabled BFD on the interface and the router level for the appropriate routing protocols, a BFD session is created, BFD timers are negotiated, and the BFD peers begin to send BFD control packets to each other at the negotiated interval.
Configuring BFD
The following sections describe how to configure BFD for each routing protocol:
•
Configuring BFD for OSPF
•
Configuring BFD for BGP
•
Configuring BFD for IS-IS
•
Configuring BFD for Static Routes
For more information about BFD, refer to the IP Routing: BFD Configuration Guide, Cisco IOS Release 15.0S. For a sample BFD configurations, see Configuration Examples for BFD.
Configuring BFD for OSPF
This section describes how to configure BFD on the Cisco MWR 2941.
Configuring BFD for OSPF on One of More Interfaces
Follow these steps to configure BFD for OSPF on a single interface.
|
Command
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
Router(config)# interface vlan1
|
Specifies an interface to configure.
|
Step 4
|
Router(config-if)# ip ospf bfd
|
Enables BFD for OSPF on the interface.
|
Step 5
|
Router(config-if)# bfd interval 50
min_rx 50 multiplier 3
|
Specifies the BFD session parameters.
|
Step 6
|
end
Example:
Router#
|
Exits configuration mode.
|
Note
You can also use the show bfd neighbors and show ip ospf commands to display troubleshooting information about BFD and OSPF.
Configuring BFD for OSPF on All Interfaces
Follow these steps to configure BFD for OSPF on all interfaces.
|
Command
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
Router(config)# router ospf 100
|
Creates a configuration for an OSPF process.
|
Step 4
|
Router(config)# bfd all-interfaces
|
Enables BFD globally on all interfaces associated with the OSPF routing process.
|
Step 5
|
exit
Example:
Router#
|
Exits configuration mode.
|
Note
You can disable BFD on a single interface using the ip ospf bfd disable command when configuring the relevant interface.
Configuring BFD for BGP
Follow these steps to configure BFD for BGP.
|
Command
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
Router(config)# router bgp as-tag
|
Specifies a BGP process and enter router configuration mode.
|
Step 4
|
Router(config)# neighbor ip-address
fall-over bfd
|
Enables support for BFD failover.
|
Step 5
|
exit
Example:
Router#
|
Exits configuration mode.
|
Step 6
|
show bfd neighbors [details]
show ip bgp neighbor
|
Use the following commands to verify the BFD configuration:
• show bfd neighbors [details] —Verifies that the BFD neighbor is active and displays the routing protocols that BFD has registered.
• show ip bgp neighbor—Displays information about BGP and TCP connections to neighbors.
|
Configuring BFD for IS-IS
This section describes how to configure BFD for IS-IS routing.
Configuring BFD for IS-IS on a Single Interface
Follow these steps to configure BFD for IS-IS on a single interface.
|
Command
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
Router(config)# interface vlan1
Router(config-if)#
|
Enters interface configuration mode.
|
Step 4
|
Router(config-if) ip router isis
[tag]
|
Enables support for IPv4 routing on the interface.
|
Step 5
|
exit
Example:
Router#
|
Exits configuration mode.
|
Note
You can use the show bfd neighbors and show clns interface commands to verify your configuration.
Configuring BFD for IS-IS for All Interfaces
Follow these steps to configure BFD for IS-IS on all interfaces.
|
Command
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
Router(config)# interface vlan1
Router(config-if)#
|
Enters interface configuration mode.
|
Step 4
|
Router(config-if) ip router isis
[tag]
|
Enables support for IPv4 routing on the interface.
|
Step 5
|
Router(config-router)# bfd
all-interfaces
|
Enables BFD globally on all interfaces associated with the IS-IS routing process.
|
Step 6
|
Router(config-router)# exit
Router(config)#
|
Exits the interface.
|
Step 7
|
Router(config)# interface vlan1
Router(config-if) ip router isis
[tag]
Router(config-if)# isis bfd
|
If you want to enable BFD on a per-interface basis for one or more interfaces associated with the IS-IS routing process, complete the following steps:
a. Use the interface command to enter interface configuration mode.
b. Use the ip router isis command to enables support for IPv4 routing on the interface.
c. Use the isis bfd command to enable BFD on the interface.
|
Step 8
|
exit
Example:
Router#
|
Exit configuration mode.
|

Note
You can use the show bfd neighbors and show clns interface commands to verify your configuration.
Configuring BFD for Static Routes
Follow these steps to configure BFD for static routes.
|
Command
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
Router(config)# interface serial
2/0
|
Specifies an interface and enters interface configuration mode.
|
Step 4
|
Router(config-if)# ip address
10.201.201.1 255.255.255.0
|
Configures an IP address for the interface.
|
Step 5
|
Router(config-if)# bfd interval 500
min_rx 500 multiplier 5
|
Enables BFD on the interface.
|
Step 6
|
Router(config-if)# ip route static
bfd Serial 2/0 10.201.201.2
|
Specifies a static route BFD neighbor.
|
Step 7
|
exit
Example:
Router#
|
Exits configuration mode.
|
Note
You can use the show ip static route command to verify your configuration.
Configuration Examples for BFD
The following section contains sample configurations for each routing protocol using BFD.
•
OSPF with BFD
•
BGP with BFD
•
IS-IS with BFD
For more information about how to configure routing on the Cisco MWR 2941, see Chapter 20 "Configuring Routing Protocols."
OSPF with BFD
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
ip host tftp 64.102.116.25
multilink bundle-name authenticated
cem-group 0 timeslots 1-31
ip address 88.88.88.150 255.255.255.255
interface GigabitEthernet0/0
switchport trunk allowed vlan 1-9,11-4094
interface GigabitEthernet0/1
interface GigabitEthernet0/2
switchport access vlan 10
interface GigabitEthernet0/3
interface GigabitEthernet0/4
interface GigabitEthernet0/5
xconnect 10.10.10.2 10001 encapsulation mpls
xconnect 10.10.10.2 10020 encapsulation mpls
xconnect 10.10.10.2 10030 encapsulation mpls
xconnect 10.10.10.2 222 encapsulation mpls
ip address 192.168.52.88 255.255.255.0
ip address 172.22.41.2 255.255.255.0
bfd interval 50 min_rx 50 multiplier 3
description Secondary EVC
ip address 172.22.42.2 255.255.255.0
timers throttle spf 50 50 1000
timers throttle lsa all 0 25 10000
timers pacing retransmission 30
redistribute static subnets
network 88.88.88.150 0.0.0.0 area 0
network 172.22.41.0 0.0.0.255 area 0
network 172.22.42.0 0.0.0.255 area 0
ip default-gateway 192.168.52.1
ip route 0.0.0.0 0.0.0.0 192.168.52.1
ip route 64.102.116.25 255.255.255.255 192.168.52.1
exception data-corruption buffer truncate
network-clock-select hold-timeout infinite
network-clock-select mode nonrevert
network-clock-select 1 E1 0/0
BGP with BFD
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
ip host tftp 64.102.116.25
multilink bundle-name authenticated
cem-group 0 timeslots 1-31
ip address 20.20.20.20 255.255.255.255
interface GigabitEthernet0/2
switchport access vlan 10
interface GigabitEthernet0/3
switchport access vlan 200
interface GigabitEthernet0/4
interface GigabitEthernet0/5
switchport access vlan 100
interface ATM0/0.1 multipoint
xconnect 10.10.10.10 10010 encapsulation mpls
xconnect 10.10.10.10 10020 encapsulation mpls
interface ATM0/0.2 multipoint
xconnect 10.10.10.10 10030 encapsulation mpls
interface Vlan4 (connected to 7600)
ip address 11.1.1.2 255.255.255.0
bfd interval 50 min_rx 50 multiplier 3
ip address 192.168.40.61 255.255.255.128
ip address 12.1.1.2 255.255.255.0
bfd interval 50 min_rx 50 multiplier 3
ip address 12.1.2.2 255.255.255.0
bfd interval 50 min_rx 50 multiplier 3
neighbor 11.1.1.1 remote-as 100
neighbor 11.1.1.1 fall-over bfd
neighbor 11.1.1.1 send-label
neighbor 12.1.1.1 remote-as 300
neighbor 12.1.1.1 fall-over bfd
neighbor 12.1.1.1 send-label
neighbor 12.1.2.1 remote-as 300
neighbor 12.1.2.1 fall-over bfd
neighbor 12.1.2.1 send-label
connect atmcellsw ATM0/0 0/100 ATM0/1 0/100
mpls ldp router-id Loopback0 force
IS-IS with BFD
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
ip host tftp 64.102.116.25
multilink bundle-name authenticated
cem-group 0 timeslots 1-31
ip address 20.20.20.20 255.255.255.255
interface GigabitEthernet0/2
switchport access vlan 10
interface GigabitEthernet0/3
switchport access vlan 200
interface GigabitEthernet0/4
interface GigabitEthernet0/5
switchport access vlan 100
interface ATM0/0.1 multipoint
xconnect 10.10.10.10 10010 encapsulation mpls
xconnect 10.10.10.10 10020 encapsulation mpls
interface ATM0/0.2 multipoint
xconnect 10.10.10.10 10030 encapsulation mpls
ip address 11.1.1.2 255.255.255.0
ip router isis test_ip_isis
ip address 192.168.40.61 255.255.255.128
ip address 12.1.1.2 255.255.255.0
ip router isis test_ip_isis
bfd interval 50 min_rx 50 multiplier 3
ip address 12.1.2.2 255.255.255.0
ip router isis test_ip_isis
bfd interval 50 min_rx 50 multiplier 3
net 47.0004.004d.0055.0000.0c00.0002.00
net 47.0004.004d.0056.0000.0c00.0002.00