Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Modifying Attributes on A Range of Switch Ports Using Cisco IOS

I do not have a lot experience using IOS on Cisco switches. I was wondering if it is possible to modify attributes such as port speed on a range of interfaces with a single command. For example, if I want to change all 48 ports on a 3548 switch to set the speed to 100Mbps. Can I do it with a single command or must I change all 48 interfaces individually.

2 REPLIES
New Member

Re: Modifying Attributes on A Range of Switch Ports Using Cisco

With the cat3500XL series I do not believe there is a feature for this, a real pain if you need to configure port fast, speed etc.

On the newer 2950G you can use the #interface range fa0/1 -24 etc command and then enter port configuration requirements.

Re: Modifying Attributes on A Range of Switch Ports Using Cisco

A little trick for Cat3500XLs:

You can use following universal pocedure for changing one parameter on multiple ports:

a) prepare a script which generates necessary commands to an ASCII file

b) telnet to the switch, conf term

c) copy and paste the commands from the ASCII file to the CLI (or copy tftp run if the file is a really long one)

Example of the UNIX script:

i=1

while [ $i -le 48 ]

do

echo "int fa 0/$i"

echo "spanning-tree portfast"

let i=$i+1

done

Regards,

Milan

336
Views
0
Helpful
2
Replies
CreatePlease to create content