Troubleshooting Spanning Tree (STP) connection issues
Look at the Root Address and Bridge Address values in the core switch.Root Address is the MAC address of the currently elected root bridge device.Bridge Address is the MAC address of the switch you're currently logged in to.These should match in the core switch. If they do not, log in to the switch acting as the Bridge Address and adjust the Bridge Priority.
If these fields do not match, the core switch is not the root bridge. This means STP may be out of sync and causing issues. Check you're STP configuration and ensure your Bridge Priority is set properly on all of the switches in the system.
Specific devices falling offline
If a specific device is falling offline, check the logs to see if the port state is continuously switching between Up and Down. This is also known as flapping.
To resolve the issue, enable Edge Port on that specific switchport and notate it in the project notes.
Caution: Disable Edge Port if you change the connected device on the switchport. Failure to do so may cause a switching loop.