<DeviceA> system-view
[DeviceA] dldp global enable
# Configure Ten-GigabitEthernet 1/1/5 to operate in full duplex mode and at 10000 Mbps, and
enable DLDP on the port.
[DeviceA] interface ten-gigabitethernet 1/1/5
[DeviceA-Ten-GigabitEthernet1/1/5] duplex full
[DeviceA-Ten-GigabitEthernet1/1/5] speed 10000
[DeviceA-Ten-GigabitEthernet1/1/5] dldp enable
[DeviceA-Ten-GigabitEthernet1/1/5] quit
# Configure Ten-GigabitEthernet 1/1/6 to operate in full duplex mode and at 10000 Mbps, and
enable DLDP on the port.
[DeviceA] interface ten-gigabitethernet 1/1/6
[DeviceA-Ten-GigabitEthernet1/1/6] duplex full
[DeviceA-Ten-GigabitEthernet1/1/6] speed 10000
[DeviceA-Ten-GigabitEthernet1/1/6] dldp enable
[DeviceA-Ten-GigabitEthernet1/1/6] quit
# Set the port shutdown mode to auto.
[DeviceA] dldp unidirectional-shutdown auto
2.
Configure Device B:
# Enable DLDP globally.
<DeviceB> system-view
[DeviceB] dldp global enable
# Configure Ten-GigabitEthernet 1/1/5 to operate in full duplex mode and at 10000 Mbps, and
enable DLDP on it.
[DeviceB] interface ten-gigabitethernet 1/1/5
[DeviceB-Ten-GigabitEthernet1/1/5] duplex full
[DeviceB-Ten-GigabitEthernet1/1/5] speed 10000
[DeviceB-Ten-GigabitEthernet1/1/5] dldp enable
[DeviceB-Ten-GigabitEthernet1/1/5] quit
# Configure Ten-GigabitEthernet 1/1/6 to operate in full duplex mode and at 10000 Mbps, and
enable DLDP on it.
[DeviceB] interface ten-gigabitethernet 1/1/6
[DeviceB-Ten-GigabitEthernet1/1/6] duplex full
[DeviceB-Ten-GigabitEthernet1/1/6] speed 10000
[DeviceB-Ten-GigabitEthernet1/1/6] dldp enable
[DeviceB-Ten-GigabitEthernet1/1/6] quit
# Set the port shutdown mode to auto.
[DeviceB] dldp unidirectional-shutdown auto
3.
Verify the configuration:
After the configurations are complete, you can use the display dldp command to display the DLDP
configuration globally and on ports.
# Display the DLDP configuration globally and on all the DLDP-enabled ports of Device A.
[DeviceA] display dldp
DLDP global status: Enabled
DLDP advertisement interval: 5s
DLDP authentication-mode: None
33