|
|
This publication describes how to configure the UniDirectional Link Detection (UDLD) protocol in Release 12.1(2)E and later of the Cisco IOS for the Catalyst 6000 Family Switches product.
This publication consists of these sections:
The UDLD protocol allows devices connected through fiber-optic or copper (for example, Category 5 cabling) Ethernet cables to monitor the physical configuration of the cables and detect when a unidirectional link exists. When a unidirectional link is detected, UDLD shuts down the affected interface and alerts the user. Unidirectional links can cause a variety of problems, including spanning tree topology loops.
UDLD is a Layer 2 protocol that works with the Layer 1 mechanisms to determine the physical status of a link. At Layer 1, autonegotiation takes care of physical signaling and fault detection. UDLD performs tasks that autonegotiation cannot perform, such as detecting the identities of neighbors and shutting down misconnected interfaces. When you enable both autonegotiation and UDLD, Layer 1 and Layer 2 detections work together to prevent physical and logical unidirectional connections and the malfunctioning of other protocols.
A unidirectional link occurs whenever traffic transmitted by the local device over a link is received by the neighbor but traffic transmitted from the neighbor is not received by the local device. If one of the fiber strands in a pair is disconnected, as long as autonegotiation is active, the link does not stay up. In this case, the logical link is undetermined, and UDLD does not take any action. If both fibers are working normally from a Layer 1 perspective, then UDLD at Layer 2 determines whether those fibers are connected correctly and whether traffic is flowing bidirectionally between the right neighbors. This check cannot be performed by autonegotiation, because autonegotiation operates at Layer 1.
The switch periodically transmits UDLD packets to neighbor devices on interfaces with UDLD enabled. If the packets are echoed back within a specific time frame and they are lacking a specific acknowledgment (echo), the link is flagged as unidirectional and the interface is shut down. Devices on both ends of the link must support UDLD in order for the protocol to successfully identify and disable unidirectional links.
Figure 23-1 shows an example of a unidirectional link condition. Switch B successfully receives traffic from Switch A on the interface. However, Switch A does not receive traffic from Switch B on the same interface. UDLD detects the problem and disables the interface.

Table 23-2 shows the default UDLD configuration.
| Feature | Default Value |
|---|---|
UDLD global enable state | Globally disabled |
UDLD per-interface enable state for fiber-optic media | Enabled on all Ethernet fiber-optic interfaces |
UDLD per-interface enable state for twisted-pair (copper) media | Disabled on all Ethernet 10/100 and 1000BaseTX interfaces |
These sections describe how to configure UDLD:
To enable UDLD globally on all fiber-optic interfaces on the switch, perform this task:
| Command | Purpose |
|---|---|
Router(config)# [no] udld enable | Enable UDLD globally on fiber-optic interfaces on the switch. Use the no udld enable command to globally disable UDLD on fiber-optic interfaces. Note---This command only configures fiber-optic interfaces. Individual interface configuration overrides the setting of this command. |
To enable UDLD on individual interfaces, perform this task:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| Router(config-if)# udld enable | Enable UDLD on a specific interface. On a fiber-optic interface, this command overrides the udld enable global configuration command setting. | ||
| Router# show udld interface | Verify the configuration. |
To disable UDLD on individual non-fiber-optic interfaces, perform this task:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| Router(config-if)# no udld enable | On non-fiber-optic interfaces, the no udld enable command disables UDLD. Note---On fiber-optic interfaces, the no udld enable command reverts the interface configuration to the udld enable global configuration command setting. | ||
| Router# show udld interface | Verify the configuration. |
To disable UDLD on individual fiber-optic interfaces, perform this task:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| Router(config-if)# udld disable | Use the udld disable command to disable UDLD on a fiber-optic interface. Use the no udld disable command to revert to the udld enable global configuration command setting. Note---This command is not supported on non-fiber-optic interfaces. | ||
| Router# show udld interface | Verify the configuration. |
To reset all interfaces that have been shutdown by UDLD, perform this task:
| Command | Purpose |
|---|---|
Router(config)# udld reset | Use the udld reset command to reset all interfaces that have been shutdown by UDLD. |
The following documents are available for the Catalyst 6000 family switches running the Cisco IOS for the Catalyst 6000 Family of Switches product:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/ios127xe/index.htm
You can access the most current Cisco documentation on the World Wide Web at http://www.cisco.com, http://www-china.cisco.com, or http://www-europe.cisco.com.
Cisco documentation and additional literature are available in a CD-ROM package, which ships with your product. The Documentation CD-ROM is updated monthly. Therefore, it is probably more current than printed documentation. The CD-ROM package is available as a single unit or as an annual subscription.
Registered CCO users can order the Documentation CD-ROM and other Cisco Product documentation through our online Subscription Services at http://www.cisco.com/cgi-bin/subcat/kaojump.cgi.
Nonregistered CCO users can order documentation through a local account representative by calling Cisco's corporate headquarters (California, USA) at 408 526-4000 or, in North America, call 800 553-NETS (6387).
Cisco provides Cisco Connection Online (CCO) as a starting point for all technical assistance. Warranty or maintenance contract customers can use the Technical Assistance Center. All customers can submit technical feedback on Cisco documentation using the web, e-mail, a self-addressed stamped response card included in many printed docs, or by sending mail to Cisco.
Cisco continues to revolutionize how business is done on the Internet. Cisco Connection Online is the foundation of a suite of interactive, networked services that provides immediate, open access to Cisco information and resources at anytime, from anywhere in the world. This highly integrated Internet application is a powerful, easy-to-use tool for doing business with Cisco.
CCO's broad range of features and services helps customers and partners to streamline business processes and improve productivity. Through CCO, you will find information about Cisco and our networking solutions, services, and programs. In addition, you can resolve technical issues with online support services, download and test software packages, and order Cisco learning materials and merchandise. Valuable online skill assessment, training, and certification programs are also available.
Customers and partners can self-register on CCO to obtain additional personalized information and services. Registered users may order products, check on the status of an order and view benefits specific to their relationships with Cisco.
You can access CCO in the following ways:
You can e-mail questions about using CCO to cco-team@cisco.com.
The Cisco Technical Assistance Center (TAC) is available to warranty or maintenance contract customers who need technical assistance with a Cisco product that is under warranty or covered by a maintenance contract.
To display the TAC web site that includes links to technical support information and software upgrades and for requesting TAC support, use www.cisco.com/techsupport.
To contact by e-mail, use one of the following:
| Language | E-mail Address |
|---|---|
English | tac@cisco.com |
Hanzi (Chinese) | chinese-tac@cisco.com |
Kanji (Japanese) | japan-tac@cisco.com |
Hangul (Korean) | korea-tac@cisco.com |
Spanish | tac@cisco.com |
Thai | thai-tac@cisco.com |
In North America, TAC can be reached at 800 553-2447 or 408 526-7209. For other telephone numbers and TAC e-mail addresses worldwide, consult the following web site: http://www.cisco.com/warp/public/687/Directory/DirTAC.shtml.
If you are reading Cisco product documentation on the World Wide Web, you can submit technical comments electronically. Click Feedback in the toolbar and select Documentation. After you complete the form, click Submit to send it to Cisco.
You can e-mail your comments to bug-doc@cisco.com.
To submit your comments by mail, for your convenience many documents contain a response card behind the front cover. Otherwise, you can mail your comments to the following address:
Cisco Systems, Inc.
Document Resource Connection
170 West Tasman Drive
San Jose, CA 95134-9883
We appreciate and value your comments.

![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Fri Jul 7 08:37:08 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.