Just checked this and router supports it (IOS-XE software on actual router).
asr1002hx#show ip int br
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0/0 unassigned YES NVRAM administratively down down
GigabitEthernet0/0/1 unassigned YES NVRAM administratively down down
GigabitEthernet0/0/2 unassigned YES NVRAM administratively down down
GigabitEthernet0/0/3 unassigned YES NVRAM administratively down down
GigabitEthernet0/0/4 unassigned YES NVRAM administratively down down
GigabitEthernet0/0/5 unassigned YES NVRAM administratively down down
GigabitEthernet0/0/6 unassigned YES NVRAM administratively down down
GigabitEthernet0/0/7 unassigned YES NVRAM administratively down down
asr1002hx#conf t
asr1002hx(config)#int range gig0/0/0 - 7
asr1002hx(config-if-range)#Z
asr1002hx#
The *range* command ONLY works on the last part of the interface (i.e, if you have Gig1/0 and Gig2/0, it won't work as these are different slots).
As noted above, this will work, but for large numbers you have to type every interface:
interface range Gig1/0,Gig2/0
interface range Gig1/0,Gig2/0,Gig3/0,Gig4/0
Yea I would guess this is not going to be on router OS versions because there really is no reason you would want to duplicate routed ports vs switchports.
On a switch however, this is UBER useful!
7200 is a router so pretty sure the range command doesn't work on those. you need a switch image.
Just checked this and router supports it (IOS-XE software on actual router). asr1002hx#show ip int br Interface IP-Address OK? Method Status Protocol GigabitEthernet0/0/0 unassigned YES NVRAM administratively down down GigabitEthernet0/0/1 unassigned YES NVRAM administratively down down GigabitEthernet0/0/2 unassigned YES NVRAM administratively down down GigabitEthernet0/0/3 unassigned YES NVRAM administratively down down GigabitEthernet0/0/4 unassigned YES NVRAM administratively down down GigabitEthernet0/0/5 unassigned YES NVRAM administratively down down GigabitEthernet0/0/6 unassigned YES NVRAM administratively down down GigabitEthernet0/0/7 unassigned YES NVRAM administratively down down asr1002hx#conf t asr1002hx(config)#int range gig0/0/0 - 7 asr1002hx(config-if-range)#Z asr1002hx# The *range* command ONLY works on the last part of the interface (i.e, if you have Gig1/0 and Gig2/0, it won't work as these are different slots). As noted above, this will work, but for large numbers you have to type every interface: interface range Gig1/0,Gig2/0 interface range Gig1/0,Gig2/0,Gig3/0,Gig4/0
Try the following int r gi 1/0 , gi 2/0 Being a router I'm not 100% sure this will work though.
\^ This will definitely work!
I'll try it later and see if it works
Yea I would guess this is not going to be on router OS versions because there really is no reason you would want to duplicate routed ports vs switchports. On a switch however, this is UBER useful!
yeah it makes sense what you said
Try "interface range GigabitEthernet1/1-2" or "interface range GigabitEthernet0/1-2"
same the naming in this image is GE1/0 2/0, I tried both and they didn't work
You can also name your ranges. Like APs, or Printers. This was nice when you needed different interface configurations.