Интересна логика работы loopdetect.
Проверялось на тестовом стенде.
Часть конфига 3526, касающаяся loopbackdetect. STP, SafeGuard отключены.
Прошивка
Command: show firmware information
ID Version Size(B) Update Time From User
-- -------- ------- ------------------- ------------------ ---------------
*1 5.01-B15 2962732 2008/01/15 19:37:36 *.*.*.* (S) SNMPUser
2 (Empty)
# LOOP_DETECT
enable loopdetect
config loopdetect recover_timer 60
config loopdetect interval 3
config loopdetect mode port-based
config loopdetect ports 1 state enabled
config loopdetect ports 2 state enabled
config loopdetect ports 3 state enabled
config loopdetect ports 4 state enabled
config loopdetect ports 5 state enabled
config loopdetect ports 6 state enabled
config loopdetect ports 7 state enabled
config loopdetect ports 8 state enabled
config loopdetect ports 9 state enabled
config loopdetect ports 10 state enabled
config loopdetect ports 11 state enabled
config loopdetect ports 12 state enabled
config loopdetect ports 13 state enabled
config loopdetect ports 14 state enabled
config loopdetect ports 15 state enabled
config loopdetect ports 16 state enabled
config loopdetect ports 17 state enabled
config loopdetect ports 18 state enabled
config loopdetect ports 19 state enabled
config loopdetect ports 20 state enabled
config loopdetect ports 21 state enabled
config loopdetect ports 22 state enabled
config loopdetect ports 23 state enabled
config loopdetect ports 24 state enabled
config loopdetect ports 25 state disabled
config loopdetect ports 26 state disabled
Тест 1. Соединение патчкордом 2 соседних портов 3526. (разумеется не 25 и не 26

)
Кольцо. Загрузка сpu 100 %. Реакции на кольцо 0.
Соединяем еще 2 порта и получаем 2 кольцо. В 1 кольце после этого срабатывает loopbackdetect на 1 из портов. Второе же кольцо остается жить..
Тест 2. К порту подключается неуправляемый свитчик "мыльница".
В мыльнице соединяем 2 порта патчкордом. loopbackdetect срабатывает на ура.
Тест 3. Подключаем к одному из портов половинку патчкорда (с 1 джеком) и соединенными оранжевым-белооранжевым и зеленым-белозеленым проводами. loopbackdetect срабатывает нормально.
В принципе можно включить safeguard на свитче. По идее частично это поможет в 1 тесте, при загрузке процессора на 100 %, но кольцо между портами останется.
Интересна логика работы данной функции в 1 тесте.