#configure terminal | Enter configure mode |
(config)#udld enable | Enable UDLD globally |
(config)# udld message-time 7 | Configure message time for UDLD packets |
(config)#interface eth1 | Enter interface mode |
(config-if)#switchport | Configure the interface as switch port |
(config-if)#udld state enable | Enable UDLD on the interface |
(config-if)udld mode normal | Configure udld mode as normal or aggressive |
(config-if)#commit | Commit config. |
(config-if)#exit | Exit from the interface mode |