cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
481
Views
5
Helpful
4
Replies

How do I enable portfast on all ports at once?

mmelick
Level 1
Level 1

Do I have to manually enable portfast on each port one by one. Or is there a command I can issue that enables it for all ports? I have a 3500XL switch

4 Replies 4

Prashanth Krishnappa
Cisco Employee
Cisco Employee

You cannot do it from CLI on an XL switch. If you have web interface(VSM), try configuring it from VSM.

If you have a 2950/3550, you can use the interface range CLI command.

milan.kulik
Level 10
Level 10

If you are as lazy as me, you can use following universal pocedure for changing one parameter on all ports:

a) prepare a script which generates necessary commands to an ASCII file

b) telnet to the switch, conf term

c) copy and paste the commands from the ASCII file to the CLI (or copy tftp run if the file is a really long one)

Example of the UNIX script:

i=1

while [ $i -le 48 ]

do

echo "int fa 0/$i"

echo "spanning-tree portfast"

let i=$i+1

done

Regards,

Milan

bbranch
Level 3
Level 3

You can use the interface range command to define which ports you want to apply the command to:

interface range fastethernet0/1 - 24

spanning-tree portfast

Not available on 3500XL.

Milan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: