If a Switch has multiple paths to reach the Root Bridge (Switch), it must select one path and the associated port as the Root Port. Following are the different steps for selecting the Root Bridge (Switch).
• If there are two or more paths to reach the Root Bridge (Switch) select the path with the lowest accumulated path cost.
• Select the neighboring switch with the lowest Switch ID value to reach the Root Bridge (Switch).
• Select the port with the lowest Port Priority value, if you have multiple paths to reach the Root Bridge (Switch) via same neighbor switch.
• If all the ports are configured with same priority number (32 by default), select the lowest port number on the switch.