Loading IOS on a Switch or Router
This article describes the procedure of loading IOS on a Router or a Switch using a RJ-45 ethernet cable.
You need a console connection and a TFTP-Server connection. Make sure the TFTP server is using the right IP address.
Make also sure the IOS is available in the right TFTP Server Root directory. (normally C:\TFTP-Root)
We recommend the Solarwinds TFTP Server. http://www.solarwinds.com/downloads/
Apart from Step 2 the procedure is the same for a switch and a router.
Pay attention connecting a Router with a cross over cable, when connecting directly to your PC.
When connecting a Swtich to your PC you need a straight through cable.
PC's of recent generations won't have a Problemn switching even when using a straight through cable with a router.
Step 1: reset password
Step 2: assign an IP address to the switch or to the interface through which you are connecting to the router (eg: 10.0.0.1 255.255.255.0):
Switch>en
Switch#configure terminal
Switch(config)#interface vlan 1
Switch(config-if)#ip address 10.0.0.1 255.255.255.0
Switch(config-if)#exit
Switch(config)#exit
Switch#
or
Router>en
Router#configure terminal
Router(config)#interface gigabitEthernet 0/1
Router(config-if)#ip address 10.0.0.1 255.255.255.0
Router(config-if)#exit
Router(config)#exit
Step 3: format flash: MAKE SURE YOU HAVE A TFTP CONNECTION BEFORE FORMATING THE FLASH
Switch#format flash:
Format operation may take a while. Continue? [confirm] hit enter
Format operation will destroy all data in "flash:". Continue? [confirm] hit enter
flashfs[1]: 0 files, 1 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 3612672
flashfs[1]: Bytes used: 1024
flashfs[1]: Bytes available: 3611648
flashfs[1]: flashfs fsck took 3 seconds.
Format of flash: complete
Switch#
Step 4: copy from tftp to flash
Switch#copy tftp: flash:
Address or name of remote host []? 10.0.0.2
Source filename []? c3500xl-c3h2s-mz.120-5.WC16.bin
Destination filename [c3500xl-c3h2s-mz.120-5.WC16.bin]? hit enter
Accessing tftp://10.0.0.2/c3500xl-c3h2s-mz.120-5.WC16.bin...
Loading c3500xl-c3h2s-mz.120-5.WC16.bin from 10.0.0.2 (via VLAN1): !!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!
[OK - 1811507 bytes]
1811507 bytes copied in 104.315 secs (17418 bytes/sec)
Switch#
Step 5: make sure the IOS has been loaded on the switch
Switch#dir
Directory of flash:/
2 -rwx 1811507 Mar 01 1993 00:14:06 c3500xl-c3h2s-mz.120-5.WC16.bin
3612672 bytes total (1799680 bytes free)
Switch#
Step 6: delete the config
Switch#wr erase
Erasing the nvram filesystem will remove all files! Continue? [confirm] hit enter
[OK]
Erase of nvram: complete
Switch#
Step 7: reload
Switch#reload
System configuration has been modified. Save? [yes/no]: no
Proceed with reload? [confirm] hit enter
you're done