46# Enable DLDP globally. system-view[DeviceB] dldp enable# Configure GigabitEthernet 1/0/49 to operate in full duplex mode and at 1000 Mbps, andenable DLDP on it.[DeviceB] interface gigabitethernet 1/0/49[DeviceB-GigabitEthernet1/0/49] duplex full[DeviceB-GigabitEthernet1/0/49] speed 1000[DeviceB-GigabitEthernet1/0/49] dldp enable[DeviceB-GigabitEthernet1/0/49] quit# Configure GigabitEthernet 1/0/50 to operate in full duplex mode and at 1000 Mbps, andenable DLDP on it.[DeviceB] interface gigabitethernet 1/0/50[DeviceB-GigabitEthernet1/0/50] duplex full[DeviceB-GigabitEthernet1/0/50] speed 1000[DeviceB-GigabitEthernet1/0/50] dldp enable[DeviceB-GigabitEthernet1/0/50] quit# Set the DLDP mode to enhanced.[DeviceB] dldp work-mode enhance# Set the port shutdown mode to auto.[DeviceB] dldp unidirectional-shutdown auto3. Verify the configuration:After the configurations are complete, you can use the display dldp command to display the DLDPconfiguration information on ports.# Display the DLDP configuration information on all the DLDP-enabled ports of Device A.[DeviceA] display dldpDLDP global status : enableDLDP interval : 5sDLDP work-mode : enhanceDLDP authentication-mode : noneDLDP unidirectional-shutdown : autoDLDP delaydown-timer : 1sThe number of enabled ports is 2.Interface GigabitEthernet1/0/49DLDP port state : advertisementDLDP link state : upThe neighbor number of the port is 1.Neighbor mac address : 0023-8956-3600Neighbor port index : 59Neighbor state : two wayNeighbor aged time : 11Interface GigabitEthernet1/0/50DLDP port state : advertisementDLDP link state : upThe neighbor number of the port is 1.