cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
302
Views
0
Helpful
1
Replies

What is the easiest way to select a non-contiguous list of interfaces?

barclay4
Level 1
Level 1

Supposed I have a stack with several hundred PCs, APs, cameras and IP Phones attached. I only want to add a single command to the PC ports (all of which have the exact same config).

Is there a way to do this that doesn't involve a bunch of repetitive interface-range commands, interface templates or a text editor?

1 Reply 1

liviu.gheorghe
Spotlight
Spotlight

Hello @barclay4 ,

you can use the interface range command: 

sw1(config)#interface range GigabitEthernet 0/0/1 - 3 , GigabitEthernet 0/0/5 - 8 , GigabitEthernet 0/0/16 - 22

Hope this helps.

Regards, LG
*** Please Rate All Helpful Responses ***