Loading IOS from a Switch or Router to your PC

From NesevoWiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This article describes the procedure of loading IOS from a Router or a Switch to your PC 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.
We recommend the Solarwinds TFTP Server. http://www.solarwinds.com/downloads/
Apart from Step 1 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: 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):

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 1a:make sure the interface is not shutdown:
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface gigabitEthernet 0/1
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#exit
Router#

or

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#

Step 2: copy from flash to tftp:

Router#copy flash: tftp:
Source filename? c2800nm-advsecurityk9-mz.124-16.bin
Address or name of remote host []? 10.0.0.2
Destination filename [c2800nm-advsecurityk9-mz.124-16.bin]? hit enter
.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!
23006144 bytes copied in 45.444 secs (506253 bytes/sec)
Router#

you can also use following copy command (if .bin file is in a directory):
copy flash:/c2960-lanbase-mz.122-25.SEE3/c2960-lanbase-mz.122-25.SEE3.bin tftp:

you're done