OcNOS-SP : Layer 3 Guide : Fundamental Layer 3 Command Reference : Unidirectional Link Detection Commands
Unidirectional Link Detection Commands
This section describes the Unidirectional Link Detection (UDLD) commands.
udld
udld
Use this command to enable the UDLD feature globally.
Use no form of this command to disable the UDLD feature globally.
Command Syntax
udld enable
no udld enable
Parameters
None
Default
Disabled
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 5.0.
Examples
(config)#udld enable
 
(config)#no udld enable
udld message-time
Use this command to set the UDLD message interval.
Command Syntax
udld message-time <7-90>
Parameters
<7-90>
Interval time in seconds
Default
15 seconds
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 5.0.
Examples
config)#udld message-time 50
udld mode
Use this command to configure UDLD mode as aggressive or normal.
Command Syntax
udld mode (aggressive | normal)
Parameters
aggressive
Aggressive mode
normal
Normal mode
Default
N/A
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 5.0.
Examples
(config-if)#udld mode aggressive
udld state
Use this command to enable or disable the UDLD feature for an interface.
Command Syntax
udld state (enable | disable)
Parameters
None
Default
Disabled
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 5.0.
Examples
(config)#int xe7
(config-if)#udld state enable
show udld
Use this command to display UDLD statistic for all interface.
Command Syntax
show udld
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 5.0.
Examples
#show udld
UDLD : Enable
Message Interval(sec) : 15
Port UDLD Status Mode Link-Status
--------------------------------------------------
xe7 Enable Normal Bi-Directional
 
Table 3-5 explains the output fields.
Table 3-5: show udld output fields  
Field
Description
UDLD
Whether UDLD is enabled or disabled
Message Interval
Message interval in seconds
Port
Interface name
UDLD Status
Whether UDLD is enabled or disabled on the interface
Mode
Whether the mode is aggressive or normal
Link-Status
State of the link:
Unknown
Loop-Back
Neighbor Mismatch
Unidirectional
Undetermined
Bi-Directional
show udld interface
Use this command to display UDLD settings for particular interface.
Command Syntax
show udld interface IFNAME
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 5.0.
Examples
#show udld interface xe14
UDLD Status : Enable
UDLD Mode : Aggressive
Link-State : Bi-Directional
#
Table 3-6 explains the output fields.
Table 3-6: show udld interface output fields  
Field
Description
UDLD Status
Whether UDLD is enabled or disabled
UDLD Mode
Whether the mode is aggressive or normal
Link-State
State of the link:
Unknown
Loop-Back
Neighbor Mismatch
Unidirectional
Undetermined
Bi-Directional