< Home

display dldp

Function

The display dldp command displays the DLDP status of an interface or global DLDP status.

Format

display dldp [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays DLDP status of a specified interface.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can use the display dldp command to view the DLDP status on the device.

Prerequisites

DLDP has been enabled globally using the dldp enable command.

DLDP has been enabled in the interface view using the dldp enable command, before run the display dldp interface interface-type interface-number command.

Precaution

You can run the display dldp command to view DLDP status only after enabling DLDP globally using the dldp enable command.

Example

# Display the DLDP status on the device.

<HUAWEI> display dldp
DLDP global status: enable
DLDP interval: 10s
DLDP work-mode: enhance
DLDP authentication-mode: sha, password is ******
DLDP unidirectional-shutdown: auto
DLDP delaydown-timer: 4s
The number of enabled ports is: 1
The number of global neighbors is: 1
The max number of global neighbors is: 512
Interface GigabitEthernet0/0/1
 DLDP port state: advertisement
 DLDP link state: up
 The neighbor number of the port is: 1.
   Neighbor mac address:80fb-0636-792d                                          
   Neighbor port index:49                                                       
   Neighbor state:two way                                                       
   Neighbor aged time(s):16       

# Display the DLDP status on GE0/0/1.

<HUAWEI> display dldp interface gigabitethernet 0/0/1
Interface GigabitEthernet0/0/1
 DLDP port state: advertisement                                                 
 DLDP link state: up                                                            
 The neighbor number of the port is: 1.                                         
   Neighbor mac address:0001-0001-0001                                          
   Neighbor port index:26                                                       
   Neighbor state:two way                                                       
   Neighbor aged time(s):206  
Table 1 Description of the display dldp command output

Item

Description

DLDP global status

Global DLDP status. The value can be:

  • enable: DLDP is enabled.

  • disable: DLDP is disabled.

To enable DLDP, use the dldp enable command.

DLDP interval

Interval for sending the Advertisement packets, in seconds.

To set the interval, use the dldp interval command.

DLDP work-mode

Working mode of DLDP. The value can be:

  • enhance

  • normal

To set the working mode of DLDP, use the dldp work-mode command.

DLDP authentication-mode

Authentication mode of DLDP packets. The value can be:

  • none: DLDP packets are not authenticated.

  • simple: DLDP packets are authenticated using plain-text passwords.

  • md5: DLDP packets are authenticated using MD5.

  • sha: DLDP packets are authenticated using SHA.

To set DLDP authentication mode, use the dldp authentication-mode command.

DLDP unidirectional-shutdown

Interface shutdown mode. The value can be:

  • manual: Interfaces are manually shut down.

  • auto: Interfaces are automatically shut down.

To set the interface shutdown mode, use the dldp unidirectional-shutdown command.

DLDP delaydown-timer

Delay of an interface's response to a Port-Down event, in seconds.

To set the delay, use the dldp delaydown-timer command.

The number of enabled ports is

Number of interfaces on which DLDP is enabled on a device.

The number of global neighbors is

Number of DLDP neighbors.

The max number of global neighbors is

The max number of global DLDP neighbors.

DLDP port state

Current DLDP status of an interface. The value can be:

  • inactive: DLDP is enabled but the link is Down.

  • active: DLDP is enabled and the link is Up, or entries of neighbors have been cleared.

  • advertisement: All neighbors have established bidirectional connections or have been in Active state for at least 5 seconds. The link in this state is stable.

  • probe: The interface receives a packet from an unknown neighbor. The interface then sends a probe packet to check whether the link is a unidirectional link. When an interface enters this state, DLDP starts the probe timer and starts an echo timer for each neighbor to be detected.

  • disable: DLDP detects a unidirectional link or a neighbor disappears when DLDP works in enhanced mode. An interface in this state receives and forwards only BPDUs, not user traffic.

  • delaydown: When DLDP is in Active, Advertisement, or Probe state, it has not entered the Inactive state when receiving a Port-Down event. An interface in delaydown state retains the DLDP neighbor information and starts the DelayDown timer.

  • loop: Indicates that a loop occurs on the interface because the Rx and Tx of an optical module are connected by the same optical fiber.

DLDP link state

Status of the interface.

  • up

  • down

The neighbor number of the port

Number of neighbors of an interface.

Neighbor mac address

MAC address of a peer device.

Neighbor port index

Index of a peer port.

Neighbor state

Peer status.
  • unknown
  • one way
  • two way

Neighbor aged time(s)

Time period after which a peer ages, in seconds.

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