No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R013C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
DLDP Configuration Commands

DLDP Configuration Commands

Command Support

Commands provided in this section and all the parameters in the commands are supported by all switch models by default, unless otherwise specified. For details, see specific commands.

display dldp

Function

The display dldp command displays the DLDP status of an interface or global DLDP status.

Format

display dldp [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays DLDP status of a specified interface.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can use the display dldp command to view the DLDP status on the device.

Prerequisites

DLDP has been enabled globally using the dldp enable command.

DLDP has been enabled in the interface view using the dldp enable command, before run the display dldp interface interface-type interface-number command.

Precaution

You can run the display dldp command to view DLDP status only after enabling DLDP globally using the dldp enable command.

Example

# Display the DLDP status on the device.

<HUAWEI> display dldp
DLDP global status: enable
DLDP interval: 10s
DLDP work-mode: enhance
DLDP authentication-mode: sha, password is ******
DLDP unidirectional-shutdown: auto
DLDP delaydown-timer: 4s
The number of enabled ports is: 1
The number of global neighbors is: 1
The max number of global neighbors is: 4096
Interface GigabitEthernet1/0/1
 DLDP port state: advertisement
 DLDP link state: up
 The neighbor number of the port is: 1.
   Neighbor mac address:80fb-0636-792d                                          
   Neighbor port index:49                                                       
   Neighbor state:two way                                                       
   Neighbor aged time(s):16       

# Display the DLDP status on GE1/0/1.

<HUAWEI> display dldp interface gigabitethernet 1/0/1
Interface GigabitEthernet1/0/1
 DLDP port state: advertisement                                                 
 DLDP link state: up                                                            
 The neighbor number of the port is: 1.                                         
   Neighbor mac address:0001-0001-0001                                          
   Neighbor port index:26                                                       
   Neighbor state:two way                                                       
   Neighbor aged time(s):206  
Table 12-30  Description of the display dldp command output

Item

Description

DLDP global status

Global DLDP status. The value can be:

  • enable: DLDP is enabled.

  • disable: DLDP is disabled.

To enable DLDP, use the dldp enable command.

DLDP interval

Interval for sending the Advertisement packets, in seconds.

To set the interval, use the dldp interval command.

DLDP work-mode

Working mode of DLDP. The value can be:

  • enhance

  • normal

To set the working mode of DLDP, use the dldp work-mode command.

DLDP authentication-mode

Authentication mode of DLDP packets. The value can be:

  • none: DLDP packets are not authenticated.

  • simple: DLDP packets are authenticated using plain-text passwords.

  • md5: DLDP packets are authenticated using MD5.

  • sha: DLDP packets are authenticated using SHA.

To set DLDP authentication mode, use the dldp authentication-mode command.

DLDP unidirectional-shutdown

Interface shutdown mode. The value can be:

  • manual: Interfaces are manually shut down.

  • auto: Interfaces are automatically shut down.

To set the interface shutdown mode, use the dldp unidirectional-shutdown command.

DLDP delaydown-timer

Delay of an interface's response to a Port-Down event, in seconds.

To set the delay, use the dldp delaydown-timer command.

The number of enabled ports is

Number of interfaces on which DLDP is enabled on a device.

The number of global neighbors is

Number of DLDP neighbors.

The max number of global neighbors is

The max number of global DLDP neighbors.

DLDP port state

Current DLDP status of an interface. The value can be:

  • inactive: DLDP is enabled but the link is Down.

  • active: DLDP is enabled and the link is Up, or entries of neighbors have been cleared.

  • advertisement: All neighbors have established bidirectional connections or have been in Active state for at least 5 seconds. The link in this state is stable.

  • probe: The interface receives a packet from an unknown neighbor. The interface then sends a probe packet to check whether the link is a unidirectional link. When an interface enters this state, DLDP starts the probe timer and starts an echo timer for each neighbor to be detected.

  • disable: DLDP detects a unidirectional link or a neighbor disappears when DLDP works in enhanced mode. An interface in this state receives and forwards only BPDUs, not user traffic.

  • delaydown: When DLDP is in Active, Advertisement, or Probe state, it has not entered the Inactive state when receiving a Port-Down event. An interface in delaydown state retains the DLDP neighbor information and starts the DelayDown timer.

  • loop: Indicates that a loop occurs on the interface because the Rx and Tx of an optical module are connected by the same optical fiber.

DLDP link state

Status of the interface.

  • up

  • down

The neighbor number of the port

Number of neighbors of an interface.

Neighbor mac address

MAC address of a peer device.

Neighbor port index

Index of a peer port.

Neighbor state

Peer status.
  • unknown
  • one way
  • two way

Neighbor aged time(s)

Time period after which a peer ages, in seconds.

display snmp-agent trap feature-name dldp all

Function

The display snmp-agent trap feature-name dldp all command displays all trap information about the DLDP module.

Format

display snmp-agent trap feature-name dldp all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The Simple Network Management Protocol (SNMP) is a network management standard widely used on the TCP/IP network. It uses a central computer (a network management station) that runs network management software to manage network elements. The SNMP agent reports trap messages to the network management station so that the network management station can obtain the network status in a timely manner, and the network administrator can take measures accordingly.

The display snmp-agent trap feature-name dldp all command displays the following information:
  • Trap names supported by the dldp module. The trap names are the same as the trap names specified by the snmp-agent trap enable feature-name dldp trap-name trap-name command. Each trap name corresponds to a network element abnormality.

  • Trap status of the dldp module. You can check whether the trap is reported based on the trap name.

Prerequisites

SNMP has been enabled. See snmp-agent.

Example

# Display all trap information about the dldp module.

<HUAWEI>display snmp-agent trap feature-name dldp all
------------------------------------------------------------------------------  
Feature name: DLDP                                                              
Trap number : 4                                                                 
------------------------------------------------------------------------------  
Trap name                       Default switch status   Current switch status   
hwDldpUnidirectionalLink        on                      on                      
hwDldpLinkResume                on                      on                      
hwDldpLoopDetect                on                      on                      
hwDldpLoopResume                on                      on 
Table 12-31  Description of the display snmp-agent trap feature-name dldp all command output

Item

Description

Feature name

Name of the module that the trap message belongs

Trap number

Number of trap messages

Trap name

Alarm name:
  • hwDldpLinkResume: a unidirectional link clear alarm

  • hwdldploopdetect: A loopback alarm is generated.

  • hwdldploopresume: A loopback alarm is cleared.

  • hwDldpUnidirectionalLink: a unidirectional link alarm

Default switch status

Status of the trap function by default:
  • on: The trap function is enabled.
  • off: The trap function is disabled.

Current switch status

Current status of the trap function:
  • on: The trap function is enabled.
  • off: The trap function is disabled.

display dldp statistics

Function

The display dldp statistics command displays the statistics about DLDP packets on an interface.

Format

display dldp statistics [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays the statistics about DLDP packets on a specified DLDP interface.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

If no interface is specified, the statistics about DLDP packets on all DLDP interfaces are displayed. If an interface is specified, the statistics about DLDP packets on the specified interface are displayed.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

If DLDP negotiation fails, you can use the display dldp statistics command to check the statistics about DLDP packets. This command can be used to display the statistics about DLDP packets after the statistics about DLDP packets are cleared using the reset dldp statistics command.

Prerequisites

DLDP has been enabled globally and on interfaces using the dldp enable command.

Example

# Display the statistics about DLDP packets on the device.

<HUAWEI> display dldp statistics
Interface : GigabitEthernet1/0/1                                                
 Packets sent: 15                                                                
 Packets received: 0                                                            
 Invalid packets received: 0                                                    
 Loop packets received: 0                                                       
 Authentication failed packets received: 0                                      
 Valid packets received: 0 

# Display the statistics about DLDP packets on GE1/0/1.

<HUAWEI> display dldp statistics interface gigabitethernet 1/0/1
Interface : GigabitEthernet1/0/1                                                
 Packets sent: 0                                                                
 Packets received: 0                                                            
 Invalid packets received: 0                                                    
 Loop packets received: 0                                                       
 Authentication failed packets received: 0                                      
 Valid packets received: 0  
Table 12-32  Description of the display dldp statistics command output

Item

Description

Interface

Name of the port on which DLDP is enabled.

Packets sent

Number of DLDP sent packets.

Packets received

Number of DLDP received packets.

Invalid packets received

Number of DLDP erroneous packets that are received.

Loop packets received

Number of DLDP loop packets that are received.

Authentication failed packets received

Number of DLDP received packets that fail to pass the authentication.

Valid packets received

Number of DLDP valid packets that are received.

dldp authentication-mode

Function

The dldp authentication-mode command configures a DLDP authentication mode.

The undo dldp authentication-mode command restores the default DLDP authentication mode.

By default, DLDP packets are not authenticated.

Format

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

undo dldp authentication-mode [ md5 md5-password | simple simple-password | sha sha-password | none ]

Parameters

Parameter

Description

Value

md5 md5-password

Uses MD5 to authenticate DLDP packets exchanged between the interfaces on the local and neighbor devices. md5-password specifies the MD5 authentication password.

NOTE:
The password is saved in the configuration file in cipher text for security.
The value is a string of 1 to 16 case-sensitive plaintexts. The string excludes a question mark (?) and space.
NOTE:
Ciphertext passwords with various lengths configured in an earlier version are also supported in the existing version.

simple simple-password

Uses the plain text to authenticate DLDP packets exchanged between the interfaces on the local and neighbor devices. simple-password specifies the plain-text authentication password.

NOTE:

The password is saved in the configuration file in cipher text for security.

The value is a string of 1 to 16 case-sensitive plaintexts. The string excludes a question mark (?) and space.
NOTE:
Ciphertext passwords with various lengths configured in an earlier version are also supported in the existing version.

none

Performs no authentication on DLDP packets exchanged between the interfaces on the local and neighbor devices.

-

sha sha-password

Uses SHA mode to authenticate DLDP packets exchanged between the interfaces on the local and neighbor devices. sha-password specifies the SHA authentication password.

NOTE:
The password is saved in the configuration file in cipher text for security.
The value is a string of 1 to 16 case-sensitive plaintexts. The string excludes a question mark (?) and space.
NOTE:
Ciphertext passwords with various lengths configured in an earlier version are also supported in the existing version.
NOTE:

For security purposes, you are advised to use SHA as the authentication algorithm of DLDP.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To ensure packet validity on an insecure network, users can configure one of the following authentication modes for DLDP packets:

  • None: The sender sets the authentication key of the DLDP packets to all 0s and the authentication type field to 0. The receiver compares the authentication key and authentication type with those set on the local end. If the settings on the two ends are different, the receiver discards the DLDP packets.

  • Plain text: The sender sets the authentication key of the DLDP packets to the plain-text password set on the local end and the authentication type field to 1. The receiver compares the authentication key and authentication type with those set on the local end. If the settings on the two ends are different, the receiver discards the DLDP packets.

  • MD5: The sender sets the authentication key of the DLDP packets to the summary of the cipher text obtained from the password set on the local end using the MD5 algorithm, and sets the authentication type field to 2. The receiver compares the authentication key and authentication type with the summary of the cipher text obtained on the local end using the MD5 algorithm. If the settings on the two ends are different, the receiver discards the DLDP packets.

  • SHA authentication: The sender sets the authenticator field of the DLDP packets to the digest of the cipher text obtained from the password set on the local end using the SHA256 algorithm, and sets the authentication type field to 3. The receiver compares the authenticator and authentication type with the digest of the cipher text obtained on the local end using the SHA256 algorithm. If the settings on the two ends are different, the receiver discards the DLDP packets.

Prerequisites

DLDP has been enabled globally using the dldp enable command.

Precautions

NOTE:

To improve security, it is recommended that the password contains at least two types of lower-case letters, upper-case letters, numerals, and special characters, and contains at least 6 characters.

If the dldp authentication-mode command is executed while DLDP is running, the local device deletes information about the DLDP neighbor device and triggers the neighbor device to clear information about the local device. In this way, the negotiation can be re-performed.

If the DLDP authentication mode is set, ensure that the local and neighbor devices are configured with the same DLDP authentication mode and password. If they use different DLDP authentication modes or passwords, DLDP packets cannot be authenticated. DLDP can work properly only when the two interfaces are authenticated.

Example

# Configure simple authentication for DLDP packets exchanged between two devices. Set the SHA password to Huawei-123.
<HUAWEI> system-view
[HUAWEI] dldp authentication-mode sha Huawei-123

dldp compatible-mode enable

Function

The dldp compatible-mode enable command enables the DLDP compatible mode.

The undo dldp compatible-mode enable command disables the DLDP compatible mode.

By default, the DLDP compatible mode is disabled.

Format

dldp compatible-mode enable

undo dldp compatible-mode enable

Parameters

None

Views

GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This configuration is required if the device works with the following Huawei switches to provide the DLDP function:

  • S8500

  • S7800

  • S6500

  • S5600 series

  • S5100-EI

  • S3900 series

  • S3500 series

  • S3100 series

Prerequisites

DLDP has been enabled globally using the dldp enable command.

Precautions

If two devices are connected by two cross-connected links, the DLDP compatible mode must be enabled or disabled on both the two interfaces.

If two devices are Huawei devices (not preceding models), the DLDP compatible mode must be enabled or disabled on both the two interfaces.

Example

# Enable the DLDP compatible mode on interfaceGE1/0/1.

<HUAWEI> system-view
[HUAWEI] dldp enable
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] dldp enable
[HUAWEI-GigabitEthernet1/0/1] dldp compatible-mode enable

dldp compatible-mode local-mac

Function

The dldp compatible-mode local-mac command configures the switch to send DLDP packets containing source MAC addresses in the DLDP compatible mode.

The undo dldp compatible-mode local-mac command restores the source MAC addresses of the DLDP packets to the default MAC address.

By default, the MAC address of a DLDP packet is the system MAC address.

Format

dldp compatible-mode local-mac mac-address

undo dldp compatible-mode local-mac [ mac-address ]

Parameters

Parameter

Description

Value

mac-address

Specifies the source MAC address of the DLDP packets sent in the DLDP compatible mode.

The value is in H-H-H format. H contains 1 to 4 hexadecimal digits.

NOTE:

The source MAC address cannot be a multicast MAC address, a broadcast MAC address, or a reserved address.

Views

GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run dldp compatible-mode local-mac command to configure the source MAC addresses for DLDP packets sent in DLDP compatible mode. This prevents the DLDP flapping due to discovery of multiple neighbors when the device needs to work with the following Huawei switches:

  • S8500

  • S7800

  • S6500

  • S5600 series switches

  • S5100-EI

  • S3900 series switches

  • S3500 series switches

  • S3100 series switches

Prerequisites

The DLDP compatible mode has been enabled using the dldp compatible-mode enable command.

Precautions

When the configuration is complete, the newly configured MAC address is used as the source MAC addresses of the sent DLDP packets.

Example

# Set the source MAC address of the DLDP packets sent by interface GE1/0/1 in DLDP compatible mode to 00e0-0000-9211.

<HUAWEI> system-view
[HUAWEI] dldp enable
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] dldp enable
[HUAWEI-GigabitEthernet1/0/1] dldp compatible-mode enable
[HUAWEI-GigabitEthernet1/0/1] dldp compatible-mode local-mac 00e0-0000-9211

dldp delaydown-timer

Function

The dldp delaydown-timer command sets the timeout value of the DelayDown timer.

The undo dldp delaydown-timer command restores the default timeout value of the DelayDown timer.

The default timeout value of the DelayDown timer is 1 second.

Format

dldp delaydown-timer time

undo dldp delaydown-timer [ time ]

Parameters

Parameter

Description

Value

time

Specifies the timeout value of the DelayDown timer.

The value is an integer ranging from 1 to 5, in seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a DLDP interface in Active, Advertisement, or Probe state receives a Port-Down event, the interface enters Inactive state and clears the neighbor information. In some cases, the interface is Down for a short time. For example, failure of the Tx fiber on a port may cause jitter of optical signals on the Rx fiber, which makes the port Down and then Up again. To prevent the neighbor information from being deleted immediately in this case, the DLDP interface first enters the DelayDown state and starts the DelayDown timer. Before the DelayDown timer times out, the interface retains the neighbor information and responds to only Port-Up events. You can use the dldp delaydown-timer command to set the timeout value of the DelayDown timer.

  • If the DLDP interface does not receive any Port-Up event when the DelayDown timer times out, the interface deletes the neighbor entry and enters the Inactive state.

  • If the DLDP interface receives the Port-Up event before the DelayDown timer times out, the interface returns to the previous state.

Prerequisites

DLDP has been enabled globally using the dldp enable command.

Precautions

After the dldp delaydown-timer command is executed, the DLDP status is not affected by the Up/Down jitter within the timeout value of the DelayDown timer.

Example

# Set the timeout value of the DelayDown timer to 2 seconds.

<HUAWEI> system-view
[HUAWEI] dldp enable
[HUAWEI] dldp delaydown-timer 2
Related Topics

dldp enable

Function

The dldp enable command enables DLDP.

The undo dldp enable command disables DLDP.

By default, DLDP is disabled globally and on each interface.

Format

dldp enable

undo dldp enable

Parameters

None

Views

System view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Sometimes unidirectional links occur on networks. On a unidirectional link, the local device can receive packets from the peer device at the link layer, but the peer device cannot receive packets from the local device. Unidirectional links result in problems such as loops on an STP topology.

DLDP is used to monitor the link status of optical fibers or copper twisted pairs. If a unidirectional link exists, DLDP automatically shuts down the interface or prompts users to manually shut down the interface to prevent network faults.

To enable DLDP, run the dldp enable command to globally enable DLDP and then run this command on the interface.

Prerequisites

DLDP takes effect only when the physical link is connected; therefore, securely connect optical fibers or copper twisted pairs before enabling DLDP.

Precautions

  • After you enable DLDP using the dldp enable command in the system view, run this command again on the interfaces to enable DLDP so that the interfaces can properly transmit and receive DLDP packets.

  • If DLDP is disabled in the system view, DLDP is disabled on all interfaces, and all the DLDP configurations are deleted, which cannot be restored.

Example

# Enable DLDP globally.

<HUAWEI> system-view
[HUAWEI] dldp enable

# Enable DLDP on interface GE1/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] dldp enable
Related Topics

dldp interval

Function

The dldp interval command sets the interval for sending Advertisement packets.

The undo dldp interval command restores the default interval for sending Advertisement packets.

The default interval for sending Advertisement packets is 5 seconds.

Format

dldp interval interval

undo dldp interval [ interval ]

Parameters

Parameter

Description

Value

interval

Specifies the interval for sending Advertisement packets.

The value is an integer ranging from 1 to 100, in seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Applicable Environment

An interface in Advertisement state sends Advertisement packets. DLDP creates a neighbor entry, starts the entry timer, and transits to the Probe state if the neighbor entry does not exist on the peer interface. DLDP updates the entry timer if the neighbor entry exists.

You can adjust the interval for sending Advertisement packets to allow DLDP to detect unidirectional links on different networks.

The interval for sending Advertisement packets must be smaller than one third of the STP convergence time.

  • If the interval is too long, STP loops occur before a unidirectional link is shut down on a DLDP interface, which may lead to forwarding of many error packets.

  • If the interval is too short, the traffic volume on the network increases.

Prerequisites

DLDP has been enabled globally using the dldp enable command.

Precautions

After the dldp interval command is executed, the local device running DLDP deletes information about the peer device and triggers the peer device to clear information about the local device. In this way, the negotiation can be re-performed.

Ensure that the interval for sending Advertisement packets is set to the same value on the local and peer devices connected through optical fibers or copper twisted pairs.

Example

# Set the interval for sending Advertisement packets to 20 seconds on all DLDP interfaces.

<HUAWEI> system-view
[HUAWEI] dldp enable
[HUAWEI] dldp interval 20
Related Topics

dldp reset

Function

The dldp reset command resets the DLDP status of an interface so that the interface re-detects unidirectional links.

Format

dldp reset

Parameters

None

Views

System view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a unidirectional link is detected, the corresponding interface enters the Disable state. The system prompts you to shut down the interface or automatically sets the interface state to DLDP Down according to the configuration. To enable the interface to detect unidirectional links again, you can reset the DLDP status of the interface as follows:

  • If the interface is shut down using the shutdown (interface view) command, run the undo shutdown (interface view) command to enable the interface to detect unidirectional links again. If the system automatically sets the interface state to DLDP Down, wait the interface to recover using the auto recovery mechanism after the link state becomes bidirectional using the auto recovery mechanism.

  • Run the dldp reset command to restore the interface. The DLDP status of the interface after recovery depends on the physical status of the port. If the physical status is Down, the DLDP status of the interface changes to Inactive. If the physical status is Up, the DLDP status changes to Active.

You can reset the DLDP status globally or on the interfaces.

  • When you run the dldp reset command in the interface view, the command takes effect only on this interface.

  • When you run the dldp reset command in the system view, the command takes effect on all disabled interfaces.

Prerequisites

  • If you run this command in the system view, ensure that DLDP has been enabled globally using the dldp enable command.

  • If you run this command in the interface view, ensure that DLDP has been enabled globally and on the interfaces using the dldp enable command.

Example

# Reset the DLDP status of all disabled interfaces.
<HUAWEI> system-view
[HUAWEI] dldp reset
# Reset the DLDP status of disabled interfaceGE1/0/1.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] dldp reset

dldp unidirectional-shutdown

Function

The dldp unidirectional-shutdown command sets the shutdown mode if DLDP detects a unidirectional link on an interface.

The undo dldp unidirectional-shutdown command restores the default shutdown mode if DLDP detects a unidirectional link on an interface.

By default, an interface is shut down automatically if DLDP detects a unidirectional link on the interface.

Format

dldp unidirectional-shutdown { auto | manual }

undo dldp unidirectional-shutdown [ auto | manual ]

Parameters

Parameter

Description

Value

auto

Specifies the automatic mode.

-

manual

Specifies the manual mode. When the traffic is heavy or CPU usage is high, the manual shutdown mode is recommended.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When DLDP detects a unidirectional link on an interface, run the dldp unidirectional-shutdown command to configure the shutdown mode for the interface. The following shutdown modes are available:

  • Manual mode: This mode can prevent DLDP from shutting down the port immediately when the network performance is poor. This leads to failure in packet forwarding. It is a compromise mode used to prevent interface shutdown due to incorrect judgment of the system. In this mode, DLDP detects unidirectional links, and the network administrator manually shuts down the interface. When the DLDP state machine detects a unidirectional link, the system sends trap messages to prompt the network administrator to shut down the interface. Then the DLDP state machine changes to the Disable state.

  • Automatic mode: It is the default mode. When a unidirectional link is detected, the DLDP state machine changes to the Disable state, records the trap messages, and sets the interface status to Blocking.

Prerequisites

DLDP has been enabled globally using the dldp enable command.

Precautions

When the traffic is heavy or CPU usage is high, the manual shutdown mode is recommended.

Example

# Configure DLDP to automatically shut down an interface when a unidirectional link is detected.

<HUAWEI> system-view
[HUAWEI] dldp enable
[HUAWEI] dldp unidirectional-shutdown auto

dldp work-mode

Function

The dldp work-mode command sets the working mode of DLDP.

The undo dldp work-mode command restores the default working mode of DLDP.

By default, the working mode of DLDP is enhance.

Format

dldp work-mode { enhance | normal }

undo dldp work-mode [ enhance | normal ]

Parameters

Parameter

Description

Value

enhance

Indicates enhance mode of DLDP.

-

normal

Indicates normal mode of DLDP.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A unidirectional link fault may be caused by cross connections of optical fibers or disconnection of one optical fiber. You can use the dldp work-mode command to set the working mode of DLDP to detect the preceding two types of unidirectional links.

DLDP can work in either of the following working modes:

  • Normal: DLDP does not automatically detect a neighbor when aging out a neighbor entry. In this mode, the system can identify only unidirectional links caused by cross connections of optical fibers. When the aging timer of a neighbor times out, the local end deletes the entry of the neighbor and sends an Advertisement packet with an RSY tag.

  • Enhance: DLDP automatically detects a neighbor when aging out a neighbor entry. In this mode, the system can identify unidirectional links caused by cross connections of optical fibers or disconnection of one optical fiber. In this mode, when the aging timer of a neighbor times out, the local end starts the enhance timer and consecutively sends eight Probe packets to detect the neighbor, at the rate of one packet per second. If the local end does not receive any Echo packet from the neighbor when the Echo timer times out, DLDP enters the Disable state.

Prerequisites

DLDP has been enabled globally using the dldp enable command.

Example

# Set the working mode of DLDP to enhance.

<HUAWEI> system-view
[HUAWEI] dldp enable
[HUAWEI] dldp work-mode enhance

reset dldp statistics

Function

The reset dldp statistics command deletes the statistics about DLDP packets on an interface.

Format

reset dldp statistics [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Deletes the statistics about DLDP packets on a specified DLDP interface.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

If no interface is specified, the statistics about DLDP packets on all DLDP interfaces are deleted. If an interface is specified, the statistics about DLDP packets on the interface are deleted.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before collecting statistics about DLDP packets on an interface in a specified period, you can run the reset dldp statistics command to delete the existing DLDP packet statistics on the interface.

Precautions

The reset dldp statistics command deletes the statistics about DLDP packets. Exercise caution when running this command.

Example

# Delete the statistics about DLDP packets on all DLDP interfaces.

<HUAWEI> reset dldp statistics

snmp-agent trap enable feature-name dldp

Function

The snmp-agent trap enable feature-name dldp command enables the trap function for the DLDP module.

The undo snmp-agent trap enable feature-name dldp command disables the trap function for the DLDP module.

By default, the trap function is enabled for the DLDP module.

Format

snmp-agent trap enable feature-name dldp [ trap-name trap-name ]

undo snmp-agent trap enable feature-name dldp [ trap-name trap-name ]

Parameters

Parameter

Description

Value

trap-name trap-name

Specifies the name of an alarm.

  • hwdldpunidirectionallink: A unidirectional link alarm is generated.

  • hwdldploopdetect: A loopback alarm is generated.

  • hwdldploopresume: A loopback alarm is cleared.

  • hwdldplinkresume: A unidirectional link alarm is cleared.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You can specify trap-name to enable the trap function for one or more events of the DLDP module.

Example

# Enable the alarm named hwdldpunidirectionallink.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name dldp trap-name hwdldpunidirectionallink
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 114148

Downloads: 83

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next