Unidirectional Link Detection Commands
Use these M4500 CLI commands to configure Unidirectional Link Detection (UDLD) globally and per port, set timers, and display UDLD status.
This section describes the commands you use to configure and display Unidirectional Link Detection (UDLD). The purpose of the UDLD feature is to detect and avoid unidirectional links. A unidirectional link is a forwarding anomaly in a Layer 2 communication channel in which a bi-directional link stops passing traffic in one direction.
udld enable (Global Config)
Use this command to enable UDLD globally on the switch.
| Default | Disable |
| Format | udld enable |
| Mode | Global Config |
no udld enable (Global Config)
Use this command to disable UDLD globally on the switch.
| Format | no udld enable |
| Mode | Global Config |
udld message time
Use this command to configure the interval value (in seconds) between UDLD probe messages on ports that are in the advertisement phase.
| Default | 15 |
| Format | udld message time <7-90> |
| Mode | Global Config |
no udld message time
For the interval between UDLD probe messages on ports that are in the advertisement phase, use this command to restore the interval value to the default value.
| Format | no udld message time |
| Mode | Global Config |
udld timeout interval
Use this command to configure the time interval value (in seconds) after which the UDLD link is considered to be unidirectional.
| Default | 5 |
| Format | udld timeout interval <5-60> |
| Mode | Global Config |
no udld timeout interval
Use this command to restore the time interval value after which the UDLD link is considered to be unidirectional to the default value.
| Format | no udld timeout interval |
| Mode | Global Config |
udld enable (Interface Config)
Use this command to enable UDLD on the specified interface.
| Default | Disable |
| Format | udld enable |
| Mode | Interface Config |
no udld enable (Interface Config)
Use this command to disable UDLD on the specified interface.
| Format | no udld enable |
| Mode | Interface Config |
udld port
Use this command to select the UDLD mode operating on this interface.
| Default | normal |
| Format | udld port [aggressive] |
| Mode | Interface Config |
udld reset
Use this command to reset all interfaces that have been shutdown by UDLD.
| Format | udld reset |
| Mode | Privileged EXEC |
show udld
Use this command to display the global settings of UDLD. If you specify a slot and port, the command displays the UDLD setting for the specified slot and port.
| Format | show udld [slot/port | all] |
| Mode |
Privileged EXEC User EXEC |
Display Message for the global settings
| Parameter | Definition |
|---|---|
| Admin Mode | The global administrative mode of UDLD. |
| Message Interval | The time period (in seconds) between the transmission of UDLD probe packets. |
| Timeout Interval | The time period (in seconds) between the decision that the link is unidirectional. |
Example: The following example shows the CLI display output for the command show udld.
(M4500-32C) #show udld
Admin Mode..................................... Enabled
Message Interval............................... 15
Timeout Interval............................... 5
Display Message for a specified slot and port
| Parameter | Definition |
|---|---|
| Port | The identifying port of the interface. |
| Admin Mode | The administrative mode of UDLD configured on this interface. The mode is either enabled or disabled. |
| UDLD Mode | The UDLD mode configured on this interface. The mode is either normal or aggressive. |
| UDLD Status |
The status of the link as determined by UDLD. The options are: Undetermined – UDLD has not collected information to determine the state of the link. Not applicable – UDLD is disabled, either globally or on the port. Shutdown – UDLD has detected a unidirectional link and shutdown the port. That is, the port is in an errDisabled state. Bidirectional – UDLD has detected a bidirectional link. Undetermined (Link Down) – The port would transition into this state when the port link physically goes down due to any reasons other than the port has been put into D-Disable mode by the UDLD protocol on switch. |
Example: The following example shows the CLI display output for the command show udld 0/3.
(M4500-32C) #show udld 0/3
Port Admin Mode UDLD Mode UDLD Status
------- ---------- ----------- --------------
0/3 Enabled Aggressive Bidirectional
Host device ID: NTGROZ534000A
Host port ID: 0/3
Echo entry 1
--------------
Time-To-Live: 39
Neighbor echo 1 device: NTGROZ5200014
Neighbor echo 1 port: 0/3
Message Interval: 15
Timeout Interval: 5
Neighbor Device Name: SW2