47
Resetting DLDP state in system view
Resetting DLDP state in system view applies to all ports of the switch.
Follow these steps to reset DLDP in system view:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Reset DLDP state
dldp reset
Required
Resetting DLDP state in port view or port group view
Resetting DLDP state in port view applies to the current port. Resetting DLDP state in port group view
applies to all ports in the port group.
Follow these steps to reset DLDP state in port view or port group view:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet
port view
interface
interface-type
interface-number
Enter Ethernet
port view or
port group
view
Enter port group
view
port-group manual
port-group-name
Either is required.
Configurations made in Ethernet
port view apply to the current port
only; configurations performed in
port group view apply to all the
ports in the port group.
Reset DLDP state
dldp reset
Required
Displaying and maintaining DLDP
To do…
Use the command…
Remarks
Display the DLDP configuration of
a port
display dldp
[
interface-type
interface-number
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the statistics on DLDP
packets passing through a port
display dldp statistics
[
interface-type
interface-number
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Clear the statistics on DLDP packets
passing through a port
reset dldp statistics
[
interface-type
interface-number
]
Available in user view
DLDP configuration examples
Automatically shutting down unidirectional links
Network requirements
•
As shown in
, Device A and Device B are connected with two fiber pairs.
•
Configure DLDP to automatically shut down the faulty port upon detecting a unidirectional link, and
automatically bring up the port after you clear the fault.