cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
461
Views
0
Helpful
2
Replies

set duplex on all switch ports with one command

jimb
Level 1
Level 1

On some Cisco switches you can confure a range of ports with the range command. Does anyone know how to set the duplex and speed for all ports on a Cat 3500 XL series with one command?

2 Replies 2

Prashanth Krishnappa
Cisco Employee
Cisco Employee

The range command is supported only in 12.1 code and the XLs cannot run 12.1. Hence you cannot use range command in XL series

If you have web interface, it should be a little easier. Other than that, you will need to do it one interface at a time using CLI:(

Hi,

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 "duplex full"

let i=$i+1

done

d) Just be careful:

If one of the script commands (changing the line duplex, e.g.) disconnects the line you are connected through, it's safer to copy the script file to the switch flash first and run "copy flash run" command then.

e) If you want to use this method on a remote site device, you can also use "reload in 10" CLI command before starting the script.

If everything works OK then, you can issue "reload cancel" CLI command and "wr mem".

If anything goes wrong (and you have lost the connection to the remote switch, e.g.), the device reloads with the old config in 10 minutes.

Regards,

Milan