cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1442
Views
0
Helpful
22
Replies

In 2960 modelswitch the command - sh running-config | section spanning

13jobsp90
Level 1
Level 1

When I type the command "sh running-config | section spanning" . It shows the below output. Can anyone explain?

spanning-tree mode pvst
spanning-tree extend system-id
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
 spanning-tree portfast
2 Accepted Solutions

Accepted Solutions

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

View solution in original post

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.

View solution in original post

22 Replies 22

marce1000
Hall of Fame
Hall of Fame

 

  - 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.

 


-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

balaji.bandi
Hall of Fame
Hall of Fame

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.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Joseph W. Doherty
Hall of Fame
Hall of Fame

"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.

BTW, in your case, believe you'll obtain the same results with "sh running-config | include spanning".

 

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

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?

 

 - 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.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

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.

"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.

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"

Screenshot (859).png

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?

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

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?

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