10 dldp commands

9
Command Manual – DLDP Quidway S8500 Series Routing Switches Table of Contents Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd i Table of Contents Chapter 1 DLDP Configuration Commands................................................................................ 1-1 1.1 DLDP Configuration Commands ....................................................................................... 1-1 1.1.1 debugging dldp........................................................................................................ 1-1 1.1.2 display dldp ............................................................................................................. 1-1 1.1.3 dldp.......................................................................................................................... 1-2 1.1.4 dldp authentication-mode ........................................................................................ 1-2 1.1.5 dldp interval ............................................................................................................. 1-2 1.1.6 dldp reset................................................................................................................. 1-2 1.1.7 dldp unidirectional-shutdown................................................................................... 1-2 1.1.8 dldp work-mode....................................................................................................... 1-2

Upload: randy-dookheran

Post on 07-Feb-2016

15 views

Category:

Documents


0 download

DESCRIPTION

DLDP Commands

TRANSCRIPT

Page 1: 10 DLDP Commands

Command Manual – DLDP Quidway S8500 Series Routing Switches Table of Contents

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

i

Table of Contents

Chapter 1 DLDP Configuration Commands................................................................................ 1-1 1.1 DLDP Configuration Commands ....................................................................................... 1-1

1.1.1 debugging dldp........................................................................................................ 1-1 1.1.2 display dldp ............................................................................................................. 1-1 1.1.3 dldp.......................................................................................................................... 1-2 1.1.4 dldp authentication-mode........................................................................................ 1-2 1.1.5 dldp interval ............................................................................................................. 1-2 1.1.6 dldp reset................................................................................................................. 1-2 1.1.7 dldp unidirectional-shutdown................................................................................... 1-2 1.1.8 dldp work-mode....................................................................................................... 1-2

Page 2: 10 DLDP Commands
Page 3: 10 DLDP Commands

Command Manual – DLDP Quidway S8500 Series Routing Switches Chapter 1 DLDP Configuration Commands

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-1

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.

<Quidway> debugging dldp error

1.1.2 display dldp

Syntax

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

View

Any view

Page 4: 10 DLDP Commands

Chapter 1 DLDP Configuration Commands Command Manual – DLDP

Quidway S8500 Series Routing Switches

1-2 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

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.

<Quidway> 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

Page 5: 10 DLDP Commands

Command Manual – DLDP Quidway S8500 Series Routing Switches Chapter 1 DLDP Configuration Commands

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-3

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.

<Quidway> system-view

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

[Quidway] interface Ethernet 3/1/1

[Quidway-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:

Page 6: 10 DLDP Commands

Chapter 1 DLDP Configuration Commands Command Manual – DLDP

Quidway S8500 Series Routing Switches

1-4 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

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 Quidway A and Quidway B to perform DLDP authentication, with the password set to password1 (in plain text).

Configure Quidway A. <QuidwayA> system-view

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

[QuidwayA] dldp authentication-mode simple password1

Configure Quidway B. <QuidwayB> system-view

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

[QuidwayB] 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:

These two commands apply to all DLDP-enabled ports. 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.

Page 7: 10 DLDP Commands

Command Manual – DLDP Quidway S8500 Series Routing Switches Chapter 1 DLDP Configuration Commands

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-5

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.

<Quidway> system-view

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

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

<Quidway> system-view

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

[Quidway] dldp reset

1.1.7 dldp unidirectional-shutdown

Syntax

dldp unidirectional-shutdown { auto | manual }

undo dldp unidirectional-shutdown

Page 8: 10 DLDP Commands

Chapter 1 DLDP Configuration Commands Command Manual – DLDP

Quidway S8500 Series Routing Switches

1-6 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

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.

<Quidway> system-view

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

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

Page 9: 10 DLDP Commands

Command Manual – DLDP Quidway S8500 Series Routing Switches Chapter 1 DLDP Configuration Commands

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-7

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.

<Quidway> system-view

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

[Quidway] dldp work-mode enhance