10-28-2024 09:55 AM
When I type the command "sh running-config | section spanning" . It shows the below output. Can anyone explain?
Solved! Go to Solution.
10-29-2024 09:35 PM - edited 10-29-2024 09:36 PM
Not at all there is no loop when you run portfast or not run portfast for port connect to endpoints With stp or with pvst.
If you not run portfast the endpoint (host or server) will little delay to connect, but if run portfast the endpoint quickly connect to network.
MHM
10-30-2024 10:11 AM
Changing between PVST and rapid-PVST doesn't change/impact portfast.
Changing interface portfast, whether done individually per port, or via global setting, impacts PVST or rapid-PVST operation. (How each is impacted is a bit different, as they don't work exactly alike. [In fact, if I remember correctly, portfast was a Cisco feature of PVST that was, more-or-less, incorporated into standard rapid STP's edge port feature, but Cisco continued to use "portfast" to enable rapid STP's edge port feature.])
As to BPDUguard, again, if you want to begin a discussion of other STP features, open a new discussion. I suggest this, because other readers would likely not expect such information based on your OP.
Also, if you're not real knowledgeable about STP, lots of material on the Internet, including on Cisco's main site, that would be more helpful for learning about STP and its options. These forums usually better address specific operational questions or issues. Cisco's learningnetwork.cisco.com is better aimed at generic learning of network technology.
Lastly, you've already marked one reply as the "solution" to your OP. Again, other readers might focus on that ignoring additional side information. So, also again, open a new discussion, and/or try one of the other venues I've suggested.
10-28-2024 10:01 AM
- The 'spanning-tree portfast' commando's are assigned to interfaces , which meant then to be used for end nodes (no networking equipment). Because of the pipe used in the command you can not see the complete outputs ,
M.
10-28-2024 10:42 AM
what are you trying to achieve here ?
your show out put you mentioned include that regex then it will display what ever matched from show run config.
it does not tell you where this configured.
10-28-2024 10:49 AM
"When I type the command "sh running-config | section spanning" . It shows the below output. Can anyone explain?"
Yes, the section command lists any matching line and any indented lines under the matched line.
10-28-2024 12:09 PM
BTW, in your case, believe you'll obtain the same results with "sh running-config | include spanning".
10-28-2024 11:50 AM
This command show spanning tree portfast config under each port.
So it normal you need to tune your command to show the interface config as portfast
MHM
10-29-2024 12:46 AM
So from my understandiing by default cisco switch comes up with pvst mode as stp. So for each access port we need to put the command spanning tree portfast?
10-29-2024 12:59 AM
- It's advisable to use spanning tree portfast for a normal device ; because it then gets faster access to the network ; which can sometimes avoid race conditions such as with obtaining an address through DHCP or NAC solutions.
The command is sometimes also available or equivalent on some platforms with : switchport mode host
M.
10-29-2024 01:05 AM - edited 10-29-2024 02:20 AM
Hi,
For network to work, you don't need pordtfast. However, if you want to faster E2E convergence, enable RPVST instead of default PVST and enable PORTFAST on all access ports facing anything but switches.
In PVST, PORTFAST just transition the port directly to STP FORWARDING state instead of transitioning to LISTENTING and LEARING before going to FORWARDING (thus faster E2E convergence), while in RPVST it does something extra: it enables the port to be of type EDGE, so that in case of network events when RPVST has to converge, these EDGE ports are not touched (remain in FORWARDING state), which allows for faster E2E convergence.
Best,
Cristian.
10-29-2024 02:15 AM
"So from my understandiing by default cisco switch comes up with pvst mode as stp."
Correct. Believe it's the default because it predates the rapid variant. Also Cisco, over the decades, often does not change a default even if they later recommend the default be changed as best practice.
"So for each access port we need to put the command spanning tree portfast?"
Depends on what's connected to the port.
BTW, it's possible to make portfast the default on access ports.
10-29-2024 05:12 AM
default cisco switch comes up with pvst mode as stp <<- Correct
So for each access port we need to put the command spanning tree portfast? NO ALL only the ports connect to Host or server, ANY port connect to other SW not need to config as portfast
below simple lab show same
NOTE:- in lab I use command in global mode "spanning-tree portfast default"
10-29-2024 07:26 AM
Here you have added spanning tree portfast for the ports 2&3. Why?Is it required for all the access ports to put spanning tree in the switch if the hosts are connected to those ports?
10-29-2024 07:29 AM
Here you have added spanning tree portfast for the ports 2&3. Why? to show you why "" spanning-tree portfast"" appear in your show run | sec span
if you config portfast under interface or in global it normal then to see ""spanning-tree portfast"" appear in show run
Is it required for all the access ports to put spanning tree in the switch if the hosts are connected to those ports? Yes cisco recommend it to fast make port go to spanning tree FWD status
MHM
10-29-2024 09:30 PM
I have a doubt If I dont put spanning tree portfast command for each interface, Will there be any problem even though by default pvst is enabled on SW?any loop issue something like that?
10-29-2024 09:35 PM - edited 10-29-2024 09:36 PM
Not at all there is no loop when you run portfast or not run portfast for port connect to endpoints With stp or with pvst.
If you not run portfast the endpoint (host or server) will little delay to connect, but if run portfast the endpoint quickly connect to network.
MHM
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