12-High Availability Command Reference

HomeSupportSwitchesH3C S9500E Switch SeriesReference GuidesCommand ReferencesH3C S9500E Command References-Release1828P04-6W18212-High Availability Command Reference
04-DLDP Commands
Title Size Download
04-DLDP Commands 85.65 KB

DLDP configuration commands

display dldp

Syntax

display dldp [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface-type interface-number: Specifies a port by its type and number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display dldp to display the DLDP configuration of a port.

If you do not provide the interface-type interface-number argument, this command displays the DLDP configuration of all the DLDP-enabled ports.

Examples

# Display the DLDP configuration of all the DLDP-enabled ports.

<Sysname> display dldp

 DLDP global status : enable

 DLDP interval : 5s

 DLDP work-mode : normal

 DLDP authentication-mode : none

 DLDP unidirectional-shutdown : auto

 DLDP delaydown-timer : 1s

 The number of enabled ports is 1.

 

Interface GigabitEthernet3/0/1

 DLDP port state : advertisement

 DLDP link state : up

 The neighbor number of the port is 1 (the maximum number ever detected is 2).

         Neighbor mac address : 0000-0000-0100

         Neighbor port index : 79

         Neighbor state : two way

         Neighbor aged time : 13

 

Interface GigabitEthernet3/0/1

 DLDP port state : disable

 DLDP link state : up

 The neighbor number of the port is 0.

Table 1 Command output

Field

Description

DLDP global status

Global DLDP state (enable or disable).

DLDP interval

Interval to send Advertisement packets (in seconds).

DLDP work-mode

DLDP mode (enhance or normal).

DLDP authentication-mode

DLDP authentication mode (none, simple, or md5).

DLDP unidirectional-shutdown

Port shutdown mode (auto or manual) after unidirectional links are detected.

DLDP delaydown-timer

Setting of the DelayDown timer.

The number of enabled ports

Number of the DLDP-enabled ports.

Interface

Index of a DLDP-enabled port.

DLDP port state

DLDP state on a port (initial, inactive, active, advertisement, probe, disable, or delaydown).

DLDP link state

Port state (up or down).

The neighbor number of the port

Current number of neighbors.

the maximum number ever detected is 2

Maximum number of neighbors once detected on the port. This field appears only when the current number of neighbors is different from the maximum number of neighbors once detected.

Neighbor mac address

MAC address of the neighbor.

Neighbor port index

Neighbor port index.

Neighbor state

Neighbor state (unknown, one way, or two way).

Neighbor aged time

Neighbor aging time.

 

display dldp statistics

Syntax

display dldp statistics [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface-type interface-number: Specifies a port by its type and number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display dldp statistics to display the statistics on the DLDP packets passing through a port.

If you do not provide the interface-type interface-number argument, this command displays the statistics on the DLDP packets passing through all the DLDP-enabled ports.

Examples

# Display the statistics on the DLDP packets passing through all the DLDP-enabled ports.

<Sysname> display dldp statistics

Interface GigabitEthernet3/0/1

 Packets sent : 142

 Packets received : 142

 Invalid packets received : 0

 Loop packets received : 142

 Authentication failed packets received : 0

 Valid packets received : 0

 

Interface GigabitEthernet3/0/2

 Packets sent : 0

 Packets received : 0

 Invalid packets received : 0

 Loop packets received : 0

 Authentication failed packets received : 0

 Valid packets received : 0

 

Interface GigabitEthernet3/0/5

 Packets sent : 0

 Packets received : 0

 Invalid packets received : 0

 Loop packets received : 0

 Authentication failed packets received : 0

 Valid packets received : 0

Table 2 Command output

Field

Description

Interface

Port index.

Packets sent

Total number of DLDP packets sent.

Packets received

Total number of DLDP packets received.

Invalid packets received

Number of the invalid packets received.

Loop packets received

Number of the loopback packets received.

Authentication failed packets received

Number of the received packets that failed to pass the authentication.

Valid packets received

Number of the valid packets received.

 

dldp authentication-mode

Syntax

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

undo dldp authentication-mode

View

System view

Default level

2: System level

Parameters

none: Specifies the switch not to perform authentication.

md5: Specifies the MD5 authentication mode and sets a plaintext or ciphertext password.

simple: Specifies the simple authentication mode and sets a plaintext or ciphertext password.

password: Sets the password. This argument is case sensitive. It must be a plaintext string of 1 to 16 characters, or a ciphertext string of 33 to 53 characters.

Description

Use dldp authentication-mode to configure DLDP authentication.

Use undo dldp authentication-mode to restore the default.

By default, DLDP authentication is not performed.

To enable DLDP to operate correctly, make sure the DLDP authentication modes and the passwords of both sides of a link are the same.

Examples

# Configure the simple authentication mode and set the plaintext password to abc (assuming that Switch A and Switch B are connected over a DLDP link).

·     Configure Switch A:

<SwitchA> system-view

[SwitchA] dldp authentication-mode simple abc

·     Configure Switch B:

<SwitchB> system-view

[SwitchB] dldp authentication-mode simple abc

dldp delaydown-timer

Syntax

dldp delaydown-timer time

undo dldp delaydown-timer

View

System view

Default level

2: System level

Parameters

Time: Sets the DelayDown timer in the range of 1 to 5 seconds.

Description

Use dldp delaydown-timer to set the DelayDown timer.

Use undo dldp delaydown-timer to restore the default.

By default, the setting of the DelayDown timer is 1 second.

The DelayDown timer setting applies to all the DLDP-enabled ports.

Examples

# Set the DelayDown timer to 2 seconds.

<Sysname> system-view

[Sysname] dldp delaydown-timer 2

dldp enable

Syntax

dldp enable

undo dldp enable

View

System view, Ethernet interface view, port group view

Default level

2: System level

Parameters

None

Description

Use dldp enable to enable DLDP.

Use undo dldp enable to disable DLDP.

By default, DLDP is disabled both globally and on each port.

·     When executed in system view, this command enables/disables DLDP globally.

·     When executed in Ethernet interface view, this command enables/disables DLDP on the current port.

·     When executed in port group view, this command enables/disables DLDP on all the ports in the port group.

DLDP takes effect on a port only when DLDP is enabled both globally and on the port.

Examples

# Enable DLDP globally and on GigabitEthernet 4/0/1.

<Sysname> system-view

[Sysname] dldp enable

[Sysname] interface gigabitethernet 4/0/1

[Sysname-GigabitEthernet4/0/1] dldp enable

# Enable DLDP globally and for all the ports in port group 1.

<Sysname> system-view

[Sysname] dldp enable

[Sysname] port-group manual 1

[Sysname-port-group-manual-1] group-member gigabitethernet 4/0/1 to gigabitethernet 4/0/3

[Sysname-port-group-manual-1] dldp enable

dldp interval

Syntax

dldp interval time

undo dldp interval

View

System view

Default level

2: System level

Parameters

time: Specifies the interval to send Advertisement packets, in the range of 1 to 100 seconds.

Description

Use dldp interval to set the interval to send Advertisement packets.

Use undo dldp interval to restore the default.

By default, the interval to send Advertisement packets is 5 seconds.

This command applies to all DLDP-enabled ports.

Examples

# Set the interval to send Advertisement packets to 20 seconds.

<Sysname> system-view

[Sysname] dldp interval 20

dldp reset

Syntax

dldp reset

View

System view, Ethernet interface view, port group view

Default level

2: System level

Parameters

None

Description

Use dldp reset to reset DLDP state for ports in the DLDP down state to enable them to perform unidirectional link detection.

When executed in system view, this command applies to all the ports in the DLDP down state. When executed in Ethernet interface view, this command applies to the current port. When executed in port group view, this command applies to all the ports in the port group in the DLDP down state.

Related commands: dldp enable and dldp unidirectional-shutdown.

Examples

# Reset DLDP state for all the ports in the DLDP down state.

<Sysname> system-view

[Sysname] dldp reset

# Reset DLDP state for GigabitEthernet 4/0/1 (assuming that GigabitEthernet 4/0/1 is in the DLDP down state).

<Sysname> system-view

[Sysname] interface gigabitethernet 4/0/1

[Sysname-GigabitEthernet4/0/1] dldp reset

# Reset DLDP state for all the ports in port group 1 in the DLDP down state.

<Sysname> system-view

[Sysname] port-group manual 1

[Sysname-port-group-manual-1] group-member gigabitethernet 4/0/1 to gigabitethernet 4/0/3

[Sysname-port-group-manual-1] dldp reset

dldp unidirectional-shutdown

Syntax

dldp unidirectional-shutdown { auto | manual }

undo dldp unidirectional-shutdown

View

System view

Default level

2: System level

Parameters

auto: Configures the port shutdown mode as auto mode, where, when a unidirectional link is detected, the port involved is shut down by DLDP.

manual: Configures the port shutdown mode as manual mode, where, when a unidirectional link is detected, DLDP generates log and traps to prompt you to shut down the involved port instead of doing so automatically.

Description

Use dldp unidirectional-shutdown to set the port shutdown mode.

Use undo dldp unidirectional-shutdown to restore the default.

By default, the port shutdown mode is the auto mode.

Related commands: dldp work-mode.

Examples

# Set the port shutdown mode as auto mode.

<Sysname> system-view

[Sysname] dldp unidirectional-shutdown auto

dldp work-mode

Syntax

dldp work-mode { enhance | normal }

undo dldp work-mode

View

System view

Default level

2: System level

Parameters

enhance: Specifies the enhanced DLDP mode.

normal: Specifies the normal DLDP mode.

Description

Use dldp work-mode to set the DLDP mode.

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

By default, the switch is operating in normal DLDP mode.

Examples

# Configure the switch to operate in enhanced DLDP mode.

<Sysname> system-view

[Sysname] dldp work-mode enhance

reset dldp statistics

Syntax

reset dldp statistics [ interface-type interface-number ]

View

User view

Default level

1: Monitor level

Parameters

interface-type interface-number: Specifies a port by its type and number.

Description

Use reset dldp statistics to clear the statistics on DLDP packets passing through a port.

If you do not provide the interface-type interface-number argument, this command clears the statistics on the DLDP packets passing through all the DLDP-enabled ports.

Examples

# Clear the statistics on the DLDP packets passing through all the DLDP-enabled ports.

<Sysname> reset dldp statistics

  • 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 Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网