- Table of Contents
-
- H3C WX3000 Series Unified Switches Switching Engine Command Reference-6W103
- 00-Preface
- 01-CLI Command
- 02-Login Command
- 03-Configuration File Management Command
- 04-VLAN Command
- 05-Auto Detect Command
- 06-Voice VLAN Command
- 07-GVRP Command
- 08-Basic Port Configuration Command
- 09-Link Aggregation Command
- 10-Port Isolation Command
- 11-Port Security-Port Binding Command
- 12-DLDP Command
- 13-MAC Address Table Management Command
- 14-MSTP Command
- 15-802.1x and System Guard Command
- 16-AAA Command
- 17-MAC Address Authentication Command
- 18-IP Address and Performance Command
- 19-DHCP Command
- 20-ACL Command
- 21-QoS-QoS Profile Command
- 22-Mirroring Command
- 23-ARP Command
- 24-SNMP-RMON Command
- 25-Multicast Command
- 26-NTP Command
- 27-SSH Command
- 28-File System Management Command
- 29-FTP-SFTP-TFTP Command
- 30-Information Center Command
- 31-System Maintenance and Debugging Command
- 32-VLAN-VPN Command
- 33-HWPing Command
- 34-DNS Command
- 35-Smart Link-Monitor Link Command
- 36-PoE-PoE Profile Command
- 37-Routing Protocol Command
- 38-UDP Helper Command
- 39-Index
- Related Documents
-
Title | Size | Download |
---|---|---|
12-DLDP Command | 39.26 KB |
1 DLDP Configuration Commands
DLDP Configuration Commands
display dldp
Syntax
display dldp { unit-id | interface-type interface-number }
View
Any view
Parameters
unit-id: Unit number, only can be set as 1 for the WX3000 series devices.
interface-type: Port type.
interface-number: Port number.
Description
Use the display dldp command to display the DLDP configuration information of the specified Unit or the specified port.
The configuration information includes the following:
l The configuration information of the DLDP-enabled port includes the interval, authentication mode, password, DLDP operating mode, and handling mode when a unidirectional link is found.
l The status information includes the neighbor status, local port status and link status
l The neighbor table includes the MAC address, port ID, neighbor status and aging time items.
Examples
# Display information about all the DHLP-enabled ports on Unit 1.
<device> display dldp 1
dldp interval 10
dldp work-mode enhance
dldp authentication-mode md5, cipher is ;)<01%^&;YGQ=^Q`MAF4<1!!
dldp unidirectional-shutdown manual
dldp delaydown-timer 1
The port number of unit 1 with DLDP is 1.
interface GigabitEthernet1/0/10
dldp port state : advertisement
dldp link state : up
The neighbor number of the port is 1.
neighbor mac address : 000f-e20f-5690
neighbor port index : 372
neighbor state : two way
neighbor aged time : 12
dldp
Syntax
dldp { enable | disable }
View
System view, Ethernet port view
Parameters
None
Description
In system view:
Use the dldp enable command to enable DLDP globally on all optical ports of the device.
Use the dldp disable command to disable DLDP globally on all optical ports of the device.
In Ethernet port view:
Use the dldp enable command to enable DLDP on the current port.
Use the dldp disable command to disable DLDP on the current port.
The commands can apply to a non-optical port as well as an optical port.
By default, DLDP is disabled.
Note that:
When you use the dldp enable/dldp disable command in system view to enable/disable DLDP globally on all optical ports of the device, this command is only valid for the existing optical ports on the device, however, it is not valid for those added subsequently.
Examples
# Enable DLDP globally on all optical ports of the device.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] dldp enable
DLDP is enabled on all fiber ports except fabric ports.
# Enable DLDP on optical port GigabitEthernet 1/0/10.
[device] interface GigabitEthernet1/0/10
[device-GigabitEthernet1/0/10]dldp enable
DLDP is enabled on the port GigabitEthernet1/0/10.
dldp authentication-mode
Syntax
dldp authentication-mode { none | simple simple-password | md5 md5-password }
undo dldp authentication-mode
View
System view
Parameters
none: Performs no authentication with the peer port.
simple: Sets the authentication mode with the peer port to plain text.
simple-password: Authentication password with the peer port, which is a string in plain text consisting of 1 to 16 characters.
md5: Sets the authentication mode with the peer port to MD5.
md5-password: Authentication password with the peer port, which is a string in plain text consisting of 1 to 16 characters, or the text correspond to the plain text.
Description
Use the dldp authentication-mode command to set the DLDP authentication mode and password for the ports of the local and peer devices.
Use the undo dldp authentication-mode to cancel the DLDP authentication mode and password for the ports of the local and peer devices.
By default, authentication mode is none.
Note that:
When you configure the DLDP authentication mode and authentication password, make sure the same DLDP authentication mode and password are set for the ports of the local and peer devices, which are connected with the optical fiber cable or copper twisted pair. Otherwise, DLDP authentication fails. DLDP cannot work when DLDP authentication fails.
Related commands: dldp unidirectional-shutdown.
Examples
# Set the DLDP authentication mode and password for the ports connected with fiber cables or copper twisted pairs to plain text and password1 respectively.
l Configure device 1:
<device1> system-view
System View: return to User View with Ctrl+Z.
[device1] dldp authentication-mode simple password1
l Configure device 2:
<device2> system-view
System View: return to User View with Ctrl+Z.
[device2] dldp authentication-mode simple password1
dldp interval
Syntax
dldp interval integer
undo dldp interval
View
System view
Parameters
Integer: Interval of sending DLDP packets, in the range of 1 second to 100 seconds.
Description
Use the dldp interval command to set the interval of sending advertisement packets when all the DLDP-enabled ports are in the Advertisement status.
Use the undo dldp interval command to restore the interval to the default value 5 seconds.
By default, the interval of sending advertisement packets is 5 seconds.
Note that:
l The interval you define is applicable to all DLDP-enabled ports.
l The interval must be shorter than one-third of the STP convergence time. If too long an interval is set, an STP loop may occur before DLDP shuts down unidirectional links. On the contrary, if too short an interval is set, network traffic increases, and port bandwidth is reduced. Generally, the STP convergence time is 30 seconds.
Examples
# Set the interval of sending advertisement packets to 20 seconds when all the DLDP-enabled ports are in the Advertisement status.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] dldp interval 20
dldp reset
Syntax
dldp reset
View
System view, Ethernet port view
Parameters
None
Description
In system view:
Use the dldp reset command to reset the DLDP status of all the ports disabled by DLDP.
In Ethernet port view:
Use the dldp reset command to reset the DLDP status of the current port disabled by DLDP.
After the dldp reset command is executed, the DLDP status of these ports changes from disable to active and DLDP restarts to probe the link status of the fiber cables or copper twisted pairs.
Related commands: dldp, and dldp unidirectional-shutdown.
Examples
# Reset the DLDP status of all the ports disabled by DLDP.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] dldp reset
dldp unidirectional-shutdown
Syntax
dldp unidirectional-shutdown { auto | manual }
undo dldp unidirectional-shutdown
View
System view
Parameters
auto: In this mode, when DLDP finds an unidirectional link or finds (in the enhanced mode) that the peer end is down , it automatically disables the corresponding port.
manual: In this mode, when DLDP finds an unidirectional link or finds (in the enhanced mode) that the peer end is down, instead of disabling the port automatically, it prompts the user to disable the port manually and stops the DLDP packets sending/receiving on the port at the same time.
Description
Use the dldp unidirectional-shutdown command to set the DLDP handling mode when a unidirectional link is found.
Use the dldp unidirectional-shutdown command to restore the default setting.
By default, the handling mode when a unidirectional link is found is auto.
Related commands: dldp work-mode.
Examples
# Configure DLDP to automatically disable the corresponding port when a unidirectional link is found.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] dldp unidirectional-shutdown auto
dldp work-mode
Syntax
dldp work-mode { enhance | normal }
undo dldp work-mode
View
System view
Parameters
enhance: Configures DLDP to work in enhanced mode. In this mode, DLDP probes actively whether neighbors exist when neighbor tables are aging.
normal: Configures DLDP to work in normal mode. In this mode, DLDP does not probe actively whether neighbors exist when neighbor tables are aging.
Description
Use the dldp work-mode command to set the DLDP operating mode.
Use the undo dldp work-mode command to restore the default DLDP operating mode.
By default, DLDP works in normal mode.
Examples
# Configure DLDP to work in enhanced mode.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] dldp work-mode enhance
dldp delaydown-timer
Syntax
dldp delaydown-timer delaydown-time
undo dldp delaydown-timer
View
System view
Parameters
delaydown-time: Delaydown timer to be set (in seconds). This argument ranges from 1 to 5. By default, the delaydown timer expires after 1 second it is triggered.
Description
Use the dldp delaydown-timer command to set the delaydown timer.
Use the undo dldp delaydown-timer command to restore the default delaydown timer setting.
Examples
# Set the delaydown timer to 2 seconds.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] dldp delaydown-timer 2