cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5800
Views
38
Helpful
5
Replies

Mass interface configuration

peter.conings
Level 1
Level 1

With Cisco IOS is there a similar command to 'mass' configure settings for interfaces.

eg in CatOs you put:Set vlan 1 2/1-10 so the command has impact on ports 1 to 10. Is there a similar command in IOS to put settings for more interfaces in one command?

Thanks

5 Replies 5

Jon Marshall
Hall of Fame
Hall of Fame

Hi Peter

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

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

HTH

Jon

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

HTH

Ankur

*Pls rate all helpfull post

jdarrish
Level 1
Level 1

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

Thanks guys for quick replies. Saves me a lot of time :-)

thinicemike
Level 1
Level 1

DISCLAIMER: Super Late reply 

switch#configure terminal

switch(config)# interface range gi1/0/1 - 48

switch(config-if-range)#shut

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco