- Table of Contents
-
- H3C S3100-52P Ethernet Switch Command Manual-Release 1500(V1.01)
- 00-1Cover
- 01-CLI Command
- 02-Login Command
- 03-Configuration File Management Command
- 04-VLAN Command
- 05-IP Address and Performance Confiugration Command
- 07-GVRP Command
- 08-Port Basic Configuration Command
- 09-Link Aggregation Command
- 10-Port Isolation Command
- 11-DLDP Command
- 12-MAC Address Table Command
- 13-MSTP Command
- 14-Multicast Command
- 15-Routing Protocol Command
- 16-802.1x Command
- 17-AAA-RADIUS-HWTACACS Command
- 18-Centralized MAC Address Authentication Command
- 19-DHCP Command
- 20-ARP Command
- 21-ACL Command
- 22-QoS Command
- 23-Mirroring Command
- 24-Cluster Command
- 25-SNMP and RMON Command
- 26-NTP Command
- 27-SSH Terminal Service Command
- 28-File System Management Command
- 29-FTP and TFTP Command
- 30-Information Center Command
- 31-System Maintenance and Debugging Command
- 32-VLAN VPN Command
- 33-HWPing Command
- 34-DNS Command
- 35-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
11-DLDP Command | 58 KB |
Chapter 1 DLDP Configuration Commands
1.1 DLDP Configuration Commands
1.1.3 dldp authentication-mode
1.1.6 dldp unidirectional-shutdown
Chapter 1 DLDP Configuration Commands
1.1 DLDP Configuration Commands
1.1.1 display dldp
Syntax
display dldp { unit-id | interface-type interface-number }
View
Any view
Parameter
unit-id: Unit number of a device.
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 Configuration information of the DLDP-enabled port, such as interval, authentication mode, password, DLDP operating mode, and handling mode when a unidirectional link is found.
l Status information, such as neighbor status, local port status, and link status.
l Neighbor table containing MAC address, port ID, neighbor status, and aging time.
Example
# Display information about all DLDP-enabled ports on unit 1.
<H3C> display dldp 1
dldp interval 10
dldp work-mode enhance
dldp authentication-mode none
dldp unidirectional-shutdown manual
dldp delaydown-timer 1
The port number of unit 1 with DLDP is 1.
interface GigabitEthernet1/1/1
dldp port state : advertisement
dldp link state : up
The neighbor number of the port is 1.
neighbor mac address : 00e0-fc27-750d
neighbor port index : 98
neighbor state : two way
neighbor aged time : 24
1.1.2 dldp
Syntax
dldp { enable | disable }
View
System view/Ethernet port view
Parameter
None
Description
In system view:
Use the dldp enable command to enable DLDP on all optical ports of the switch.
Use the dldp disable command to disable DLDP on all optical ports of the switch.
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 dldp command can apply to a non-optical port as well as an optical port.
By default, DLDP is disabled.
Note:
When you use the dldp enable/dldp disable command in system view to enable/disable DLDP on all optical ports of the switch, the configuration takes effect on the existing optical ports, instead of those added subsequently.
Example
# Enable DLDP on all optical ports of the switch.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] dldp enable
1.1.3 dldp authentication-mode
Syntax
dldp authentication-mode { none | simple simple-password | md5 md5-password }
undo dldp authentication-mode
View
System view
Parameter
none: Sets the authentication mode on the port to none (Performs no authentication on the port).
simple: Sets the authentication mode on the port to plain text.
simple-password: Plain text authentication password, a string in plain text consisting of 1 to 16 characters.
md5: Sets the authentication mode on the port to MD5.
md5-password: MD5 authentication password, a string in plain text consisting of 1 to 16 characters or a string in cipher text corresponding to the string in plain text.
Description
Use the dldp authentication-mode command to set the DLDP authentication mode and password on the current port.
Use the undo dldp authentication-mode to remove the DLDP authentication mode and password on the current port.
By default, the authentication mode on the current port is none.
Note that:
When you configure a DLDP authentication mode and authentication password on a port, make sure that the same DLDP authentication mode and password are set on the ports connected with a fiber cable or copper twisted pair. Otherwise, DLDP authentication fails. DLDP cannot work before DLDP authentication succeeds.
Related command: dldp unidirectional-shutdown.
Example
# Set the DLDP authentication mode and password to plain text and abc respectively on the ports connected with a fiber cable or copper twisted pair between H3C A and H3C B.
l Configure H3C A
<H3CA> system-view
System View: return to User View with Ctrl+Z.
[H3CA] dldp authentication-mode simple abc
l Configure H3C B
<H3CB> system-view
System View: return to User View with Ctrl+Z.
[H3CB] dldp authentication-mode simple abc
1.1.4 dldp interval
Syntax
dldp interval integer
undo dldp interval
View
System view
Parameter
integer: Interval between sending DLDP packets in seconds, in the range of 5 to 100. It is 10 by default.
Description
Use the dldp interval command to set the interval between sending advertisement packets for all DLDP-enabled ports in the advertisement state.
Use the undo dldp interval command to restore the interval to the default value.
By default, the interval between sending advertisement packets is 10 seconds.
Note that:
l The interval takes effect on 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.
Example
# Set the interval between sending advertisement packets to 20 seconds for all DLDP-enabled ports in the advertisement state.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] dldp interval 20
1.1.5 dldp reset
Syntax
dldp reset
View
System view/Ethernet port view
Parameter
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 a port changes from disable to active and DLDP restarts to detect the link status of the fiber cable or copper twisted pair.
Related command: dldp and dldp unidirectional-shutdown.
Example
# Reset the DLDP status of all the ports disabled by DLDP.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] dldp reset
1.1.6 dldp unidirectional-shutdown
Syntax
dldp unidirectional-shutdown { auto | manual }
undo dldp unidirectional-shutdown
View
System view
Parameter
auto: Disables automatically the corresponding port when DLDP detects an unidirectional link or finds in the enhanced mode that the peer port is down.
manual: Prompts the user to disable manually the corresponding port when DLDP detects an unidirectional link or finds in the enhanced mode that the peer port is down. After the port is disabled, it stops sending and receiving DLDP packets.
Description
Use the dldp unidirectional-shutdown command to set the DLDP handling mode after a unidirectional link is found.
Use the undo dldp unidirectional-shutdown command to restore the default DLDP handling mode after a unidirectional link is found.
By default, the DLDP handling mode after a unidirectional link is found is auto.
Related command: dldp work-mode.
Example
# Configure DLDP to automatically disable the corresponding port when a unidirectional link is found.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] dldp unidirectional-shutdown auto
1.1.7 dldp work-mode
Syntax
dldp work-mode { enhance | normal }
undo dldp work-mode
View
System view
Parameter
enhance: Configures DLDP to work in enhanced mode. In this mode, DLDP detects whether neighbors exist when neighbor tables are aging.
normal: Configures DLDP to work in normal mode. In this mode, DLDP does not detect 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.
& Note:
l When DLDP works in normal mode, the system can identify only the unidirectional link caused by fiber cross-connection.
l When the DLDP protocol works in enhanced mode, the system can identify two types of unidirectional links: one is caused by fiber cross-connection and the other is caused by one fiber being not connected or being broken.
Example
# Configure DLDP to work in enhanced mode.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] dldp work-mode enhance
1.1.8 dldp delaydown-timer
Syntax
dldp delaydown-timer delaydown-time
undo dldp delaydown-timer
View
System view
Parameter
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.
Example
# Set the delaydown timer to 2 seconds.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] dldp delaydown-timer 2