H3C Technologies H3C SecPath F1000-E User Manual

Page 370

Advertising
background image

345

# Configure static routes on SecPath A and enable BFD control packet mode for the static route

through Router D.

<SecPathA> system-view

[SecPathA] interface loopback 1

[SecPathA-LoopBack1] bfd min-transmit-interval 500

[SecPathA-LoopBack1] bfd min-receive-interval 500

[SecPathA-LoopBack1] bfd detect-multiplier 9

[SecPathA-LoopBack1] quit

[SecPathA] ip route-static 120.1.1.0 24 2.2.2.9 bfd control-packet bfd-source 1.1.1.9

[SecPathA] ip route-static 120.1.1.0 24 GigabitEthernet0/2 10.1.1.100 preference 65

[SecPathA] 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 GigabitEthernet0/2 13.1.1.2 preference 65

[RouterB] quit

3.

Verify the configuration:
The following operations are performed on SecPath A. The operations on Router B are similar.
# Display BFD sessions on SecPath A.

<SecPathA> display bfd session

Total Session Num: 1 Init Mode: Active

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 static routes on SecPath A.

<SecPathA> 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 GigabitEthernet0/1

Static Routing table Status : <Inactive>

Summary Count : 1

Advertising