H3C S7500 Series Command Manual(Release 3100 Series)-(V1.04)

HomeSupportSwitchesH3C S7500 Switch SeriesReference GuidesCommand ReferencesH3C S7500 Series Command Manual(Release 3100 Series)-(V1.04)
13-DLDP Commands
Title Size Download
13-DLDP Commands 55 KB

Chapter 1  DLDP Configuration Commands

1.1  DLDP Configuration Commands

1.1.1  display dldp

Syntax

display dldp [ interface-type interface-number ]

View

Any view

Parameters

interface-type: Port type.

interface-number: Port number.

Description

Use the display dldp command to display the DLDP configuration information of the device or the specified port.

Examples

# Display the DLDP configuration information of the device.

<H3C> display dldp

 dldp interval 10

 dldp work-mode enhance

 dldp authentication-mode none

 dldp unidirectional-shutdown manual

 dldp delaydown-timer 1

 

 The port number with DLDP is 2.

interface GigabitEthernet2/0/1

 dldp port state : inactive

 dldp link state : down

 The neighbor number of the port is 0.

interface GigabitEthernet2/0/2

 dldp port state : advertisement

 dldp link state : up

 The neighbor number of the port is 1.

        neighbor mac address : 000f-e227-750d

        neighbor port index : 98

        neighbor state : two way

        neighbor aged time : 24

Table 1-1 Description on the fields of the display dldp command

Field

Description

dldp interval

Interval for sending DLDP advertisement packets

dldp work-mode

DLDP work mode

dldp authentication-mode

DLDP authentication mode

dldp unidirectional-shutdown

DLDP action to be performed on detecting a unidirectional link

dldp delaydown-timer

Setting of the DelayDown timer

The port number with DLDP

Number of the DLDP-enabled ports on device

interface GigabitEthernet2/0/1

Port type and port number

dldp port state

DLDP state of a port

dldp link state

DLDP link state

The neighbor number of the port

Number of the neighbor ports

neighbor mac address

MAC address of a neighbor port

neighbor port index

Neighbor port index

neighbor state

Neighbor state (two way or unknown)

neighbor aged time

Neighbor aging time

 

1.1.2  dldp

Syntax

dldp { enable | disable }

View

System view, Ethernet port view

Parameters

None

Description

In system view:

Use the dldp enable command to enable DLDP globally on all optical ports of the switch.

Use the dldp disable command to disable DLDP globally on all optical ports of the switch.

In Ethernet port view:

Use the dldp enable command to enable DLDP on the current port.

Use the dldp disable command to disable DLDP on the current port.

The commands apply to both non-optical ports and optical ports.

By default, DLDP is disabled.

 

&  Note:

When you use the dldp enable/dldp disable commands in system view to enable/disable DLDP globally on all optical ports of the switch, these commands are only valid for the existing optical ports on the device, however, they are not valid for those added subsequently.

 

Examples

# Enable DLDP globally on all optical ports of the switch.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] dldp enable

 DLDP is enabled on all fiber ports.

1.1.3  dldp authentication-mode

Syntax

dldp authentication-mode { none | simple simple-password | md5 md5-password }

undo dldp authentication-mode

View

System view

Parameters

none: Performs no authentication with the peer port.

simple: Sets the authentication mode with the peer port to plain text.

simple-password: Password for authentication with the peer port, a plaintext string in the range of 1 character to 16 characters.

md5: Specifies the mode of authentication with the peer port to MD5.

Description

Use the dldp authentication-mode command to set the DLDP authentication mode and password for the ports of the local and peer devices.

Use the undo dldp authentication-mode to cancel the DLDP authentication mode and password for the ports of the local and peer devices.

By default, authentication mode is none, that is, authentication is not performed.

Note that:

When you configure the DLDP authentication mode and authentication password, make sure the same DLDP authentication mode and password are set for the ports connecting the local and peer devices. Otherwise, DLDP authentication fails. DLDP cannot work when DLDP authentication fails.

Related commands: dldp unidirectional-shutdown.

Examples

# Enable DLDP on the ports connecting two devices. Plaintext authentication is performed with the password password1.

l           Configure H3C A:

<H3CA> system-view

System View: return to User View with Ctrl+Z.

[H3CA] dldp authentication-mode simple password1

l           Configure H3C B:

<H3CB> system-view

System View: return to User View with Ctrl+Z.

[H3CB] dldp authentication-mode simple password1

1.1.4  dldp interval

Syntax

dldp interval integer

undo dldp interval

View

System view

Parameters

Integer: Interval of sending DLDP packets, in the range of 1 seconds to 100 seconds. It is 5 seconds by default.

Description

Use the dldp interval command to set the interval of sending advertisement packets when all the DLDP-enabled ports are in the Advertisement status.

Use the undo dldp interval command to restore the interval to the default value 5 seconds.

By default, the interval of sending advertisement packets is 5 seconds.

Note that:

l           The interval you define is applicable to all DLDP-enabled ports.

l           The interval must be shorter than one-third of the STP convergence time. If too long an interval is set, an STP loop may occur before DLDP shuts down unidirectional links. On the contrary, if too short an interval is set, network traffic increases, and port bandwidth is reduced. Generally, the STP convergence time is 30 seconds.

l           For the dldp interval integer command, make sure that the same interval for transmitting advertisement packets is set on the ports used to connected both devices; otherwise DLDP will not operate properly.

Examples

# Set the interval of sending advertisement packets to 20 seconds for all the DLDP-enabled ports.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] dldp interval 20

1.1.5  dldp reset

Syntax

dldp reset

View

System view, Ethernet port view

Parameters

None

Description

In system view:

Use the dldp reset command to reset the DLDP status of all the ports disabled by DLDP.

In Ethernet port view:

Use the dldp reset command to reset the DLDP status of the current port disabled by DLDP.

After the dldp reset command is executed, the DLDP status of these ports changes from disable to active and DLDP restarts to probe the link status of the fiber cables or copper twisted pairs.

Related commands: dldp, dldp unidirectional-shutdown.

Examples

# Reset the DLDP status of all the ports disabled by DLDP.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] dldp reset

1.1.6  dldp unidirectional-shutdown

Syntax

dldp unidirectional-shutdown { auto | manual }

undo dldp unidirectional-shutdown

View

System view

Parameters

auto: Disables the corresponding port automatically when DLDP detects a unidirectional link.

manual: Prompts the user to disable the corresponding port manually instead of disabling the port automatically when DLDP detects an unidirectional link. It stops the DLDP packet sending/receiving on the port at the same time.

Description

Use the dldp unidirectional-shutdown command to set the DLDP handling mode when a unidirectional link is found.

Use the dldp unidirectional-shutdown command to restore the default setting.

By default, the handling mode of DLDP after unidirectional links are detected is auto.

Related commands: dldp work-mode.

Examples

# Configure DLDP to automatically disable the corresponding port when a unidirectional link is found.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] dldp unidirectional-shutdown auto

1.1.7  dldp work-mode

Syntax

dldp work-mode { enhance | normal }

undo dldp work-mode

View

System view

Parameters

enhance: Configures DLDP to work in enhanced mode. In this mode, DLDP probes actively whether neighbors exist when neighbor tables are aging.

normal: Configures DLDP to work in normal mode. In this mode, DLDP does not probe actively whether neighbors exist when neighbor tables are aging.

Description

Use the dldp work-mode command to set the DLDP operating mode.

Use the undo dldp work-mode command to restore the default DLDP operating mode.

By default, DLDP works in normal mode.

Examples

# Configure DLDP to work in enhanced mode.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] dldp work-mode enhance

1.1.8  dldp delaydown-timer

Syntax

dldp delaydown-timer delaydown-time

undo dldp delaydown-timer

View

System view

Parameters

delaydown-time: Delaydown timer to be set (in seconds). This argument ranges from 1 to 5. By default, the delaydown timer expires after 1 second it is triggered.

Description

Use the dldp delaydown-timer command to set the delaydown timer.

Use the undo dldp delaydown-timer command to restore the default delaydown timer setting.

Examples

# Set the delaydown timer to 2 seconds.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] dldp delaydown-timer 2

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网