07-24-2007 12:41 AM - edited 03-05-2019 05:27 PM
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
07-24-2007 01:05 AM
Hi Peter
switch(config)# interface range fa2/1 - 10
switch(config-if-range)# switchport access vlan 1
HTH
Jon
07-24-2007 07:15 AM
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
07-24-2007 11:58 AM
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
07-25-2007 05:26 AM
Thanks guys for quick replies. Saves me a lot of time :-)
07-26-2022 04:28 PM
DISCLAIMER: Super Late reply
switch#configure terminal
switch(config)# interface range gi1/0/1 - 48
switch(config-if-range)#shut
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: