![]() |
Cisco
|
|||
| Home > Work With My Switches > Cisco Catalyst Switches > Configure UDLD on a Catalyst Switch | ||||||||||||
IntroductionThis document provides instructions on how to configure UniDirectional Link Detection (UDLD) protocol on your Catalyst Switches. This procedure applies to Cisco Catalyst switches running Cisco IOS software or Catalyst OS software. RequirementsTo perform the steps described in this document, you need these items:
UDLD OverviewUniDirectional Link Detection (UDLD) is a Cisco proprietary data link layer protocol to monitor the physical configuration of the cables and detect unidirectional links. A unidirectional link occurs, whenever traffic is transmitted by the local device over a link that is received by the neighbor but, traffic from the neighbor is not received by the local device. UDLD also helps in detecting mis-configured links and complements the Spanning Tree Protocol (STP) that is used to eliminate layer 2 loops. All connected devices must support UDLD for the protocol to successfully identify and disable unidirectional links. When UDLD detects a unidirectional link, it administratively shuts down the affected port and gives an alert. UDLD works with the Layer 1 mechanism to determine the physical status of a link and it performs tasks that autonegotiation could not perform, such as detecting the identities of neighbors and shutting down the misconnected interfaces. UDLD is disabled globally by default. UDLD operates in two modes: normal mode and aggressive mode. In normal mode, a UDLD capable port A periodically sends a UDLD probe to port B. If port B is not UDLD capable, no unidirectional link detection occurs. If both devices are UDLD capables and if bi-directional connectivity exists, probe messages travel in both directions. UDLD protocol attempts to synchronize the devices by sending echo messages to the peer port and waits for answer during the detection window. If the unidirectional traffic is detected when the port link is still up (port A no longer sends traffic to port B), port B enters errdisable mode. Port A is marked Undetermined but does not enter errdisable mode. It continues to operate under its current STP status. Normal mode is the default mode for UDLD operation. In aggressive mode, UDLD determines whether the traffic is flowing bidirectionally between the correct neighbors. If port A loses its neighbor connectivity, it actively tries to re-establish the relationship by sending a probe to port B. If port B does not respond, it is considered unidirectional. When UDLD detects a bidirectional to unidirectional transition it brings the link to errdisable state. UDLD could also detect a unidirectional link when one of these problems exists:
In these cases, UDLD shuts down the affected interface. UDLD learns about the other UDLD-capable neighbors by periodically sending a hello packet (also called an advertisement or probe) on every active interface to keep each device informed about its neighbors. This method is known as Neighbor database maintenance. In Event-driven detection and echoing method, UDLD relies on echoing as its detection mechanism. Whenever a UDLD device learns about a new neighbor or receives a resynchronization request from an out-of-sync neighbor, it restarts the detection window on its side of the connection and sends echo messages in reply.
Connect to the SwitchFollow these steps to connect your PC to the switch for configuration:
Enable UDLD on a Switch running Cisco IOS softwareUDLD could be enabled globally (only for fiber optics ports) or on per-interface basis. The interface settings overrides the global settings if both are configured. Follow these steps to enable UDLD globally:
To enable UDLD on per-interface basis, follow these steps:
Enable UDLD on a Switch running Catalyst OS softwareFollow these steps to enable UDLD:
Next StepYou have now set up UDLD on your switch. To make further changes to your switch, refer to the Switch Support Page. To make further changes to your network, refer to the Configuration Overview page. Troubleshoot the ProcedureThis section provides information about common problems that you may encounter. If this information does not solve your problem, contact the SMB Technical Assistance Center (SMB TAC) for assistance.
Related Information |
||||||||||||
![]() |
![]() |