1-13
To do… Use the command… Remarks
Clear the statistics on
DLDP packets passing
through a port
reset dldp statistics [ interface-type
interface-number ]
Available in user view
DLDP Configuration Example
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 1-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 1-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.