Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spanning Tree command (global?) 1

Status
Not open for further replies.

hinesjrh

MIS
Joined
Jan 4, 2005
Messages
260
Location
US
I have a new Cisco 2950 48-port switch. I want to have spanning-tree portfast enabled on all but ports 47 and 48 (as they will be connected to other switches). Is there somewhat of a global command to enable spanning-tree portfast on ports fa 0/1 through fa 0/46? I am attempting to avoid having to configure it seperately on each port.

Thanks in advance for any help!
 
You can use the interface range command as follows:

interface range fastethernet0/1 - 46
spanning-tree portfast

OR

Explicitly disable STP portfast on ports 47 & 48 and then enable the global portfast command:

interface range fastethernet0/47 - 48
spanning-tree portfast disable
!
spanning-tree portfast default


The second option makes the config look shorter but both achieve the same thing.

HTH

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top