H3C Technologies H3C SR8800 User Manual
Page 37
21
[RouterA] quit
# Configure static routes on Router B and enable BFD control packet mode for the static route
through Router D.
<RouterB> system-view
[RouterB] interface loopback 1
[RouterB-LoopBack1] bfd min-transmit-interval 500
[RouterB-LoopBack1] bfd min-receive-interval 500
[RouterB-LoopBack1] bfd detect-multiplier 9
[RouterB-LoopBack1] quit
[RouterB] ip route-static 121.1.1.0 24 1.1.1.9 bfd control-packet bfd-source 2.2.2.9
[RouterB] ip route-static 121.1.1.0 24 GigabitEthernet 3/1/2 13.1.1.2 preference 65
[RouterB] quit
3.
Verify the configuration:
The following operations are performed on Router A. The operations on Router B are similar.
# Display the BFD session information of Router A.
<RouterA> display bfd session
Total session number: 1 Up session number: 0 Init mode: Active
IPv4 session working under Ctrl mode:
LD/RD SourceAddr DestAddr State Holdtime Interface
4/7 1.1.1.9 2.2.2.9 Up 2000ms Loop1
# Display the static route information of Router A.
<RouterA> display ip routing-table protocol static
Public Routing Table : Static
Summary Count : 2
Static Routing table Status : < Active>
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
120.1.1.0/24 Static 60 0 2.2.2.9 GE3/1/1
Static Routing table Status : <Inactive>
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
120.1.1.0/24 Static 65 0 10.1.1.100 GE3/1/2
# Enable BFD debugging on Router A. When the link between Router A and Router D fails, Router
A can detect the failure.
<RouterA> debugging bfd event
<RouterA> debugging bfd scm
<RouterA> terminal debugging
%Oct 10 10:18:18:672 2010 RouterA BFD/4/LOG:Sess[1.1.1.9/2.2.2.9, Loop1,Ctrl], Sta:
UP->DOWN, Diag: 1
*Oct 10 10:18:18:672 2010 RouterA BFD/7/EVENT:Send sess-down Msg,
[Src:1.1.1.9,Dst:2.2.2.9,Loop1,Ctrl], instance:0, protocol:STATIC