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.

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.

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.

The Conversation

Follow the reactions below and share your own thoughts.

8 Responses to “How to Configure Multiple Cisco Switch Ports at the Same Time”

  1. March 24, 2009 at 4:36 pm, Doug Packer said:


    Doug Packer


  2. November 11, 2010 at 4:58 pm, Pradeepkumar_15 said:

    is there any option avail for non-sequential ports like fa 0/1 fa 3/40 need to be changed to a same VLAN in single command


    • January 07, 2011 at 10:30 pm, JWilliams said:

      Just use the same command as for multple ranges but only define to siungle ports.

      We can even define multiple ranges.
      Switch(config)#interface range fastethernet0/1, fastethernet0/10


    • January 28, 2011 at 9:23 pm, Soubbaya said:

      did you see anything like this in real time environment


  3. January 28, 2011 at 9:22 pm, Soubbaya said:



  4. March 30, 2011 at 10:57 am, Jorjani Sor said:

    Thanks,Tecknical method.


  5. September 19, 2011 at 4:31 am, Capesteve said:

    Re: We can even define multiple ranges. (on January 7, 2011)

    For multiple non-contiguous ports I believe space is needed before and after comma

    Switch(config)#interface range fa0/1 , fa0/10


  6. October 28, 2013 at 1:06 pm, Dave said:

    Am well please going through these article,command prompting clearly understood…Thanks


Leave a Reply