10-15-2019 08:25 AM
I'm doing a lab on STP. The topology has 2 switches with a redundant up-link between them and 2 servers (one connected to each switch)
Some questions asked were:
What is the function of a root port? So far I've only managed to find that it's the port a switch chooses for its best path to the root switch.
Why can't there be more than one root port for a switch? I think it might be because there can only be one "best" path to the root switch
Why does one switch not have a root port? After issuing the show spanning-tree command on both switches, only one of them has a root port. Why is this?
Solved! Go to Solution.
10-15-2019 10:05 AM
Hi,
What is the function of a root port? So far I've only managed to find that it's the port a switch chooses for its best path to the root switch.
Ans: Root Port is a single selected port on a Switch, other than Root Switch, with the least Path Cost to reach the Root Bridge.
Why can't there be more than one root port for a switch? I think it might be because there can only be one "best" path to the root switch
Ans: If there will two root port then it will root cause of the Layer 2 loop in the network.
Why does one switch not have a root port? After issuing the show spanning-tree command on both switches, only one of them has a root port. Why is this?
Ans: All the ports on a Root Bridge (Root Switch) are Designated Port and there is no Root Port on a Root Bridge (Root Switch). So one switch is not showing any root port.
10-15-2019 10:29 AM - edited 10-15-2019 10:32 AM
Hello
@_bmal wrote:
I'm doing a lab on STP. The topology has 2 switches with a redundant up-link between them and 2 servers (one connected to each switch)
Some questions asked were:
What is the function of a root port? So far I've only managed to find that it's the port a switch chooses for its best path to the root switch.
correct
Why can't there be more than one root port for a switch? I think it might be because there can only be one "best" path to the root switch
It can have root ports all depends if a switch is acting as the stp root for all vlans or certain vlans and of course what stp mode is running (pvst) as an example
Why does one switch not have a root port? After issuing the show spanning-tree command on both switches, only one of them has a root port. Why is this?
thats because in your case that switch is the stp root for all vlans but in certain environments a stp root switch can be also be served an stp root so in that case it will also have root ports towards a stp root for the vlans its not a stp root
10-15-2019 09:23 AM
here is the good description to understand how spanning tree root election and root port.
https://community.cisco.com/t5/switching/stp-root-port-vs-designated-port/m-p/1517842
10-15-2019 10:05 AM
Hi,
What is the function of a root port? So far I've only managed to find that it's the port a switch chooses for its best path to the root switch.
Ans: Root Port is a single selected port on a Switch, other than Root Switch, with the least Path Cost to reach the Root Bridge.
Why can't there be more than one root port for a switch? I think it might be because there can only be one "best" path to the root switch
Ans: If there will two root port then it will root cause of the Layer 2 loop in the network.
Why does one switch not have a root port? After issuing the show spanning-tree command on both switches, only one of them has a root port. Why is this?
Ans: All the ports on a Root Bridge (Root Switch) are Designated Port and there is no Root Port on a Root Bridge (Root Switch). So one switch is not showing any root port.
10-15-2019 10:29 AM - edited 10-15-2019 10:32 AM
Hello
@_bmal wrote:
I'm doing a lab on STP. The topology has 2 switches with a redundant up-link between them and 2 servers (one connected to each switch)
Some questions asked were:
What is the function of a root port? So far I've only managed to find that it's the port a switch chooses for its best path to the root switch.
correct
Why can't there be more than one root port for a switch? I think it might be because there can only be one "best" path to the root switch
It can have root ports all depends if a switch is acting as the stp root for all vlans or certain vlans and of course what stp mode is running (pvst) as an example
Why does one switch not have a root port? After issuing the show spanning-tree command on both switches, only one of them has a root port. Why is this?
thats because in your case that switch is the stp root for all vlans but in certain environments a stp root switch can be also be served an stp root so in that case it will also have root ports towards a stp root for the vlans its not a stp root
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