Pcornel
Networking · Network & Protocols › Interfaces & Physical Layer

UDLD Unidirectional Link Detection Reference

Cheat sheet · https://pcornel.dk/topic.php?topic=255

Back to the Topic

Answer

UDLD is a Cisco protocol that checks whether a link carries traffic in both directions. If one direction has failed while the link still shows up — or fibres are cross-patched — it err-disables the port.

Remember

Both ends must run UDLD in the same mode. Normal mode acts only on positive evidence of a one-way link; aggressive mode also shuts the port when the neighbour falls silent. Check the fibre pair with the transceiver readings before resetting the port.

First checks

  • show udld <interface> — mode, state (bidirectional, undetermined, unidirectional) and the neighbour seen.
  • show udld neighbors — UDLD neighbours per port.
  • show interfaces status err-disabled — ports shut by UDLD.
  • show interfaces <interface> transceiver detail — light levels in each direction.

Commands

show udld [<interface>]
Shows the UDLD mode and operational state for all ports or one port, including the neighbor seen on the link.
show udld neighbors
Display UDLD neighbor and bidirectional relationship information.
show udld interface <interface>
Display interface-specific UDLD operational state.
udld port aggressive
Enable aggressive UDLD behavior on a supported interface.
show udld

Verify in this order

UDLD enabled on both ends in the same mode → each port hears the other → each sees its own identity echoed back → state bidirectional → port stays up

Where it usually breaks

missing peer exchange → explicit versus aged condition → mode/timer response → unresolved cause during recovery

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=255

Confirmation

Confirm action

Continue?