“The purpose of the UDLD protocol is to detect the presence of anomalous conditions in the Layer 2 communication channel, while relying on the mechanisms defined by the IEEE in the 802.3 standard to properly handle conditions inherent to the physical layer.” –rfc5171
NOTE: The default UDLD mode is forward-then-verify.
Enable UDLD:
switch(config-if)# udld
Show commands to validate functionality:
switch# show udld [interface IFACE]
switch(config)# interface 1/1/1
switch(config-if)# udld
switch(config-if)# exit
switch# show udld interface 1/1/1
Interface 1/1/1
Config: enabled
State: inactive
Substate: uninitialized
Link: unblock
Version: aruba os
Mode: forward then verify
Interval: 7000 milliseconds
Retries: 4
Tx: 0 packets
Rx: 0 packets, 0 discarded packets, 0 dropped packets
Port transitions: 0
NOTE: With SFP+ XCVERS, Aruba Switches automatically detect a broken bidirectional link, rendering the port into a down state.