1.1.1 display dldp
Syntax
display dldp
{ unit-id | interface-type interface-number }
View
Any view
Parameters
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.
Examples
# Display information about all DLDP-enabled
ports on unit 1.
<Sysname> 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 : 000f-e20f-7206
neighbor port index : 98
neighbor state : two way
neighbor aged time : 24
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
|
|
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
|
Syntax
dldp { enable
| disable }
View
System view/Ethernet port view
Parameters
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.
Examples
# Enable DLDP on all optical ports of the
switch.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] dldp enable
# Enable DLDP on fiber-optic port GigabitEthernet
1/1/1.
[Sysname] interface GigabitEthernet 1/1/1
[Sysname-GigabitEthernet1/1/1] dldp
enable
Syntax
dldp authentication-mode { none | simple simple-password | md5 md5-password
}
undo dldp authentication-mode
View
System view
Parameters
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 commands: dldp
unidirectional-shutdown.
Examples
# 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 Switch A and Switch B.
l
Configure Switch A
<SwitchA> system-view
System View: return to User View with
Ctrl+Z.
[SwitchA] dldp authentication-mode simple abc
l
Configure Switch B
<SwitchB> system-view
System View: return to User View with
Ctrl+Z.
[SwitchB] dldp authentication-mode simple abc
Syntax
dldp interval timer-value
undo dldp interval
View
System view
Parameters
timer-value:
Interval between sending DLDP packets in seconds, in the range of 1 to 100. It
is 5 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
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.
Examples
# Set the interval between sending
advertisement packets to 6 seconds for all DLDP-enabled ports in the advertisement
state.
<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
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 a port changes from disable to active
and DLDP restarts to detect the link status of the fiber cable or copper
twisted pair.
Related commands: dldp and dldp
unidirectional-shutdown.
Examples
# 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
Parameters
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 commands: dldp work-mode.
Examples
# Configure DLDP to automatically disable
the corresponding port when a unidirectional link is found.
<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
Parameters
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 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.
Examples
# 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
Parameters
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.
Examples
# Set the delaydown timer to 5 seconds.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] dldp delaydown-timer 5