H3C S3100-52P Command Manual-Release 1602(V1.01)

HomeSupportSwitchesH3C S3100 Switch SeriesReference GuidesCommand ReferencesH3C S3100-52P Command Manual-Release 1602(V1.01)
12-DLDP Command
Title Size Download
12-DLDP Command 45.33 KB

Chapter 1  DLDP Configuration Commands

1.1  DLDP Configuration Commands

1.1.1  display dldp

Syntax

display dldp { unit-id | interface-type interface-number }

View

Any view

Parameters

unit-id: Unit number of a device.

interface-type: Port type.

interface-number: Port number.

Description

Use the display dldp command to display the DLDP configuration of a unit or a port.

Examples

# Display the DLDP configuration of unit 1.

<Sysname> display dldp 1

 dldp interval 10

 dldp work-mode enhance

 dldp authentication-mode md5, cipher is ;)<01%^&;YGQ=^Q`MAF4<1!!

 dldp unidirectional-shutdown manual

 dldp delaydown-timer 1

 

 The port number of unit 1 with DLDP is 1.

interface GigabitEthernet1/1/1

 dldp port state : advertisement

 dldp link state : up

 The neighbor number of the port is 1.

         neighbor mac address : 000f-e20f-710d

         neighbor port index : 372

         neighbor state : two way

         neighbor aged time : 12

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

cipher

DLDP authentication password

dldp unidirectional-shutdown

DLDP action to be performed on detecting a unidirectional link

dldp delaydown-timer

Setting of the DelayDown timer

The port number of unit 1 with DLDP

Number of the DLDP-enabled ports on unit 1

interface GigabitEthernet1/1/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, which can be 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 for all the optical ports.

Use the dldp disable command to disable DLDP for all the optical ports.

In Ethernet port view,

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

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

This command applies to non-optical ports as well as optical ports.

By default, DLDP is disabled.

 

  Caution:

When you use the dldp enable/dldp disable command in system view to enable/disable DLDP on all optical ports of the switch, the configuration takes effect on the existing optical ports, instead of those added subsequently.

 

Examples

# Enable DLDP for all the optical ports of the switch.

<Sysname> system-view

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

[Sysname] dldp enable

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: Sets the authentication mode to none (Performs no authentication).

simple: Sets the authentication mode to plain text.

simple-password: Authentication password in plain text, a string of 1 to 16 characters.

md5: Sets the authentication mode to MD5.

md5-password: MD5 authentication password, a string in plain text consisting of 1 to 16 characters or a string in cipher text corresponding to the string in plain text.

Description

Use the dldp authentication-mode command to set the DLDP authentication mode and password.

Use the undo dldp authentication-mode to remove the DLDP authentication mode and password.

By default, the authentication mode is none.

 

&  Note:

l      When you configure a DLDP authentication mode and authentication password on a port, make sure that the same DLDP authentication mode and password are set on both the local port and the peer port. Otherwise, DLDP authentication fails.

l      DLDP cannot work before DLDP authentication succeeds.

 

Related commands: dldp unidirectional-shutdown.

Examples

# Set the DLDP authentication mode and password to plain text and abc respectively on the ports connected with a fiber cable or copper twisted pair between Switch A and  Switch B.

l           Configure  Switch A

<SwitchA> system-view

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

[SwitchA] dldp authentication-mode simple abc

l           Configure Switch B

<SwitchB> system-view

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

[SwitchB] dldp authentication-mode simple abc

1.1.4  dldp interval

Syntax

dldp interval timer-value

undo dldp interval

View

System view

Parameters

timer-value: Interval for sending DLDP advertisement packets, in the range 1 to 100 (in seconds).

Description

Use the dldp interval command to set the interval for sending DLDP advertisement packets for all DLDP-enabled ports in the advertisement state.

Use the undo dldp interval command to restore the default.

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

Note that:

l           The interval takes effect on all the DLDP-enabled ports.

l           It is recommended that you set the interval shorter than one-third of the STP convergence time (usually 30 seconds). 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, unnecessarily consuming port bandwidth.

Examples

# Set the interval for sending DLDP advertisement packets to 6 seconds.

<Sysname> system-view

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

[Sysname] dldp interval 6

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 a port changes from disable to active and DLDP restarts to detect the link status of the fiber cable or copper twisted pair.

Related commands: dldp and dldp unidirectional-shutdown.

Examples

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

<Sysname> system-view

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

[Sysname] dldp reset

1.1.6  dldp unidirectional-shutdown

Syntax

dldp unidirectional-shutdown { auto | manual }

undo dldp unidirectional-shutdown

View

System view

Parameters

auto: Disables automatically the corresponding port when DLDP detects an unidirectional link or finds in the enhanced mode that the peer port is down.

manual: Prompts the user to disable manually the corresponding port when DLDP detects an unidirectional link or finds in the enhanced mode that the peer port is down. After the port is disabled, it can only send and receive Recover Probe and Recover Echo packets.

Description

Use the dldp unidirectional-shutdown command to set the DLDP handling mode for unidirectional links.

Use the undo dldp unidirectional-shutdown command to restore the default DLDP handling mode.

By default, the DLDP handling mode after a unidirectional link is detected is auto.

Related commands: dldp work-mode.

Examples

# Configure DLDP to shut down the corresponding port on detecting a unidirectional link.

<Sysname> system-view

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

[Sysname] 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 detects whether neighbors exist when neighbor tables are aging.

normal: Configures DLDP to work in normal mode. In this mode, DLDP does not detect 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.

 

&  Note:

l      When DLDP works in normal mode, the system can identify only the unidirectional links caused by fiber cross-connection.

l      When the DLDP protocol works in enhanced mode, the system can identify two types of unidirectional links: one is caused by fiber cross-connection and the other is caused by one fiber being not connected or being disconnected.

 

Examples

# Configure DLDP to work in enhanced mode.

<Sysname> system-view

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

[Sysname] 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.

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.

By default, the DelayDown timer is set to 1 second. A period of 5 seconds is recommended.

 

&  Note

When a device in the active, advertisement, or probe DLDP state receives a port down message, it does not remove the corresponding neighbor immediately, nor does it transit to the inactive state. Instead, it transits to the delaydown state and starts the DelayDown timer. In delaydown state, the device retains the related DLDP neighbor information. When the DelayDown timer expires, the DLDP neighbor information is removed.

 

Examples

# Set the delaydown timer to 5 seconds.

<Sysname> system-view

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

[Sysname] dldp delaydown-timer 5

 

  • 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
新华三官网