
7
{
DLDP authentication mode.
{
Password.
Configuration procedures
1.
Configure Device A:
# Enable DLDP globally.
<DeviceA> system-view
[DeviceA] dldp global enable
# Configure Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to operate in full duplex
mode at 10000 Mbps, and enable DLDP on the interfaces.
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] duplex full
[DeviceA-Ten-GigabitEthernet1/0/1] speed 10000
[DeviceA-Ten-GigabitEthernet1/0/1] dldp enable
[DeviceA-Ten-GigabitEthernet1/0/1] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] duplex full
[DeviceA-Ten-GigabitEthernet1/0/2] speed 10000
[DeviceA-Ten-GigabitEthernet1/0/2] dldp enable
[DeviceA-Ten-GigabitEthernet1/0/2] quit
# Set the interval for sending Advertisement packets to 5 seconds (default interval).
[DeviceA] dldp interval 5
# Configure the plain text authentication mode and set the password to
abc
.
[DeviceA] dldp authentication-mode simple
[DeviceA] dldp authentication-password simple abc
# Set the interface shutdown mode to
manual
.
[DeviceA] dldp unidirectional-shutdown manual
2.
Configure Device B in the same way Device A is configured. (Details not shown.)
Verifying the configuration
# Display global and interface-specific DLDP configuration for Device A.
[DeviceA] display dldp
DLDP global status: Enabled
DLDP advertisement interval: 5s
DLDP authentication-mode: Simple
DLDP authentication-password: ******
DLDP unidirectional-shutdown mode: Manual
DLDP delaydown-timer value: 1s
Number of enabled ports: 2
Interface Ten-GigabitEthernet1/0/1
DLDP port state: Bidirectional
Number of the port’s neighbors: 1
Neighbor MAC address: 0023-8956-3600
Neighbor port index: 1