Mass interface configuration

Unanswered Question
Jon Marshall Tue, 07/24/2007 - 01:05
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Hi Peter

switch(config)# interface range fa2/1 - 10

switch(config-if-range)# switchport access vlan 1



ankbhasi Tue, 07/24/2007 - 07:15
User Badges:
  • Cisco Employee,

Hi Peter,

In addition to Jon's post even if your port range is discontigous you can configure them at one go

Switch(config)#int range gig1/0/2,gig1/0/8,gig1/0/24

Switch(config-if-range)#switchport mode access

Switch(config-if-range)#switchport access vlan 1



*Pls rate all helpfull post

jdarrish Tue, 07/24/2007 - 11:58
User Badges:

I think you're looking for the 'range' command after 'interface':

For instance to set ports 2/1 through 10 to vlan 55, run the following

switch(config)# interface range fa 2/1 - 10

switch(config-if-range)# switchport mode access

switch(config-if-range)# switchport access vlan 55


This Discussion