Interface Range
A helpful interface command is the range command; you can use it on switches to help
you configure multiple ports at the same time. Here’s an example that allows you to configure
12 interfaces at one time!
Switch(config)#int range fastEthernet 0/1 - 12
Switch(config-if-range)#spanning-tree portfast