Setting the port shutdown mode
About port shutdown modes
On detecting a unidirectional link, DLDP shuts down the ports in one of the following modes:
Auto mode—When DLDP detects a unidirectional link, it shuts down the unidirectional port. When the link becomes bidirectional, DLDP brings up the port that was shut down.
Manual mode—When DLDP detects a unidirectional link, it does not shut down the port. You need to manually shut it down. To verify the link status, use the undo shutdown command to bring up the port. If the link becomes bidirectional, the port becomes bidirectional. Use this mode to prevent normal links from being shut down because of false unidirectional link reports in the following cases:
The network performance is low.
The device is busy.
The CPU usage is high.
Hybrid mode—When DLDP detects a unidirectional link, it shuts down the unidirectional port and stops link detection. To verify the link status, use the undo shutdown command to bring up the port. If the link becomes bidirectional, the port becomes bidirectional.
Restrictions and guidelines
You can set the port shutdown mode for all interfaces in system view or for a single interface in interface view. The setting in interface view takes precedence over the setting in system view.
To enable remote OAM loopback on a DLDP port, set the port shutdown mode to manual. Otherwise, DLDP automatically shuts down the port when it receives a packet sent by itself. This causes remote OAM loopback failure. For more information about Ethernet OAM, see "Configuring Ethernet OAM."
Setting the global port shutdown mode
Enter system view.
system-view
Set the global port shutdown mode.
dldp unidirectional-shutdown { auto | hybrid | manual }
The default mode is auto.
Setting the port shutdown mode for an interface
Enter system view.
system-view
Enter Ethernet interface view.
interface interface-type interface-number
Set the the port shutdown mode for the interface.
dldp port unidirectional-shutdown { auto | hybrid | manual }
By default, the global setting is used.