< Home

Maintaining BFD

After configuring BFD, you can run the display commands to view the configuration result, session information, and related statistics. You can also clear statistics or enable debugging if necessary.

Checking BFD Information

During routine maintenance, you can run the following commands in any view to learn about BFD running status.

You can view the information about BFD session statistics and BFD sessions only after parameters for BFD sessions are specified and BFD sessions are successfully created.

Table 1 Checking BFD information

Action

Command

Check the configuration of the BFD session.

display bfd configuration { all | dynamic | peer-ip peer-ip [ vpn-instance vpn-instance-name ] } | peer-ipv6 peer-ipv6 [ vpn-instance ] | static [ name cfg-name ] | static-auto } [ verbose ]

Check the information about the BFD-enabled interface.

display bfd interface [ interface-type interface-number ]

Check the information about the BFD session.

display bfd session { all | discriminator local-discr-value | dynamic | peer-ip peer-ip [vpn-instance vpn-instance-name ] | static | static-auto } [ verbose ]

Check global BFD statistics.

display bfd statistics

Check statistics on BFD sessions.

display bfd statistics session { all | discriminator local-discr-value | dynamic | peer-ip peer-ip [ vpn-instance vpn-instance-name ] | static | static-auto }

Check the information about the BFD session triggered by the OSPF neighbor.

display ospf [ process-id ] bfd session interface-type interface-number [ router-id ]

display ospf [ process-id ] bfd session { router-id | all }

Check the information about the BFD session stored in RM.

display rm bfd-session [ vpn-instance vpn-instance-name ] [ destination destination-address ] [ source source-address ] [ interface interface-type interface-number ] [ protocol protocol ]

display rm bfd-session all

Clearing BFD Statistics

To diagnose and locate BFD faults, you need to perform DHCP statistics for a period of time to check the consistency between received and sent packets. Therefore, before you restart a statistics operation, run the reset command to clear historical statistics.

BFD statistics cannot be restored after you clear them. Therefore, perform the operation with caution.

Table 2 Clearing BFD statistics

Action

Command

Clear statistics on received and sent BFD packets.

reset bfd statistics { all | discriminator discriminator-value }

Debugging BFD

When a BFD running fault occurs, you can run the debugging commands in the user view to debug BFD, view the debugging information, and locate and analyze the fault.

Before you enable debugging functions, run the terminal monitor and terminal debugging commands in the user view to enable terminal information display and debugging information display on the terminal.

Enabling debugging functions will deteriorate system performance. After debugging processes are complete, run the undo debugging all command in a timely manner to disable the debugging functions.

For the description of debugging commands, refer to the Debugging Reference.

Table 3 Debugging BFD

Action

Command

Enable all BFD debugging functions.

debugging bfd all

Enable the BFD defect detection debugging.

debugging bfd defect-detect

Enable the BFD error debugging.

debugging bfd error

Enable the BFD event debugging.

debugging bfd event

Enable the BFD state machine debugging.

debugging bfd fsm

Enable the BFD packet debugging.

debugging bfd packet

Enable the BFD process debugging.

debugging bfd process

Enable the BFD product interface debugging.

debugging bfd product-interface

Enable the BFD session management debugging.

debugging bfd session-management

Enable the BFD timer debugging.

debugging bfd timer

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic