We had a problem with a C2960.
Someone grab a cable and added to two switch port in the same switch.
The switch disable our other two trunk ports with udld configure.
How do I configure the switch to disable only the two loop port and not the trunk ports?
See my prevous post.
Another way - would be:-
spanning-tree portfast bpduguard default, this will disable the specific port where the loop was deteted.
And to save you time, checking the ports and re-enabling them after a loop has been removed:-
errdisable recovery cause bpduguard
errdisable recovery cause udld
errdisable recovery interval ## (seconds)