Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have several switches that for some reason have all the ports set to different speeds (some 10Mbps and some 100Mbps) I want to reset all ports to auto (so they should then configure to 100Mbps) What is the best way of doing this?

share|improve this question
2  
We need to know the make/model of the switch. Every vendor does it a little bit differently. –  James Sneeringer Aug 13 '09 at 13:05
    
Are you using CatOS, IOS or NXOS? –  Chopper3 Aug 13 '09 at 14:50

3 Answers 3

Your switches are probably managed type, so you have to find their ip addresses and configure them by web interface. If you don't known how to to this...read the switch's manual or publish exact model name so we can help you.

share|improve this answer

Tools like RANCID making updating large number of switches and routers simple. But you must be very careful with uplink ports and other changes that will disconnect your session.

Personal I like to login in directly to preform the work by hand. This way I can double check that I am going to only make the correct changes needed. Also Cisco has some helpful commands to make changing large number of port at once.

Example

Changing all Copper Ethernet speed and duplex on a cisco c3750:

config t
  interface range fa1/0/1 - 48
    speed 100
    duplex full
    end
write mem

Changing all Copper Ethernet speed and duplex on a group of stacked Cisco 3750s:

config t
  interface range fa1/0/1 - 48 
    speed 100
    duplex full
    exit
  interface range fa2/0/1 - 48
    speed 100
    duplex full
    exit
  interface range fa3/0/1 - 48
    speed 100 
    duplex full
    end
write mem

Gigi Ethernet

Cisco has a long history of AutoNeg problems and issues, but the Gigi interface level you really should use AutoNeg. Details of why at Etherealmind.

share|improve this answer

Ah, mass Cisco updates...

I used a perl script to connect (I think Net::Telnet::Cisco was my module of choice), and then loop through all the interfaces issuing the appropriate command.

You could also use it to just generate the text and copy / paste that into your terminal program.

share|improve this answer
    
If it's CatOS or a recent version of IOS (12.2 or later, I think) you can specify port ranges. For example, on CatOS you could do "set port speed 4/1-12 100" to change ports 4/1 through 4/12. On IOS, you go into interface range subconfig with sometjhing like "int range fa 4/1 - 12". Both allow ranges using a hyphen or multiple ports using a comma. –  James Sneeringer Aug 13 '09 at 15:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.