[RouterA]
bgp 100
[RouterA-bgp]
peer 2001:db8:8::2 bfd enable
[RouterA-bgp]
peer 2001:db8:8::2 bfd min-tx-interval 100 min-rx-interval 100
detect-multiplier 4
[RouterA-bgp]
quit
# Enable BFD on Router B, set the minimum interval for sending the packets and the minimum
interval for receiving the packets to 100 ms, and set the local detection time multiple to 4.
[RouterB]
bfd
[RouterB-bfd]
quit
[RouterB]
bgp 200
[RouterB-bgp]
peer 2001:db8:8::1 bfd enable
[RouterB-bgp]
peer 2001:db8:8::1 bfd min-tx-interval 100 min-rx-interval 100
detect-multiplier 4
[RouterB-bgp]
quit
# Display all BFD sessions set up by BGP on Router A.
[RouterA]
display bgp ipv6 bfd session all
Local_Address : 2001:db8:8::1
Peer_Address : 2001:db8:8::2
Tx-interval(ms): 100 Rx-interval(ms): 100
Multiplier : 4 Interface : GigabitEthernet1/0/0
LD/RD : 8192/8192 Session-State :
Up
Wtr-interval(m):0
Step 5
Verify the Configuration.
# Run the
shutdown
command on GE 2/0/0 of Router B to simulate the active link failure.
[RouterB]
interface gigabitethernet 2/0/0
[RouterB-Gigabitethernet2/0/0]
shutdown
Step 6
# Display the routing table on Router A.
[RouterA]
display bgp ipv6 routing-table
BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 1
*> Network : 2001:db8:7:: PrefixLen : 64
NextHop : 2001:db8:10::2 LocPrf :
MED : 150 PrefVal : 0
Label :
Path/Ogn : 200 i
As shown in the BGP routing table, the standby link Router A
→
Router C
→
Router B takes
effect after the active link fails. The next hop address of the route to 2001:db8:7::1/64 becomes
2001:db8:10::2.
----End
Configuration Files
l
Configuration file of Router A
#
sysname RouterA
#
ipv6
#
bfd
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
9 BGP4+ Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1135