Make configuration so that DLDP, upon detecting a unidirectional link, reminds the network
administrator to manually shut down the faulty port.
Figure 4-4 Network diagram for configuring manual shutdown of unidirectional links
Correct fiber connection
Device A
GE1/0/50
GE1/0/50
Device B
Ethernet
optical port
Configuration procedure
1)
Configuration on Device A
# Enable DLDP globally.
<DeviceA> system-view
[DeviceA] dldp enable
# Configure GigabitEthernet 1/0/50 to operate in full duplex mode, configure the port rate as 1000
Mbps, and enable DLDP on the port.
[DeviceA] interface gigabitethernet 1/0/50
[DeviceA-GigabitEthernet1/0/50] duplex full
[DeviceA-GigabitEthernet1/0/50] speed 1000
[DeviceA-GigabitEthernet1/0/50] dldp enable
[DeviceA-GigabitEthernet1/0/50] quit
# Configure GigabitEthernet 1/0/51 to operate in full duplex mode, configure the port rate as 1000
Mbps, and enable DLDP on the port.
[DeviceA] interface gigabitethernet 1/0/51
[DeviceA-GigabitEthernet1/0/51] duplex full
[DeviceA-GigabitEthernet1/0/51] speed 1000
[DeviceA-GigabitEthernet1/0/51] dldp enable
[DeviceA-GigabitEthernet1/0/51] quit
# Set the DLDP mode to enhanced.
[DeviceA] dldp work-mode enhance
# Set the port shutdown mode to manual.
[DeviceA] dldp unidirectional-shutdown manual
GE1/0/51
GE1/0/50
GE1/0/51
GE1/0/50
Tx end
Rx end
Cross-connected fibers
Device A
GE1/0/51
GE1/0/51
Device B
Fiber link
4-18