4-13
DLDP Configuration Example
Network requirements
z
Device A and Device B are connected through two fiber pairs, in which two fibers are
cross-connected, as shown in
Figure 4-4
.
z
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.
Figure 4-4
Network diagram for DLDP configuration
Device A
GE1/0/50
GE1/0/51
Device B
PC
GE1/0/50
GE1/0/51
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] quit
[DeviceA] 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
2) Configuration on Device B