You can also use the "interface range" command.
USE WITH CAUTION !!!
To configure a bunch of interfaces with some global parameters use “interface range” from global configure mode.
e.g.
to enable spanning-tree portfast on all fast ethernet ports on a 3548, use the command
switch(config)# interface range fast 3/1 –48
switch(config-if)# spanning-tree portfast
done!! NB. The space before the dash is required.
You can also do it across multiple type of interface – up to 5 comma seperated interface ranges, e.g. shutdown loadsa ports on a 6509…
switch(config)# interface range fast 3/1 –48, gig 8/1 –8, gig 9/1 -8
switch(config-if)# shutdown
SO USE WITH CAUTION!!!
Cheers
Phil. If everything is coming your way then you're in the wrong lane.