display bfd session

Function

The display bfd session command displays information about BFD sessions.

Format

display bfd session all [ for-ip | for-lsp | for-te | for-pw | for-vsi-pw ]

display bfd session static [ for-ip | for-lsp | for-te | for-pw | for-vsi-pw ]

display bfd session passive-dynamic [ peer-ip peer-ip remote-discriminator discr-value ]

display bfd session dynamic

display bfd session discriminator discr-value

display bfd session peer-ip { peer-ip [ vpn-instance vpn-name ] | default-ip }

display bfd session static-auto

display bfd session ldp-lsp peer-ip peer-ip [ nexthop nexthop-ip [ interface { interface-name | interface-type interface-number } ] ]

display bfd session mpls-te interface { interface-type interface-number | interface-name } [ te-lsp ]

display bfd session peer-ipv6 peer-ipv6 [ vpn-instance vpn-name ]

display bfd session all for-ipv6

display bfd session static for-ipv6

display bfd session pw interface { interface-name | interface-type interface-number } [ secondary ]

display bfd session vsi-pw vsi vsi-name peer peer-address [ vc-id vc-id ]

display bfd session bgp-tunnel peer-ip peer-ip

display bfd session sr-be-tunnel peer-ip peer-ip

display bfd session { segment-list | srv6-segment-list } segment-list-id

display bfd session flex-algo-tunnel peer-ip peer-ip

Parameters

Parameter Description Value
for-ip

Displays the configuration of the BFD session for monitoring an IP link.

-

for-lsp

Displays the configuration of the BFD session for monitoring an LSP.

-

for-te

Displays information about the BFD, TE Tunnel, TE LSP session for detecting faults in TE tunnels.

-

for-pw

Displays the configuration of the BFD session for monitoring a PW.

-

for-vsi-pw

Displays the configuration of the BFD session for monitoring a VSI PW.

-

all

Displays configurations of all BFD sessions.

-

static

Displays information about static BFD sessions.

-

passive-dynamic

Displays information about the BFD sessions that are passively created.

-

peer-ip peer-ip

Displays information about the BFD session with a specified peer IP address.

The value is in dotted decimal notation.

remote-discriminator discr-value

Displays information about the BFD sessions with a specified remote discriminator.

The value is an integer ranging from 1 to 4294967295.

dynamic

Displays information about dynamic and statically self-negotiated BFD sessions.

-

discriminator discr-value

Displays information about the BFD sessions with a specified local discriminator.

The value is an integer ranging from 1 to 4294967295.

vpn-instance vpn-name

Displays information about the BFD session bound to a specified VPN instance.

The value is a string of 1 to 31 case-sensitive characters, which do not contain spaces.

default-ip

Displays statistics about BFD sessions with the default multicast address.

-

static-auto

Displays the configuration of a static BFD session with automatically negotiated discriminators.

-

ldp-lsp

Displays the configuration of the BFD session for monitoring an LDP LSP.

-

nexthop nexthop-ip

Displays information about the BFD session with a specified next-hop IP address.

The value is in dotted decimal notation.

interface interface-name interface-type

Displays information about the BFD session with a specified interface.

-

mpls-te

Displays the configuration of the BFD session for monitoring MPLS TE.

-

te-lsp

Displays information about the BFD session for detecting faults in the primary CR-LSP bound to the TE tunnel.

-

peer-ipv6 peer-ipv6

Displays the configuration of the BFD6 session bound to a specified peer IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

for-ipv6

Displays the configuration of the BFD6 session for monitoring an IPv6 link.

-

pw

Displays information about the BFD session for detecting faults in a PW.

-

secondary

Displays the configuration of the BFD session for monitoring a secondary PW.

-

vsi-pw

Displays information about the BFD session for detecting faults in a VSI PW.

-

vsi vsi-name

Specifies the VSI name.

The value is a string of 1 to 31 characters.

peer peer-address

Specifies the IPv4 address of the peer of the VSI PW.

The value is in dotted decimal notation.

bgp-tunnel

Displays the configuration of a BFD session that monitors a BGP Tunnel.

-

sr-be-tunnel

Displays information about a BFD session that monitors an SR-MPLS BE tunnel.

-

segment-list segment-list-id

Displays information about a BFD session for SR-MPLS TE Policy.

The value is an integer ranging from 1 to 4294967295.

srv6-segment-list segment-list-id

Displays information about a BFD session for SRv6 TE Policy.

The value is an integer ranging from 1 to 4294967295.

flex-algo-tunnel

Displays information about a BFD session that monitors a Flex-Algo Tunnel.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bfd read

Usage Guidelines

Usage Scenario

To view information about BFD sessions, run the display bfd session command with one or more parameters.

Prerequisites

BFD has been globally enabled using the bfd command in the system view.

Precautions

  • When the BFD session changes from Down to Up, and the WTR time is not zero, the notification that the BFD session goes Up can be received only after the WTR time expires.
  • If a static BFD session with automatically negotiated discriminators and a dynamic BFD session have the same configurations, you can view that the shared BFD session belongs to both the static session with automatically negotiated discriminators and the dynamic session in terms of the BFD session type.
  • The display bfd session dynamic command displays information about both dynamic and static sessions. The statically self-negotiated sessions are treated as dynamic sessions.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display brief information about all BFD Flex-Algo Tunnel sessions.
<HUAWEI> display bfd session flex-algo-tunnel peer-ip 10.1.1.1
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
Local      Remote     PeerIpAddr      State     Type        InterfaceName
--------------------------------------------------------------------------------
16385      67372036   10.1.1.1         Up        D_FLEX_ALGO       -
--------------------------------------------------------------------------------
    Total UP/DOWN Session Number : 1/0
# Display brief information about all BFD SRv6 TE Policy sessions.
<HUAWEI> display bfd session srv6-segment-list 5
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
Local      Remote     PeerIpAddr      State     Type        InterfaceName 
--------------------------------------------------------------------------------
16395      100000000  100::100                                                  
                                      Up        D_SID_LIST        - 
--------------------------------------------------------------------------------
# Display brief information about all BFD SR-MPLS TE Policy sessions.
<HUAWEI> display bfd session segment-list 10
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
Local Remote     PeerIpAddr      State     Type        InterfaceName 
--------------------------------------------------------------------------------
16386 -          9.9.9.9         Down      D_SID_LIST         -
--------------------------------------------------------------------------------
# Display brief information about all BFD sessions.
<HUAWEI> display bfd session all
(w): State in WTR 
(*): State is invalid
------------------------------------------------------------------------------
Local  Remote PeerIpAddr       State     Type        InterfaceName
------------------------------------------------------------------------------
111    222    10.10.10.2       Up        S_IP_IF     GigabitEthernet0/1/8 
------------------------------------------------------------------------------
    Total UP/DOWN Session Number : 1/0
Table 1 Description of the display bfd session command output
Item Description
State

Status of the BFD session:

  • Up: The BFD session is in the Up state.
  • Down: The BFD session is in the Down state.
  • AdmDown: The BFD session is in the AdminDown state. After the shutdown (BFD session view) command is run, the BFD session becomes AdminDown.
  • Up(w): indicates that the BFD session is in the Up state and during the WTR time.
  • Up(*)/Down(*): indicates that the BFD session is in the invalid state.
  • Init: The BFD session is in the Init state.
Local

Local discriminator of the BFD session.

Remote

Remote discriminator of the BFD session.

PeerIpAddr

Remote IP address of the BFD session.

Type

Type of the BFD session:

  • S_IP_PEER: indicates a session created statically and bound to an IP link.
  • S_IP_IF: indicates a session created statically and bound to an interface.
  • D_IP_PEER: indicates a session created dynamically and bound to an IP link.
  • D_IP_IF: indicates a session created dynamically and bound to an interface.
  • E_Dynamic: indicates the entirely dynamic session, after the egress of an LSP is enabled with the function of passively creating a BFD session.
  • S_AUTO_IF: indicates the static single-hop BFD session with automatically negotiated discriminators.
  • S_AUTO_PEER: indicates the static multi-hop BFD session with automatically negotiated discriminators.
  • D_SR_BE_TNL: indicates a session created dynamically and bound to an SR-MPLS BE tunnel.
  • S_TE_LSP: indicates a session created statically and bound to a TE LSP.
  • S_TE_TNL: indicates a session created statically and bound to a TE tunnel.
  • D_TE_LSP: indicates a session created statically and bound to a TE LSP.
  • S_LDP_LSP: indicates a session created dynamically and bound to a dynamic LSP.
  • D_LDP_LSP: indicates a session created dynamically and bound to a dynamic LSP.
  • D_LDP_TNL: indicates a session created dynamically and bound to a LDP tunnel.
  • D_TE_TNL: indicates a session created dynamically and bound to a TE tunnel.
  • D_SID_LIST: indicates a session created dynamically and bound to SR TE Policy.
  • D_FLEX_ALGO: indicates a session created dynamically and bound to a Flex-Algo Tunnel.
InterfaceName

Outbound interface to which the BFD session is bound. For a multi-hop BFD session, "-" is displayed because no interface is bound to the BFD session.

Total UP/DOWN Session Number

UP BFD Session Number/DOWN BFD Session Number.

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