UniDirectional Link Detection Commands
Use these commands to configure UniDirectional Link Detection (UDLD).
The purpose of the UniDirectional Link Detection (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. Use the UDLD commands to detect unidirectional links’ physical ports. UDLD must be enabled on both sides of the link in order to detect a unidirectional link. The UDLD protocol operates by exchanging packets containing information about neighboring devices.
udld enable (Global Config)
M4250
M4350
This command enables UDLD globally on the switch.
| Default | Disabled |
| Format | udld enable |
| Mode | Global Config |
no udld enable (Global Config)
This command disables UDLD globally on the switch.
| Format | no udld enable |
| Mode | Global Config |
udld message time
M4250
M4350
This command configures the interval between UDLD probe messages on ports that are in the advertisement phase. The range is from 1 to 90 seconds.
| Default | 15 seconds |
| Format | udld message time seconds |
| Mode | Global Config |
udld timeout interval
M4250
M4350
This command configures the time interval after which UDLD link is considered to be unidirectional. The range is from 3 to 60 seconds.
| Default | 5 seconds |
| Format | udld timeout interval seconds |
| Mode | Global Config |
udld enable (Interface Config)
M4250
M4350
This command enables UDLD on the specified interface.
| Default | disable |
| Format | udld enable |
| Mode | Interface Config |
no udld enable (Interface Config)
This command disables UDLD on the specified interface.
| Format | no udld enable |
| Mode | Interface Config |
udld reset
M4250
M4350
This command resets all interfaces that have been shutdown by UDLD.
| Default | None |
| Format | udld reset |
| Mode | Privileged EXEC |
udld port
M4250
M4350
This command selects the UDLD mode operating on this interface. If the aggressive keyword is not entered, the port operates in normal mode.
| Default | normal |
| Format | udld port [aggressive] |
| Mode | Interface Config |
show udld
M4250
M4350
This command displays either the global settings of UDLD or the UDLD settings for the specified interface. If you enter the all keyword, the command output displays information for all ports. If you enter the internal keyword, the command output displays UDLD statistics. To specify an actual interface or port, do the following:
- For an M4250 series switch, use the argument slot/port.
- For an M4350 series switch, use the argument unit/slot/port, as shown in the command description and format.
| Format | show udld [unit/slot/port | all | internal] |
| Mode |
User EXEC Privileged EXEC |
If you do not enter a value for the unit/slot/port parameter, the command output displays the fields that are shown in the following table.
| Parameter | Description |
|---|---|
| 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) before making a decision that the link is unidirectional. |
If you enter a value for the unit/slot/port parameter or you use the all keyword, the command output displays the fields that are shown in the following table.
| Parameter | Description |
|---|---|
| Port | The identifying port of the interface. |
| Admin Mode | The administrative mode of UDLD configured on this interface. This is either Enabled or Disabled. |
| UDLD Mode | The UDLD mode configured on this interface. This is either Normal or Aggressive. |
| UDLD Status |
The status of the link as determined by UDLD. The options are:
|
Command example:
The following output displays after you enable UDLD and configure nondefault interval values:
(NETGEAR Switch) #show udld
Admin Mode..................................... Enabled
Message Interval............................... 13
Timeout Interval............................... 31
Command example:
(NETGEAR Switch) #show udld 0/1
Port Admin Mode UDLD Mode UDLD Status
----- ---------- ----------- --------------
0/1 Enabled Normal Not Applicable
Command example:
(NETGEAR Switch) #show udld all
Port Admin Mode UDLD Mode UDLD Status
----- ---------- ----------- --------------
0/1 Enabled Normal Shutdown
0/2 Enabled Normal Undetermined
0/3 Enabled Normal Bidirectional
0/4 Enabled Normal Not Applicable
0/5 Enabled Normal Not Applicable
0/6 Enabled Normal Not Applicable
0/7 Enabled Normal Not Applicable
0/8 Enabled Normal Shutdown
0/9 Enabled Normal Not Applicable
0/10 Enabled Normal Not Applicable
0/11 Enabled Normal Not Applicable
0/12 Enabled Normal Undetermined
0/13 Enabled Normal Bidirectional
0/14 Disabled Normal Not Applicable
0/15 Disabled Normal Not Applicable
0/16 Disabled Normal Not Applicable
0/17 Disabled Normal Not Applicable
0/18 Disabled Normal Not Applicable
0/19 Disabled Normal Not Applicable
0/20 Disabled Normal Not Applicable