07-24-2004 09:45 PM - edited 03-02-2019 05:17 PM
Is it possible to configure multiple ports in a Catalyst switch running IOS 12.0 the way you can with CatOS? I used to be able issue a command like set port duplex 9/1-48 full and not have to configure each individual port.I haven't been able to find the correct syntax if it's even possible.
07-24-2004 10:22 PM
Hello,
try the ´interface range´ command, e.g.:
interface range FastEthernet0/1 - 24
this will get you to the prompt:
Switch(config-if-range)#
Here, whatever you configure, applies to all FastEthernet interfaces 0/1 through 0/24.
HTH,
Georg
12-06-2019 11:43 AM
Syntax example in global config to select specific ports of interest.
(config)# interface range g1/0/1 , g1/0/6 , gi1/0/8 , g1/0/11 OR
(config)# interface range g1/0/1-11
12-24-2019 03:45 AM
09-10-2020 02:44 AM
Please sir let me know all commands which will be written in( config - if-range) mode.
Thanks
09-10-2020 02:45 AM
Please sir let me know all commands which will be written in( config - if-range) mode.
Thanks
09-10-2020 02:55 AM
09-10-2020 02:56 AM
Hello @Kamlesh Chouksey ,
in interface range mode you can provide commands like
switchport access vlan 10
switchport voice vlan 20
and so on the idea is that you can give all the interface level commands that are equal on all the interfaces in the range.
Later you can add a different description on each of the interfaces.
The most difficult part is how to enter interface range mode the " " space characters are important in order to make the switch understand it.
Hope to help
Giuseppe
07-24-2004 10:26 PM
You can do this by using the rnage command:
for example
Interface range Fastethernet 0/1 - 24
this puts you in (config-range-if)
The crucial point to note is that you have to use space between the range of the interfaces you want to configure.
This command is also used with Vlans.
interface range VLan 1 - 4
A good reference is here,
http://www.cisco.com/univercd/cc/td/doc/product/software/ios121/121newft/121t/121t5/range.htm
discount the macro options for the moment to make it easier for you.
07-25-2004 01:25 AM
sorry typo.
the interface range Fastethernet 0/1 - 24 puts in you in
(config-if-range) mode
07-25-2004 08:00 AM
You say the switch is running IOS 12.0. I am assuming its an XL switch and the range command is not supported in it.
If you have newer 2950/3550/3750/4500/6500 running 12.1 and higher, you can use the interface range command
07-26-2004 05:10 AM
Thanks for the information, yes the switches are XL and I guess I have some upgrading to look into.
07-26-2004 05:30 AM
There is no 12.1 IOS for XL switches and hence you will not get the range command support for XLs
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide