U Commands

udld (Ethernet)

To enable and configure the Unidirectional Link Detection (UDLD) protocol on an Ethernet interface, use the udld command. To disable UDLD, use the no form of this command.

udld { aggressive | disable | enable }

no udld { aggressive | disable | enable }

Syntax Description

aggressive

Enables UDLD in aggressive mode on the interface.

disable

Disables UDLD on the interface.

enable

Enables UDLD in normal mode on the interface.

Command Default

None

Command Modes

Interface configuration mode

Command History

Release

Modification

6.0(2)N1(1)

This command was introduced.

Usage Guidelines

You can configure normal or aggressive UDLD modes for an Ethernet interface. Before you can enable a UDLD mode for an interface, you must make sure that UDLD is enabled on the switch. UDLD must also be enabled on the other linked interface and its device.

To use the normal UDLD mode on a link, you must configure one of the ports for normal mode and configure the port on the other end for the normal or aggressive mode. To use the aggressive UDLD mode, you must configure both ends of the link for aggressive mode.

Examples

This example shows how to enable the normal UDLD mode for an Ethernet port:

switch# configure terminal
switch(config)# interface ethernet 1/1
switch(config-if)# udld enable

This example shows how to enable the aggressive UDLD mode for an Ethernet port:

switch(config-if)# udld aggressive

This example shows how to disable UDLD for an Ethernet port:

switch(config-if)# udld disable

Related Commands

Command

Description

show udld

Displays the administrative and operational UDLD status.