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 of a unit or a port.
Example
# Display the DLDP configuration of unit 1.
<Sysname> 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/1/1
dldp port state : advertisement
dldp link state : up
The neighbor number of the port is
1.
neighbor mac address :
00e0-fc00-5690
neighbor port index : 372
neighbor state : two way
neighbor aged time : 12
Table 1-1
Description on the fields of the display dldp
command
|
Field
|
Description
|
|
dldp
interval
|
Interval
for sending DLDP advertisement packets
|
|
dldp
work-mode
|
DLDP work
mode
|
|
dldp
authentication-mode
|
DLDP
authentication mode
|
|
cipher
|
DLDP
authentication password
|
|
dldp unidirectional-shutdown
|
DLDP action to be performed on detecting
a unidirectional link
|
|
dldp delaydown-timer
|
Setting of the DelayDown timer
|
|
The port number of unit 1 with DLDP
|
Number of the DLDP-enabled ports on unit
1
|
|
interface GigabitEthernet1/1/1
|
Port type and port number
|
|
dldp port state
|
DLDP state of a port
|
|
dldp link state
|
DLDP link state
|
|
The neighbor number of the port
|
Number of the neighbor ports
|
|
neighbor mac address
|
MAC address of a neighbor port
|
|
neighbor port index
|
Neighbor port index
|
|
neighbor state
|
Neighbor state, which can be two way or
unknown.
|
|
neighbor aged time
|
Neighbor aging time
|
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 for all the optical ports.
Use the dldp disable command to
disable DLDP for all the optical ports.
In Ethernet
port view,
Use the dldp
enable command to enable DLDP for the current port.
Use the dldp
disable command to disable DLDP for the current port.
This command
applies to non-optical ports as well as optical ports.
By default, DLDP is disabled.
Caution:
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 for all the optical ports of
the switch.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] dldp enable
Syntax
dldp authentication-mode { none | simple simple-password | md5 md5-password
}
undo dldp authentication-mode
View
System view
Parameter
none: Sets
the authentication mode to none (Performs no authentication).
simple: Sets
the authentication mode to plain text.
simple-password: Authentication password in plain text, a string of 1 to 16
characters.
md5: Sets
the authentication mode 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.
Use the undo
dldp authentication-mode to remove the DLDP authentication mode and
password.
By default, the authentication mode is none.
l
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 both the local port and the peer
port. Otherwise, DLDP authentication fails.
l
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” on the ports connected with a
fiber cable or copper twisted pair between A and B.
l
Configure A
<A> system-view
System View: return to User View with
Ctrl+Z.
[A] dldp authentication-mode simple abc
l
Configure B
<B> system-view
System View: return to User View with
Ctrl+Z.
[B] dldp authentication-mode simple abc
Syntax
dldp interval timer-value
undo dldp interval
View
System view
Parameter
timer-value: Interval for sending DLDP advertisement packets, in the range 1 to
100 (in seconds).
Description
Use the dldp
interval command to set the interval for sending DLDP advertisement packets
for all DLDP-enabled ports in the advertisement state.
Use the undo
dldp interval command to restore the default.
By default, the interval for sending DLDP advertisement
packets is 5 seconds.
Note that:
l
The interval takes effect on all the DLDP-enabled
ports.
l
It is recommended that you set the interval
shorter than one-third of the STP convergence time (usually 30 seconds). 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, unnecessarily consuming port bandwidth.
Example
# Set the interval for sending DLDP advertisement
packets to 6 seconds.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] dldp interval 6
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.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] dldp reset
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 can only send and receive Recover Probe packets and
Recover Echo packets.
Description
Use the dldp unidirectional-shutdown command
to set the DLDP handling mode for unidirectional links.
Use the undo dldp
unidirectional-shutdown command to restore the default DLDP handling mode.
By default, the DLDP handling mode after a
unidirectional link is detected is auto.
Related command: dldp work-mode.
Example
# Configure
DLDP to shut down the corresponding port on detecting a unidirectional link.
<Sysname>
system-view
System View: return to User View with
Ctrl+Z.
[Sysname] dldp
unidirectional-shutdown auto
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.
l
When DLDP works in normal mode, the system can
identify only the unidirectional links 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 disconnected.
Example
# Configure DLDP to work in enhanced mode.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] dldp work-mode enhance
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.
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.
By default, the DelayDown timer is set to 1
second. A period of 5 seconds is recommended.
When a device in
the active, advertisement, or probe DLDP state receives a port down message, it
does not remove the corresponding neighbor immediately, nor does it transit to
the inactive state. Instead, it transits to the delaydown state and starts the
DelayDown timer. In delaydown state, the device retains the related DLDP
neighbor information. When the DelayDown timer expires, the DLDP neighbor information
is removed.
Example
# Set the delaydown timer to 2 seconds.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] dldp delaydown-timer 2