04-21-2008 05:02 AM - edited 03-05-2019 10:30 PM
Hi all, if I plug a port into another port in the same switch, can anyone tell me what spanning tree does to stop the loop and how it identifies it on the same switch ?
04-21-2008 05:11 AM
It will receive a BPDU with its own bridge ID in it and will block one of the ports (with lowest MAC address I think).
04-21-2008 05:27 AM
Hi Victor,
The blocked port would be the port with the highest MAC address, and the forwarding port would be the one with the lowest MAC address.
BR,
Mohammed Mahmoud.
04-21-2008 06:28 AM
Hi Mohammed
thank you very much. This particular bit still confues me sometimes.
Regards,
Victor.
04-21-2008 06:45 AM
Hi Victor,
You are very welcomed, as a general rule, switching stuff prefers the lower values, and routing stuff prefers the higher values.
BR,
Mohammed Mahmoud.
04-21-2008 07:03 AM
Aha! :) Now this is the one easy to remember.
Thank you.
Regards,
04-21-2008 07:29 AM
Just for the record, the mac address referred to earlier is in fact the mac address from the bridge. A port is identified by a 16 bit port id on a given bridge. The bridge itself has an 64 bit bridge id. If both ports are on the same bridge, the tie breaker is this 16 bit port id. In the port id, the 4 bits with the higher weight are the port priority (in the latest standard) and allow the user to influence the result.
Regards,
Francois
04-21-2008 07:41 AM
Hi Francois,
Absolutely agree with you, and to complement the fact, this priority value can be edited per port via the "spanning-tree port-priority x" command where x is the port priority in increments of 16.
BR,
Mohammed Mahmoud.
04-21-2008 07:32 AM
Victor,
Totally Agree :)
BR,
Mohammed Mahmoud.
04-21-2008 09:45 PM
& if the port priorities are left default, then tie breaker would be lowest port id (physical port no.).
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide