enabling spanning tree is not always a good idea, maybe it is better to use features like loop protection these days:

example:

interface 1/1/24
description Server-X
no shutdown
no routing
vlan trunk native 1
vlan trunk allowed 1,100,101
loop-protect
loop-protect action do-not-disable

if there is a loop detected you will get log messages like:
<timestamp> .. <WARN> Event|2803|LOG_WARN|AMM|1/1|Loop detected on port lag256

>> make sure that you have some error detection in place that immediately informs you about such events, so that the loop causing device can be identified and disabled

computer2know :: thank you for your visit :: have a nice day :: © 2024