- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
03-DLDP commands | 84.05 KB |
Contents
display dldp
Use display dldp to display DLDP configuration.
Syntax
display dldp [ interface interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies an interface by its type and number.
Usage guidelines
If no port is specified, this command displays global and port-specific DLDP configuration. If a port is specified, this command displays only the DLDP configuration on the port.
Examples
# Display global and port-specific DLDP configuration.
<Sysname> display dldp
DLDP global status: Enabled
DLDP advertisement interval: 5s
DLDP authentication-mode: Simple
DLDP authentication-password: ******
DLDP unidirectional-shutdown mode: Auto
DLDP delaydown-timer value: 1s
Number of enabled ports: 2
Interface FortyGigE1/1/1
DLDP port state: Bidirectional
Number of the port’s neighbors: 1
Neighbor MAC address: 0023-8956-3600
Neighbor port index: 79
Neighbor state: Confirmed
Neighbor aged time: 13s
Interface FortyGigE1/1/2
DLDP port state: Inactive
Number of the port’s neighbors: 0 (Maximum number ever detected: 1)
# Display the DLDP configuration of FortyGigE 1/1/1.
<Sysname> display dldp interface fortygige 1/1/1
Interface FortyGigE1/1/1
DLDP port state: Bidirectional
Number of the port’s neighbors: 1
Neighbor MAC address: 0023-8956-3600
Neighbor port index: 79
Neighbor state: Confirmed
Neighbor aged time: 13s
Table 1 Command output
Field |
Description |
DLDP global status |
Global DLDP state (Enabled or Disabled). |
DLDP advertisement interval |
Interval for sending Advertisement packets (in seconds) to maintain neighbor relations. |
DLDP authentication-mode |
DLDP authentication mode (None, Simple, or md5). |
DLDP authentication-password |
Password for DLDP authentication: · ******—The password has been configured. · Not configured—The authentication mode has been configured but no password is configured. |
DLDP unidirectional-shutdown mode |
Port shutdown mode (Auto or Manual) after unidirectional links are detected. |
DLDP delaydown-timer value |
Setting of the DelayDown timer, in seconds. |
Number of enabled ports |
Number of the DLDP-enabled ports. |
Interface |
Index of a DLDP-enabled port. |
DLDP port state |
DLDP state on a port: · Bidirectional. · Inactive. · Initial. · Unidirectional. |
Number of the port’s neighbors |
Current number of neighbors. |
Maximum number ever detected |
Maximum number of neighbors once detected on the port. This field appears only when the current number of neighbors is different from the maximum number of neighbors once detected. |
Neighbor MAC address |
MAC address of the neighbor. |
Neighbor port index |
Neighbor port index. |
Neighbor state |
Neighbor state (Confirmed or Unconfirmed). |
Neighbor aged time |
Neighbor aging time. |
display dldp statistics
Use display dldp statistics to display the statistics on the DLDP packets passing through a port.
Syntax
display dldp statistics [ interface interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
Usage guidelines
If no port is specified, this command displays the statistics on the DLDP packets passing through all the DLDP-enabled ports.
Examples
# Display the statistics on the DLDP packets passing through all the DLDP-enabled ports.
<Sysname> display dldp statistics
Interface FortyGigE1/1/1
Packets sent: 6
Packets received: 5
Invalid packets received: 2
Loopback packets received: 0
Authentication-failed packets received: 0
Valid packets received: 3
Interface FortyGigE1/1/2
Packets sent: 7
Packets received: 7
Invalid packets received: 3
Loopback packets received: 0
Authentication-failed packets received: 0
Valid packets received: 4
Table 2 Command output
Field |
Description |
Interface |
Port index. |
Packets sent |
Total number of DLDP packets sent. |
Packets received |
Total number of DLDP packets received. |
Invalid packets received |
Number of the invalid packets received. |
Loop packets received |
Number of the loopback packets received. |
Authentication failed packets received |
Number of the received packets that failed to pass the authentication. |
Valid packets received |
Number of the valid packets received. |
Related commands
reset dldp statistics
dldp authentication-mode
Use dldp authentication-mode to configure DLDP authentication.
Use undo dldp authentication-mode to restore the default.
Syntax
dldp authentication-mode { md5 | none | simple }
undo dldp authentication-mode
Default
DLDP authentication is not performed.
Views
System view
Predefined user roles
network-admin
Parameters
md5: Specifies the MD5 authentication mode.
none: Specifies not to perform authentication.
simple: Specifies the plain text authentication mode.
Usage guidelines
To enable DLDP to operate correctly, make sure the DLDP authentication modes and the passwords configured on the two ends of a link are the same.
If you do not configure the authentication password after you configure the authentication mode, the authentication mode is none no matter which authentication mode you configure.
Examples
# Configure to perform plain text authentication and set the password to abc (assuming that Device A and Device B are connected by a DLDP link).
· Configure Device A:
<DeviceA> system-view
[DeviceA] dldp authentication-mode simple
[DeviceA] dldp authentication-password simple abc
· Configure Device B:
<DeviceB> system-view
[DeviceB] dldp authentication-mode simple
[DeviceB] dldp authentication-password simple abc
Related commands
· display dldp
· dldp authentication-password
dldp authentication-password
Use dldp authentication-password to configure the password for DLDP authentication.
Use undo dldp authentication-password to restore the default.
Syntax
dldp authentication-password { cipher cipher | simple simple }
undo dldp authentication-password
Default
No DLDP authentication password is configured.
Views
System view
Predefined user roles
network-admin
Parameters
cipher cipher: Sets a ciphertext password. The cipher argument is a case-sensitive string of 1 to 53 characters.
simple simple: Sets a plaintext password. The simple argument is a case-sensitive string of 1 to 16 characters.
Usage guidelines
For security purposes, all DLDP authentication passwords, including passwords configured in plain text, are saved in cipher text.
To enable DLDP to operate correctly, make sure the DLDP authentication modes and the passwords configured on the two ends of a link are the same.
If you do not configure the authentication password after you configure the authentication mode, the authentication mode is none no matter which authentication mode you configure.
Examples
# Configure to perform plain text authentication and set the password to abc (assuming that Device A and Device B are connected by a DLDP link).
· Configure Device A:
<DeviceA> system-view
[DeviceA] dldp authentication-mode simple
[DeviceA] dldp authentication-password simple abc
· Configure Device B:
<DeviceB> system-view
[DeviceB] dldp authentication-mode simple
[DeviceB] dldp authentication-password simple abc
Related commands
· display dldp
· dldp authentication-mode
dldp delaydown-timer
Use dldp delaydown-timer to set the DelayDown timer.
Use undo dldp delaydown-timer to restore the default.
Syntax
dldp delaydown-timer time
undo dldp delaydown-timer
Default
The setting of the DelayDown timer is 1 second.
Views
System view
Predefined user roles
network-admin
Parameters
time: Specifies the DelayDown timer in the range of 1 to 5 seconds.
Usage guidelines
The DelayDown timer configured by using this command applies to all DLDP-enabled ports.
Examples
# Set the DelayDown timer to 2 seconds.
<Sysname> system-view
[Sysname] dldp delaydown-timer 2
Related commands
display dldp
dldp enable
Use dldp enable to enable DLDP on a port.
Use undo dldp enable to disable DLDP on a port.
Syntax
dldp enable
undo dldp enable
Default
DLDP is disabled on a port.
Views
Layer 2 Ethernet interface view, Layer 3 Ethernet interface view
Predefined user roles
network-admin
Usage guidelines
DLDP can take effect only after you enable it globally and on a port.
Examples
# Enable DLDP globally, and then enable DLDP on FortyGigE 1/1/1.
<Sysname> system-view
[Sysname] dldp global enable
[Sysname] interface fortygige 1/1/1
[Sysname-FortyGigE1/1/1] dldp enable
Related commands
· display dldp
· dldp global enable
dldp global enable
Use dldp global enable to enable DLDP globally.
Use undo dldp global enable to disable DLDP globally.
Syntax
dldp global enable
undo dldp global enable
Default
DLDP is disabled globally.
Views
System view
Predefined user roles
network-admin
Usage guidelines
DLDP can take effect only after you enable it globally and on a port.
Examples
# Enable DLDP globally.
<Sysname> system-view
[Sysname] dldp global enable
Related commands
· display dldp
· dldp enable
dldp interval
Use dldp interval to set the interval for sending Advertisement packets.
Use undo dldp interval to restore the default.
Syntax
dldp interval time
undo dldp interval
Default
The interval for sending Advertisement packets is 5 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
time: Specifies Advertisement packets sending interval in the range of 1 to 100 seconds.
Usage guidelines
This command applies to all DLDP-enabled ports.
To enable DLDP to operate correctly, make sure the intervals for sending Advertisement packets configured on the two ends of a link are the same.
Examples
# Set the interval for sending Advertisement packets to 20 seconds.
<Sysname> system-view
[Sysname] dldp interval 20
Related commands
display dldp
dldp unidirectional-shutdown
Use dldp unidirectional-shutdown to set the port shutdown mode.
Use undo dldp unidirectional-shutdown to restore the default.
Syntax
dldp unidirectional-shutdown { auto | manual }
undo dldp unidirectional-shutdown
Default
The port shutdown mode is auto mode.
Views
System view
Predefined user roles
network-admin
Parameters
auto: Configures the port shutdown mode as auto mode. In this mode, when DLDP detects a unidirectional link, it shuts down the Unidirectional port.
manual: Configures the port shutdown mode as manual mode. In this mode, when DLDP detects a unidirectional link, DLDP does not shut down the involved port but you need to manually shut it down. When the link state is restored to Bidirectional, you must manually bring up the port.
Examples
# Set the port shutdown mode to manual mode.
<Sysname> system-view
[Sysname] dldp unidirectional-shutdown manual
display dldp
reset dldp statistics
Use reset dldp statistics to clear the statistics on DLDP packets passing through a port.
Syntax
reset dldp statistics [ interface interface-type interface-number ]
Views
User view
Predefined user roles
network-admin
Parameters
interface interface-type interface-number: Clears the statistics on DLDP packets passing through a port. interface-type interface-number represents a port by its type and number.
Usage guidelines
If no port is specified, this command clears the statistics on the DLDP packets passing through all the DLDP-enabled ports.
Examples
# Clear the statistics on the DLDP packets passing through all the DLDP-enabled ports.
<Sysname> reset dldp statistics
Related commands
display dldp statistics