46
To do…
Use the command…
Remarks
Set port shutdown mode
dldp unidirectional-shutdown
{
auto
|
manual
}
Optional
auto
by default
NOTE:
•
On a port with both remote OAM loopback and DLDP enabled, if the port shutdown mode is auto
mode, the port will be shut down by DLDP when it receives a packet sent by itself, causing remote OAM
loopback to operate improperly. To prevent this, set the port shutdown mode to manual mode.
•
If the switch is busy, or the CPU usage is high, normal links may be treated as unidirectional links. In this
case, you can set the port shutdown mode to manual mode to alleviate the impact caused by false
unidirectional link report.
Configuring DLDP authentication
You can guard your network against attacks and malicious probes by configuring an appropriate DLDP
authentication mode, which can be clear text authentication or MD5 authentication. If your network is
safe, you can choose not to authenticate.
Follow these steps to configure DLDP authentication:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure DLDP authentication
dldp authentication-mode
{
md5
md5-password
|
none
|
simple
simple-password
}
Required
none
by default
NOTE:
To enable DLDP to operate properly, make sure that DLDP authentication modes and passwords on both
sides of a link are the same.
Resetting DLDP state
After DLDP detects a unidirectional link on a port, the port enters Disable state. In this case, DLDP prompts
you to shut down the port manually or shuts down the port automatically depending on the user-defined
port shutdown mode. To enable the port to perform DLDP detect again, you can reset the DLDP state of
the port by using one of the following methods:
•
If the port is shut down with the
shutdown
command manually, run the
undo shutdown
command
on the port.
•
If the port is shut down by DLDP automatically, run the
dldp reset
command on the port to enable
the port to perform DLDP detection again. Alternatively, you can leave the work to DLDP, which
automatically enables the port when it detects that the link has been restored to bidirectional. For
how to reset the DLDP state by using the
dldp reset
command, see “
Resetting DLDP state in system
Resetting DLDP state in port view or port group view
The DLDP state that the port transits to upon the DLDP state reset operation depends on its physical state.
If the port is physically down, it transits to Inactive state; if the port is physically up, it transits to Active
state.