Networking and Internet #cisco#pxe 2 min

Uploading new firmware to a Cisco via tftp

Translation of the original in Catalan. Read it in: CatalàCastellano

cisco.gif

Following along the line of explaining silly things about Ciscos, very simple things that happen rarely and that when they happen we never remember how they were done. Today I want to make myself a little note on how to load a new IOS onto a Cisco router.

First we need to have a TFTP server installed on our PC with the new IOS ready to download. A good manual to configure atftp on gentoo: Gentoo Linux based Netboot HOWTO (cache) just look at the section: The tftpd Daemon. Then we have to connect to the router with the Cisco console cable (DB9-RJ45) as always with minicom (terminal program that I use from linux to configure routers, equivalent to win's hyperterminal). Remember that the serial configuration is 9600bps, 8 data bits, no flow control and 1 stop bit (9600 8N1).

We set on the laptop, for example, the following configuration: 10.0.0.2/255.255.255.0 and on the cisco's fastethernet interface: 10.0.0.1/255.255.255.0.

Router>enable
Router#
Router# config t
Router(config)# interface fastethernet 0/0
Router(config-if)# ip address 10.0.0.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)#exit
Router(config)#exit
Router# wr mem
Destination filename [startup-config]?  enter

Check that you can 'ping the router'. After confirming that we have a link all we need is to make sure that the TFTP server and the IOS are ready to be downloaded by the router.

The interesting process begins, the IOS change:

Router#copy tftp flash
Address or name of remote host []? 10.0.0.2   /* ip portatil */
Source filename []? c1700-y7-mz.122-15.T7.bin /* nom del IOS */
Destination filename [c1700-y7-mz.122-15.T7.bin]? enter /* nom IOS al router */
Accessing tftp://10.0.0.2/c1700-y7-mz.122-15.T7.bin...
Erase flash: before copying? [confirm] ? enter
Erasing the flash filesystem will remove all files! Continue? [confirm] enter
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erasedee
Erase of flash: complete
Loading c1700-y7-mz.122-15.T7.bin from 10.0.0.2 (via FastEthernet0): !!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 6393852 bytes]
	Verifying checksum...  OK (0x5D11)
6393852 bytes copied in 78.804 secs (81136 bytes/sec)
Router#
Router#reload
Proceed with reload? [confirm] enter

We already have the new IOS on the router, now when it finishes rebooting we can check that this is so:

Router>en
Router#sh version
Cisco Internetwork Operating System Software
IOS (tm) C1700 Software (C1700-Y7-M), Version 12.2(15)T7,  RELEASE SOFTWARE (fc2)
TAC Support: http://www.cisco.com/tac
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Sat 09-Aug-03 06:42 by ccai
Image text-base: 0x80008120, data-base: 0x80AB2194
	ROM: System Bootstrap, Version 12.2(7r)XM2, RELEASE SOFTWARE (fc1)
	Router uptime is 23 minutes
System returned to ROM by reload
System image file is "flash:c1700-y7-mz.122-15.T7.bin"

1 comment

Comments from the old blog, as they were written. Comments are closed.

  1. Carita