12-27-2004 02:05 AM - edited 03-02-2019 08:46 PM
Can I enable portfast on ports of a catalyst 2950
in one command:
config# spanning-tree portast default
or should I enable portfast on a per port basis.
Thanks
Sony
12-27-2004 07:08 AM
You can use the Interface range command:
interface range fa0/1 - 24
spanning-tree portfast
Be careful that no switches are connected to ports within the range.
Good luck
Mark
12-27-2004 08:14 AM
Be a little bit careful about that syntax...the switch wont like the command if you dont enter a space between the 1, - and 24
interface range fa 0/1 - 24
spanning-tree portfast
12-30-2004 10:56 PM
By the way, this annoying space issue requirement is being eliminated in future versions.
Enjoy :)
12-30-2004 10:59 PM
to answer your question which I think didn't get answered so far.
Use the global default command. This is precisely the type of scenario (access-layer) for which this command was designed. The uplinks would automatically go out portfast disabled mode upon receiving BPDU. But you can explictly turn it off on uplinks if you would like. Other user ports would be portfast automagically. :)
12-31-2004 03:55 AM
I think it is worth mentioning that the command (spanning-tree portfast default) will enable the portfast feature on all access ports, so first it could be wise to force all user ports to access mode.
#spanning-tree portfast ?
bpdufilter Enable portfast bdpu filter on this switch
bpduguard Enable portfast bpdu guard on this switch
default Enable portfast by default on all access ports
so I like doing something like:
Switch#
Switch(config)#interface range f0/1 - X
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#exit
Switch(config)#spanning-tree portfast default
Switch(config)#end
Switch#
01-05-2005 02:28 PM
It does not have to be configured for access port first. It would work if you enable global portfast and then convert a port to access port. So no need to do it in this order. I would think order independent configuration for this scenario is better :)
01-06-2005 06:46 AM
I did not say the order is important
but because the default mode is:
switchport mode dynamic desirable
tunring on the global "portfast default" option will not be enough to really enable portfast
sorry if I was not clear
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