Example:
Switch(config)#interface range fastethernet0/1 – 20The previous example will hardcode the speed and duplex settings on switchports 1 to 20. But this could well have been assinging them all to the same vlan.
Switch(config-if-range)#speed 100
Switch(config-if-range)#duplex full
We can even define multiple ranges.
Example:
Switch(config)#interface range fastethernet0/1 – 4 , fastethernet0/10 – 15Notice the spaces between the ranges.
The interface range command works with vlan, port-channel, fastethernet and gigabitethernet interfaces.
No comments:
Post a Comment