13.7. UDLD Commands

13.7.1. udld enable

Command Purpose

Use this command enable/disable global UDLD state.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

udld enable

no udld enable

Command Mode

Global Config

Default

Disabled

Usage

None

Examples

This example shows how to enable global UDLD state:

Switch# configure terminal
Switch(config)# udld enable

13.7.2. udld port

Command Purpose

Use this command to enable/disable UDLD state on a specific interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

udld port (aggressive| )

no udld port

Parameter

Parameter Description

Parameter Value

aggressive

UDLD aggressive mode

-

Command Mode

Interface Configuration

Default

Disabled

Usage

None

Examples

This example shows how to enable UDLD on interface eth-0-9:

Switch# configure terminal
Switch(config)# interface eth-0-9
Switch(config)# udld port

Related Commands

show udld

13.7.3. udld message interval

Command Purpose

Use this command to set the UDLD message interval. Use no command to set the interval to default value.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

udld message interval INTERVAL

no udld message interval

Parameter

Parameter Description

Parameter Value

INTERVAL

UDLD message interval (seconds). The range is 1-90

1-90 seconds

Command Mode

Global Config

Default

15s

Usage

None

Examples

This example shows how to set UDLD message interval to 5 seconds:

Switch# configure terminal
Switch(config)# udld message interval 5

Related Commands

show udld

13.7.4. udld reset

Command Purpose

Use this command to reset the interfaces disabled by UDLD.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

udld reset

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This example shows how to reset interfaces disabled by UDLD:

Switch udld reset

Related Commands

None

13.7.5. show udld

Command Purpose

Use this command to show UDLD information of interfaces.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

show udld (IFNAME| )

Parameter

Parameter Description

Parameter Value

IFNAME

Interface name

Support physical ports

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This example shows how to show UDLD information of interface eth-0-1:

Switch# show udld eth-0-1
Interface eth-0-1
---
UDLD mode : aggressive mode
Operational state : Bidirectional
Message interval : 15
Time out interval : 3
Neighbor 1
---
Device ID : 0058.3f08.0360
Port ID : eth-0-2
Device Name : DUT2
Message Interval : 15
Timeout Interval : 3
Link status : Bidirectional
Expiration time : 40

Related Commands

None

13.7.6. show udld neighbors

Command Purpose

Use this command to show information of UDLD neighbors.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

show udld neighbors

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This example shows how to show UDLD neighbor information:

Switch# show udld neighbor
Port Device Name Device ID Port ID Neighbor State
---- ----------- --------- ------- --------------
eth-0-9 DUT2 d4f2.489f.d100 eth-0-9 bidirectional

Related Commands

None

13.7.7. debug udld

Command Purpose

Use this command to debug UDLD.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

debug udld (all|packet|events)

no debug udld (all|packet|events)

Parameter

Parameter Description

Parameter Value

all

Show both packet and events

-

packet

Show packets only

-

events

Show events only

-

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This example shows how to enable UDLD debug for packets:

Switch# debug udld packet

Related Commands

None

13.7.8. show debugging udld

Command Purpose

Use this command to show UDLD debugging status.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

show debugging udld

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This example shows how to show UDLD debugging status:

Switch# show debugging udld

Related Commands

None