194 CHAPTER 22: DLDP CONFIGURATION
■ It is desired that the unidirectional links can be disconnected on being 
detected; and the ports shut down by DLDP can be restored after the fiber 
connections are corrected.
Network diagram
Figure 52   Network diagram for DLDP configuration
 
Configuration procedure
1 Configuration on Device A
# Enable DLDP on GigabitEthernet1/0/50 and GigabitEthernet 1/0/51.
<DeviceA> system-view
[DeviceA] interface gigabitethernet 1/0/50
[DeviceA-GigabitEthernet1/0/50] dldp enable
[DeviceA-GigabitEthernet1/0/50] interface gigabitethernet 1/0/51
[DeviceA-GigabitEthernet1/0/51] dldp enable
[DeviceA-GigabitEthernet1/0/51] quit 
# Set the interval for sending Advertisement packets to 6 seconds.
[DeviceA] dldp interval 6 
# Set the DelayDown timer to 2 seconds.
[DeviceA] dldp delaydown-timer 2 
# Set the DLDP mode as enhanced mode.
[DeviceA] dldp work-mode enhance 
# Set the port shutdown mode as auto mode.
[DeviceA] dldp unidirectional-shutdown auto 
# Enable DLDP globally.
[DeviceA] dldp enable 
Device A
GE1/0/50 GE1/0/51
Device B
PC
GE1/0/50
GE1/0/51