Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Mass interface configuration

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

4 REPLIES
Hall of Fame Super Blue

Re: Mass interface configuration

Hi Peter

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

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

HTH

Jon

Cisco Employee

Re: Mass interface configuration

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

New Member

Re: Mass interface configuration

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

New Member

Re: Mass interface configuration

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

1157
Views
23
Helpful
4
Replies
CreatePlease to create content