H3C Technologies H3C S12500 Series Switches User Manual

Page 63

Advertising
background image

52

[DeviceA-Gigabitethernet2/0/2] dldp enable

[DeviceA-Gigabitethernet2/0/2] quit

# Set the DLDP mode to enhanced.

[DeviceA] dldp work-mode enhance

# Set the port shutdown mode to manual.

[DeviceA] dldp unidirectional-shutdown manual

2.

Configure Device B:
# Enable DLDP globally, configure Gigabitethernet 2/0/1 and Gigabitethernet 2/0/2 to operate
in full duplex mode, and then enable DLDP on the two ports.

<DeviceB> system-view

[DeviceB] dldp enable

[DeviceB] interface gigabitethernet 2/0/1

[DeviceB-Gigabitethernet2/0/1] duplex full

[DeviceB-Gigabitethernet2/0/1] speed 1000

[DeviceB-Gigabitethernet2/0/1] dldp enable

[DeviceB-Gigabitethernet2/0/1] quit

[DeviceB] interface gigabitethernet 2/0/2

[DeviceB-Gigabitethernet2/0/2] duplex full

[DeviceB-Gigabitethernet2/0/2] speed 1000

[DeviceB-Gigabitethernet2/0/2] dldp enable

[DeviceB-Gigabitethernet2/0/2] quit

# Set the DLDP mode to enhanced.

[DeviceB] dldp work-mode enhance

# Set the port shutdown mode to manual.

[DeviceB] dldp unidirectional-shutdown manual

3.

Verify the configuration:
After the configurations are complete, you can use the display dldp command to display the DLDP
configuration information on ports.
# Display the DLDP configuration information on all the DLDP-enabled ports of Device A.

[DeviceA] display dldp

DLDP global status : enable

DLDP interval : 5s

DLDP work-mode : enhance

DLDP authentication-mode : none

DLDP unidirectional-shutdown : manual

DLDP delaydown-timer : 1s

The number of enabled ports is 2.

Interface Gigabitethernet2/0/1

DLDP port state : advertisement

DLDP link state : up

The neighbor number of the port is 1.

Neighbor mac address : 0023-8956-3600

Neighbor port index : 59

Neighbor state : two way

Neighbor aged time : 11

Advertising
This manual is related to the following products: