Non-continuous bulk changes in IOS

Answered Question
May 20th, 2008
User Badges:


I am attempting to make changes on a bunch of IOS switches and wanted to know if there was anyway to make bulk changes to a number of ports if they happen to be non-continuous (eg. 1,5,8 etc.). I do know about the range command but as I understand it that is only applicable to continuous ports.

Thanks a bunch.

Correct Answer by Amit Singh about 9 years 2 months ago

You can also use the smartport macro feature on the switches. You can make a sample config for the ports that you want to configure and then attach it to the specific ports.

-amit singh

Correct Answer by Cowsika S Dasarathan about 9 years 2 months ago

The below example uses a range command to configure the ports, Fa 1/0/1, Fa1/0/5, Gi 1/0/1 and Gi 1/0/2 which are discontiguous.

Switch(config)#int range fa 1/0/1 , fa 1/0/5 , gi 1/0/1 - 2

More Info:

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)


This Discussion