Концепция:
enable loopdetect
config loopdetect recover_timer 0
config loopdetect interval 300
config loopdetect port 1-22 state enabled
config loopdetect port 23-28 state disabled
enable stp
config stp version rstp
config stp fbpdu enable
config stp trap new_root enable topo_change enable
config stp ports 1-21 externalCost auto edge true p2p auto state enable lbd enable
config stp ports 1-21 fbpdu disable
config stp ports 1-21 restricted_role true
config stp ports 1-21 restricted_tcn true
config stp ports 22-24 state disable lbd disable
config stp ports 22-24 fbpdu disable
config stp ports 25-28 externalCost auto edge false p2p auto state enable lbd disable
config stp ports 25-28 fbpdu enable
config stp ports 25-28 restricted_role false
config stp ports 25-28 restricted_tcn false
На клиентских портах LBD нужен для выявления петлей, STP - выявление петлей между портами.
21-24 служебные порты для датчиков
Данные настройки для коммутатора DES-1228/ME и с настройками оного проблем не возникает.
Для коммутатора DES-3200-28 ситуация другая. Исходя из
темы, службы LBD и STP одновременно на порту быть включенными не могут, поэтому нужно разделять. Так и получается, при перенастройке установленного на сети коммутатора. Однако, если настраивается чистый свитч, то службы LBD и STP могут быть включенными одновременно.
Пример
# LOOP_DETECT
enable loopdetect
config loopdetect recover_timer 60
config loopdetect interval 10
config loopdetect mode port-based
config loopdetect trap none
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 disabled
config loopdetect ports 23 state disabled
config loopdetect ports 24 state disabled
config loopdetect ports 25 state disabled
config loopdetect ports 26 state disabled
config loopdetect ports 27 state disabled
config loopdetect ports 28 state disabled
# STP
enable stp
config stp version rstp
config stp maxage 6 maxhops 6 forwarddelay 5 txholdcount 4 fbpdu enable hellotime 2
config stp priority 32768 instance_id 0
config stp ports 1 externalCost auto edge true p2p auto state enable
config stp mst_ports 1 instance_id 0 internalCost auto priority 128
config stp ports 1 fbpdu disable
config stp ports 1 restricted_role true
config stp ports 1 restricted_tcn true
config stp ports 2 externalCost auto edge true p2p auto state enable
config stp mst_ports 2 instance_id 0 internalCost auto priority 128
config stp ports 2 fbpdu disable
config stp ports 2 restricted_role true
config stp ports 2 restricted_tcn true
config stp ports 3 externalCost auto edge true p2p auto state enable
config stp mst_ports 3 instance_id 0 internalCost auto priority 128
config stp ports 3 fbpdu disable
config stp ports 3 restricted_role true
config stp ports 3 restricted_tcn true
config stp ports 4 externalCost auto edge true p2p auto state enable
config stp mst_ports 4 instance_id 0 internalCost auto priority 128
config stp ports 4 fbpdu disable
config stp ports 4 restricted_role true
config stp ports 4 restricted_tcn true
config stp ports 5 externalCost auto edge true p2p auto state enable
config stp mst_ports 5 instance_id 0 internalCost auto priority 128
config stp ports 5 fbpdu disable
config stp ports 5 restricted_role true
config stp ports 5 restricted_tcn true
config stp ports 6 externalCost auto edge true p2p auto state enable
config stp mst_ports 6 instance_id 0 internalCost auto priority 128
config stp ports 6 fbpdu disable
config stp ports 6 restricted_role true
config stp ports 6 restricted_tcn true
config stp ports 7 externalCost auto edge true p2p auto state enable
config stp mst_ports 7 instance_id 0 internalCost auto priority 128
config stp ports 7 fbpdu disable
config stp ports 7 restricted_role true
config stp ports 7 restricted_tcn true
config stp ports 8 externalCost auto edge true p2p auto state enable
config stp mst_ports 8 instance_id 0 internalCost auto priority 128
config stp ports 8 fbpdu disable
config stp ports 8 restricted_role true
config stp ports 8 restricted_tcn true
config stp ports 9 externalCost auto edge true p2p auto state enable
config stp mst_ports 9 instance_id 0 internalCost auto priority 128
config stp ports 9 fbpdu disable
config stp ports 9 restricted_role true
config stp ports 9 restricted_tcn true
config stp ports 10 externalCost auto edge true p2p auto state enable
config stp mst_ports 10 instance_id 0 internalCost auto priority 128
config stp ports 10 fbpdu disable
config stp ports 10 restricted_role true
config stp ports 10 restricted_tcn true
config stp ports 11 externalCost auto edge true p2p auto state enable
config stp mst_ports 11 instance_id 0 internalCost auto priority 128
config stp ports 11 fbpdu disable
config stp ports 11 restricted_role true
config stp ports 11 restricted_tcn true
config stp ports 12 externalCost auto edge true p2p auto state enable
config stp mst_ports 12 instance_id 0 internalCost auto priority 128
config stp ports 12 fbpdu disable
config stp ports 12 restricted_role true
config stp ports 12 restricted_tcn true
config stp ports 13 externalCost auto edge true p2p auto state enable
config stp mst_ports 13 instance_id 0 internalCost auto priority 128
config stp ports 13 fbpdu disable
config stp ports 13 restricted_role true
config stp ports 13 restricted_tcn true
config stp ports 14 externalCost auto edge true p2p auto state enable
config stp mst_ports 14 instance_id 0 internalCost auto priority 128
config stp ports 14 fbpdu disable
config stp ports 14 restricted_role true
config stp ports 14 restricted_tcn true
config stp ports 15 externalCost auto edge true p2p auto state enable
config stp mst_ports 15 instance_id 0 internalCost auto priority 128
config stp ports 15 fbpdu disable
config stp ports 15 restricted_role true
config stp ports 15 restricted_tcn true
config stp ports 16 externalCost auto edge true p2p auto state enable
config stp mst_ports 16 instance_id 0 internalCost auto priority 128
config stp ports 16 fbpdu disable
config stp ports 16 restricted_role true
config stp ports 16 restricted_tcn true
config stp ports 17 externalCost auto edge true p2p auto state enable
config stp mst_ports 17 instance_id 0 internalCost auto priority 128
config stp ports 17 fbpdu disable
config stp ports 17 restricted_role true
config stp ports 17 restricted_tcn true
config stp ports 18 externalCost auto edge true p2p auto state enable
config stp mst_ports 18 instance_id 0 internalCost auto priority 128
config stp ports 18 fbpdu disable
config stp ports 18 restricted_role true
config stp ports 18 restricted_tcn true
config stp ports 19 externalCost auto edge true p2p auto state enable
config stp mst_ports 19 instance_id 0 internalCost auto priority 128
config stp ports 19 fbpdu disable
config stp ports 19 restricted_role true
config stp ports 19 restricted_tcn true
config stp ports 20 externalCost auto edge true p2p auto state enable
config stp mst_ports 20 instance_id 0 internalCost auto priority 128
config stp ports 20 fbpdu disable
config stp ports 20 restricted_role true
config stp ports 20 restricted_tcn true
config stp ports 21 externalCost auto edge true p2p auto state enable
config stp mst_ports 21 instance_id 0 internalCost auto priority 128
config stp ports 21 fbpdu disable
config stp ports 21 restricted_role true
config stp ports 21 restricted_tcn true
config stp ports 22 externalCost auto edge false p2p auto state disable
config stp mst_ports 22 instance_id 0 internalCost auto priority 128
config stp ports 22 fbpdu disable
config stp ports 22 restricted_role true
config stp ports 22 restricted_tcn true
config stp ports 23 externalCost auto edge false p2p auto state disable
config stp mst_ports 23 instance_id 0 internalCost auto priority 128
config stp ports 23 fbpdu disable
config stp ports 23 restricted_role true
config stp ports 23 restricted_tcn true
config stp ports 24 externalCost auto edge false p2p auto state disable
config stp mst_ports 24 instance_id 0 internalCost auto priority 128
config stp ports 24 fbpdu disable
config stp ports 24 restricted_role true
config stp ports 24 restricted_tcn true
config stp ports 25 externalCost auto edge false p2p auto state enable
config stp mst_ports 25 instance_id 0 internalCost auto priority 128
config stp ports 25 fbpdu enable
config stp ports 25 restricted_role false
config stp ports 25 restricted_tcn false
config stp ports 26 externalCost auto edge false p2p auto state enable
config stp mst_ports 26 instance_id 0 internalCost auto priority 128
config stp ports 26 fbpdu enable
config stp ports 26 restricted_role false
config stp ports 26 restricted_tcn false
config stp ports 27 externalCost auto edge false p2p auto state enable
config stp mst_ports 27 instance_id 0 internalCost auto priority 128
config stp ports 27 fbpdu disable
config stp ports 27 restricted_role false
config stp ports 27 restricted_tcn false
config stp ports 28 externalCost auto edge false p2p auto state enable
config stp mst_ports 28 instance_id 0 internalCost auto priority 128
config stp ports 28 fbpdu disable
config stp ports 28 restricted_role false
config stp ports 28 restricted_tcn false
config stp mst_config_id name 34:08:04:5A:47:F0 revision_level 0
Получается совместить эти службы можно на чистом коммутаторе. Тогда вопрос, как их совместить на настроеном коммутаторе?