H3C S9500 Command Manual-Release1648[v1.24]-01 IP Access Volume

HomeSupportSwitchesH3C S9500 Series SwitchesReference GuidesCommand ReferencesH3C S9500 Command Manual-Release1648[v1.24]-01 IP Access Volume
10-DLDP Commands
Title Size Download
10-DLDP Commands 36.86 KB

Chapter 1  DLDP Configuration Commands

1.1  DLDP Configuration Commands

1.1.1  debugging dldp

Syntax

debugging dldp { error | neighbor | packet | state }

undo debugging dldp { error | neighbor | packet | state }

View

User view

Parameters

error: Enables debugging for DLDP errors.

neighbor: Enables debugging for DLDP neighbor information.

packet: Enables debugging for sent/received DLDP packets.

state: Enables debugging for DLDP state information about ports.

Description

Use the debugging dldp command to enable a specified type of debugging for DLDP.

Use the undo debugging dldp command to disable debugging output. These two commands apply to all DLDP-enabled ports.

By default, DLDP debugging is disabled.

Related commands: display dldp.

Examples

# Enable debugging for DLDP errors.

<H3C> debugging dldp error

1.1.2  display dldp

Syntax

display dldp [ interface-type interface-number | interface-name ]

View

Any view

Parameters

interface-type interface-num | interface-name: Index/name of a port, for which DLDP-related information is to be displayed.

Description

Use the display dldp command to display the DLDP-related information for a specified or all DLDP-enabled ports, including configuration information (the interval for sending DLDP packets, authentication mode, password, DLDP operation mode, and unidirectional link operation mode), state information (neighbor information, local port state, and link state), and neighbor table (MAC addresses, Port IDs, neighbor states, and aging time).

Examples

# Display the DLDP-related information for all DLDP-enabled ports.

<H3C> display dldp

 dldp interval:10

 dldp work-mode:enhance

 dldp authentication-mode:none

 dldp unidirectional-shutdown:manual

 

 The number of ports enabled DLDP is 2.

 

 interface GigabitEthernet2/1/1

     dldp port state : inactive

     dldp link state : down

     The number of neighbors is 0.

 interface GigabitEthernet2/1/2

     dldp port state : advertisement

     dldp link state : up

     The number of neighbors is 1.

         neighbor mac address : 00e0-fc27-750d

         neighbor port index : 98

         neighbor state : two way

         neighbor aged time : 24

1.1.3  dldp

Syntax

dldp { enable | disable }

View

Ethernet port view

Parameters

None

Description

Use the dldp enable command to enable DLDP for a specific port.

Use the dldp disable command to disable DLDP for a specific port.

These two commands apply to Ethernet ports.

By default, DLDP is disabled.

Examples

# Enable DLDP on Ethernet 3/1/1.

<H3C> system-view

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

[H3C] interface Ethernet 3/1/1

[H3C-Ethernet3/1/1] dldp enable

1.1.4  dldp authentication-mode

Syntax

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

undo dldp authentication-mode

View

System view

Parameters

md5: Performs MD5 authentication.

none: Does not perform authentication.

simple: Performs plain-text authentication.

password: Authentication password. This argument is a string comprising 1 to 16 characters.

Description

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

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

By default, DLDP authentication is disabled.

Note that:

To make DLDP to operate properly, be sure to configure the same authentication mode and password on the local device and its peer.

Related commands: dldp unidirectional-shutdown.

Examples

# Configure switches H3C A and H3C B to perform DLDP authentication, with the password set to password1 (in plain text).

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.5  dldp interval

Syntax

dldp interval integer

undo dldp interval

View

System view

Parameters

integer: Interval (in seconds) for sending DLDP packets. This argument ranges from 1 to 100.

Description

Use the dldp interval command to set the interval for sending advertisement packets by a DLDP-enabled port.

Use the undo dldp interval command to restore the default.

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

Note that:

l           These two commands apply to all DLDP-enabled ports.

l           The interval for DLDP advertisement is tunable allowing DLDP to respond in time to link failures in different network environments. If the interval is too long, STP loops may occur before unidirectional links are terminated; if the interval is too short, undesired network traffic may increase to consume available bandwidth. Normally, the interval should be shorter than one-third of the STP convergence time. Normally, STP convergence time is 30 seconds.

Examples

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

<H3C> system-view

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

[H3C] dldp interval 20

1.1.6  dldp reset

Syntax

dldp reset

View

System view, Ethernet port view

Parameters

None

Description

Use the dldp reset command in system view to reset the DLDP state of all ports shut down by DLDP.

Use the dldp reset command in Ethernet port view to reset the DLDP state of the current port shut down by DLDP.

After you execute the dldp reset command, the DLDP state of the port(s) changes from disable to active allowing DLDP to detect unidirectional links again.

Related commands: debugging dldp, dldp unidirectional-shutdown.

Examples

# Reset the DLDP state of all the ports shut down by DLDP.

<H3C> system-view

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

[H3C] dldp reset

1.1.7  dldp unidirectional-shutdown

Syntax

dldp unidirectional-shutdown { auto | manual }

undo dldp unidirectional-shutdown

View

System view

Parameters

auto: Shuts down a port automatically when its link is found to be unidirectional or when its peer is found to be down (in enhanced mode).

manual: Asks the user to shut down a port manually when its link is found to be unidirectional or when its peer is found to be down (in enhanced mode). At the same time, the port stops receiving and sending DLDP packets.

Description

Use the dldp unidirectional-shutdown command to specify the action that DLDP takes upon detection of a unidirectional link.

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

By default, the auto keyword is specified, allowing DLDP to shut down a port once its link is found to be unidirectional.

Related commands: dldp work-mode.

Examples

# Configure DLDP to automatically shut down a port once its link is found to be unidirectional.

<H3C> system-view

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

[H3C] dldp unidirectional-shutdown auto

1.1.8  dldp work-mode

Syntax

dldp work-mode { enhance | normal }

undo dldp work-mode

View

System view

Parameters

enhance: Enables DLDP to operate in enhancement mode. In this mode, DLDP checks the existence of a neighbor before aging out its neighbor entry.

normal: Enables DLDP to operate in normal mode. In this mode, DLDP does not check the existence of a neighbor before aging out its neighbor entry.

Description

Use the dldp work-mode command to configure the DLDP operation mode.

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

By default, the normal DLDP operation mode is adopted.

Examples

# Configure DLDP to operate in enhancement mode.

<H3C> system-view

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

[H3C] dldp work-mode enhance

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