beautypg.com

H3C Technologies H3C SR8800 User Manual

Page 277

background image

261

# Configure BFD over the link to peer 3.0.2.2 so that when the link Router A<—>Router

B<—>Router C fails, BFD can quickly detect the failure and notify it to BGP, and then the link
Router A<—>Router D<—>Router C takes effect immediately.

[RouterA-bgp] peer 3.0.2.2 bfd

[RouterA-bgp] quit

4.

Configure BGP on Router C:

system-view

[RouterC] bgp 200

[RouterC-bgp] peer 3.0.1.1 as-number 200

[RouterC-bgp] peer 3.0.1.1 bfd

[RouterC-bgp] peer 2.0.1.1 as-number 200

[RouterC-bgp] quit

5.

Configure BFD parameters (you can use default BFD parameters instead):
# Configure Router A.

[RouterA] bfd session init-mode active

[RouterA] interface GigabitEthernet 3/1/2

{

Configure the minimum interval for transmitting BFD control packets as 500 milliseconds.

[RouterA-GigabitEthernet3/1/2] bfd min-transmit-interval 500

{

Configure the minimum interval for receiving BFD control packets as 500 milliseconds.

[RouterA-GigabitEthernet3/1/2] bfd min-receive-interval 500

{

Configure the detect multiplier as 7.

[RouterA-GigabitEthernet3/1/2] bfd detect-multiplier 7

[RouterA-GigabitEthernet3/1/2] quit

# Configure Router C.

[RouterC] bfd session init-mode active

[RouterC] interface GigabitEthernet 3/1/1

[RouterC-GigabitEthernet3/1/1] bfd min-transmit-interval 500

[RouterC-GigabitEthernet3/1/1] bfd min-receive-interval 500

[RouterC-GigabitEthernet3/1/1] bfd detect-multiplier 7

[RouterC-GigabitEthernet3/1/1] return

6.

Verify the configuration:
The following operations are made on Router C. Operations on Router A are similar and are thus
not shown.
# Display detailed BFD session information.

display bfd session verbose

Total Session Num: 1 Init Mode: Active

IP Session Working Under Ctrl Mode:

Local Discr: 17 Remote Discr: 13

Source IP: 3.0.2.2 Destination IP: 3.0.1.1

Session State: Up Interface: GigabitEthernet3/1/1

Min Trans Inter: 500ms Act Trans Inter: 500ms

Min Recv Inter: 500ms Act Detect Inter: 3500ms

Recv Pkt Num: 57 Send Pkt Num: 53