How to Configure Multiple Cisco Switch Ports at the Same Time
Using the interface range command will save you time when configuring multiple ports with the same characteristics.
To configure multiple switchports at the same time, we use the interface range configuration command.
Example:
Switch(config)#interface range fastethernet0/1 – 20
Switch(config-if-range)#speed 100
Switch(config-if-range)#duplex full
Switch(config)#interface range fastethernet0/1 – 20
Switch(config-if-range)#speed 100
Switch(config-if-range)#duplex full
The previous example will hardcode the speed and duplex settings on switchports 1 to 20. However, this could well have been assigning them all to the same vlan.
We can even define multiple ranges.
Example:
Switch(config)#interface range fastethernet0/1 – 4 , fastethernet0/10 – 15
Switch(config)#interface range fastethernet0/1 – 4 , fastethernet0/10 – 15
Notice the spaces between the ranges.
The interface range command works with vlan, port-channel, fastethernet and gigabitethernet interfaces.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.