How to Upload Ios in Cisco Router
Cisco IOS devices typically use their wink retention to store the IOS prototype. On most routers, this flash memory can exist easily replaced. On some switches, it is integrated in the device and can't be replaced.
In this lesson, I'll show y'all some dissimilar options how to copy a new IOS image to your Cisco IOS router or switch. I volition utilize a Cisco 2800 IOS router in these examples.
First, caput over to Cisco.com > Support > Download and take hold of the IOS epitome that you desire. For example:
If you lot hover your mouse over the filename, you volition run across some extra data:
Higher up you tin can see the file proper noun and MD5 checksum. The checksum can exist used to check if the file that you downloaded is the same or has changed. I'll show you lot this later.
Once you downloaded the IOS image, check if you accept plenty space left on your flash memory:
R1#prove flash: -#- --length-- -----date/time------ path 1 1119 Sep 29 2015 11:11:52 +00:00 r1-r2-r3.cfg ii 1184 Dec three 2014 15:14:06 +00:00 R1-R2-ASA1-ASA2.cfg 3 1125 Dec 23 2014 13:41:32 +00:00 ASA1-R1-R2-R3.cfg 5 76 Jul 17 2014 12:09:10 +00:00 System Volume Information/IndexerVolumeGuid vi 1060 Aug eleven 2015 12:53:l +00:00 mpls-pe-ce-basic-addressing.cfg seven 1213 Sep thirty 2015 15:05:02 +00:00 router-on-a-stick.cfg 8 67926080 Apr 2 2015 14:21:46 +00:00 c2800nm-adventerprisek9-mz.151-4.M10.bin 3862364160 bytes available (137428992 bytes used) On my flash memory, there are a agglomeration of configuration files and the electric current IOS image. There are 3862364160 bytes available (3862 MB) so we take plenty of space.
When we want to re-create something to or from this router, we accept to apply the copy command:
R1#re-create ? /erase Erase destination file system. /mistake Let to re-create fault file. /noverify Don't verify epitome signature before reload. /verify Verify image signature before reload. archive: Re-create from archive: file system cns: Copy from cns: file system flash: Copy from flash: file system ftp: Copy from ftp: file organization http: Copy from http: file organisation https: Copy from https: file system null: Copy from zero: file system nvram: Re-create from nvram: file organization pram: Copy from pram: file organisation rcp: Copy from rcp: file system running-config Re-create from current system configuration scp: Copy from scp: file organisation startup-config Re-create from startup configuration arrangement: Copy from system: file system tar: Copy from tar: file system tftp: Copy from tftp: file system tmpsys: Re-create from tmpsys: file system xmodem: Copy from xmodem: file system ymodem: Copy from ymodem: file organization We have a lot of options. The most common options for copying an IOS paradigm are:
- TFTP
- FTP
- SCP
I will explain all three options to you.
Newer routers too support copying from USB sticks. This volition show up as usbflash: in the filesystem overview.
TFTP
TFTP (Trivial File Transfer Protocol) is like to FTP just much simpler, like a low-cal weight version. It doesn't back up hallmark or encryption and uses UDP for transmission. I volition use the following topology:
Nosotros need a TFTP server awarding, a corking pick here is TFTPD32. You can download information technology for complimentary and information technology's an executable, no need to install anything.
Once you lot downloaded TFTPD32, first it:
And you lot will see the primary screen:
Make sure you select the right directory where you downloaded your IOS paradigm and if yous take multiple network interfaces, select the correct interface.
The copy command works in both directions. I tin re-create to and from the TFTP server. Hither'south how to copy the current IOS epitome to the TFTP server:
R1#re-create flash: tftp: Source filename []? c2800nm-adventerprisek9-mz.151-4.M10.bin Address or name of remote host []? 192.168.1.200 Destination filename [c2800nm-adventerprisek9-mz.151-4.M10.bin]? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 67926080 bytes copied in 312.508 secs (217358 bytes/sec) When y'all employ the copy flash: tftp: command, it volition ask you lot for the IP address and filename. When yous see something between [] (brackets), yous can just hit the enter button. For example, since I specified the source name, the router assumes I want to employ the same file name for the destination. Don't type "y" or "yes" here or that will become the destination filename.
If y'all are unable to connect to the TFTPD32 server, bank check your Windows firewall.
Nosotros tin can see the transfer on our router or yous can see it in TFTPD32:
We now have a backup of our current IOS image. Allow's copy the new epitome to the router:
R1#copy tftp: flash: Address or name of remote host []? 192.168.1.200 Source filename []? c2800nm-adventerprisek9-mz.151-iv.M12a.bin Destination filename [c2800nm-adventerprisek9-mz.151-4.M12a.bin]? Accessing tftp://192.168.1.200/c2800nm-adventerprisek9-mz.151-4.M12a.bin... Loading c2800nm-adventerprisek9-mz.151-4.M12a.bin from 192.168.1.200 (via FastEthernet0/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 67929600 bytes] 67929600 bytes copied in 316.628 secs (214541 bytes/sec) The transfer has completed, let's take a await at our flash retentiveness:
R1#evidence wink: | include .bin 8 67926080 Apr 2 2015 14:21:46 +00:00 c2800nm-adventerprisek9-mz.151-4.M10.bin 25 67929600 Nov 4 2016 12:11:22 +00:00 c2800nm-adventerprisek9-mz.151-iv.M12a.bin Higher up we tin can meet the new IOS prototype.
The re-create command as well allows y'all to enter parameters like the IP address of the TFTP server and filenames. Here is an example:
R1#re-create tftp://192.168.1.200/c2800nm-adventerprisek9-mz.151-4.M12a.bin flash: Destination filename [c2800nm-adventerprisek9-mz.151-4.M12a.bin]? Higher up you can run across that I already entered the IP address and filename. Once I hitting enter, information technology will but ask me for the destination filename (which I likewise could accept entered). If you have to upgrade the IOS image on multiple devices, this is more than convenient as you can merely copy/paste the above line on all devices.
Y'all can also plough a Cisco IOS router or switch into a TFTP server. You only need 1 command to accomplish this:
R1(config)#tftp-server flash:c2800nm-advipservicesk9-mz.124-24.T8.bin allonym 2800-paradigm.bin The allonym parameters lets yous use a dissimilar proper name for the filename. In the example above, "2800-image.bin" refers to the actual file on the wink of my router.
FTP
Copying to or from an FTP server is also no problem, we can do this with the same copy control. One thing y'all might have to bargain with is authentication. Most FTP servers volition require a username and password. Here is the topology I will use:
There are two things we can exercise to supply a username and password. Here is pick one::
R1(config)#ip ftp username admin R1(config)#ip ftp countersign cisco We tin can globally configure the username and countersign that we want to use for the FTP server. When you utilize the re-create command, Cisco IOS will apply these values for authentication.
Personally, I don't like leaving this information in the running configuration. It'south also possible to supply a username and password with the re-create command. Here is an example:
R1#copy ftp://admin:cisco@192.168.one.201/c2800nm-adventerprisek9-mz.151-iv.M12a.bin flash: Destination filename [c2800nm-adventerprisek9-mz.151-4.M12a.bin]? Accessing ftp://*****:*****@192.168.1.201/c2800nm-adventerprisek9-mz.151-4.M12a.bin... Loading c2800nm-adventerprisek9-mz.151-4.M12a.bin from 192.168.i.201 (via FastEthernet0/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 67929600 bytes] 67929600 bytes copied in 884.704 secs (76782 bytes/sec) To a higher place you tin see I embedded the username "admin", the countersign "cisco" and the IP accost of my FTP server. This way is also easier, you tin can copy/paste this line on all devices that require an IOS image upgrade.
SCP
Last but not least, we accept SCP (Secure Copy) which uses SSH. This is a great method considering of ii reasons:
- Information technology allows you to use your router/switch as an SCP server.
- It uses encryption.
- Y'all probably already take SSH configured on your router or switch.
I volition testify you how to configure your router as an SCP server and how to copy files to/from information technology. I'yard going to use ii routers for this:
R1 Configuration
First, we have to configure SSH:
R1(config)#ip domain-name NETWORKLESSONS.LOCAL R1(config)#line vty 0 four R1(config-line)#transport input ssh R1(config-line)#login local R1(config)#crypto cardinal generate rsa The proper noun for the keys will be: R1.NETWORKLESSONS.LOCAL Choose the size of the key modulus in the range of 360 to 4096 for your General Purpose Keys. Choosing a cardinal modulus greater than 512 may accept a few minutes. How many bits in the modulus [512]: 1024 % Generating 1024 bit RSA keys, keys will be not-exportable... [OK] (elapsed time was 3 seconds) R1(config)#ip ssh version 2 Now we just need ii additional commands for SCP. The first i is to enable the SCP server:
R1(config)#ip scp server enable And we need a user that has full access to the router:
R1(config)#username admin privilege 15 password cisco Let'southward continue with R2, our SCP client.
R2 Configuration
R2 will be our SCP client. Permit's try the copy control:
R2#copy scp: flash: Address or proper name of remote host []? 192.168.ane.ane Source username []? admin Source filename []? c2800nm-adventerprisek9-mz.151-four.M12a.bin Destination filename [c2800nm-adventerprisek9-mz.151-4.M12a.bin]? Password: !!!!!!!!!!! 67929600 bytes copied in 884.704 secs (76782 bytes/sec) The copy control will ask for the remote IP address, username, password, and filename.
MD5 Verification
So far we copied a couple of files but how practise nosotros know that these files are valid? When nosotros downloaded the Cisco IOS paradigm, I showed y'all the MD5 checksum that Cisco publishes on their website. Nosotros can verify this checksum on our router:
R1#verify /md5 flash:c2800nm-adventerprisek9-mz.151-four.M12a.bin .................Done! verify /md5 (flash:c2800nm-adventerprisek9-mz.151-4.M12a.bin) = fcdaeb55b292534e97ecc29a394d35aa This MD5 checksum is the same every bit the i we found on the Cisco website. This tells u.s. that nosotros have the same file as Cisco published and that the file has non been tampered with. If the checksum fails, maybe someone has added something nasty to the prototype.
Boot Organisation
Our router currently has 2 IOS images:
R1#show flash: | include .bin eight 67926080 Apr 2 2015 xiv:21:46 +00:00 c2800nm-adventerprisek9-mz.151-4.M10.bin 25 67929600 Nov 4 2016 12:11:22 +00:00 c2800nm-adventerprisek9-mz.151-iv.M12a.bin Which IOS image will information technology select when the router boots? Deleting the old IOS prototype is ane option just there is another fashion.
Most routers volition select the first filename that they find on the flash retentiveness so in our case, information technology means information technology would boot the older IOS prototype. We tin change this with the boot sytem command:
R1(config)#kick organization flash:c2800nm-adventerprisek9-mz.151-4.M12a.bin Let's reload the router:
R1#reload System configuration has been modified. Save? [yes/no]: aye Building configuration... [OK] Once the router has reloaded, verify that nosotros are running the new IOS image:
R1#show version Cisco IOS Software, 2800 Software (C2800NM-ADVENTERPRISEK9-Thou), Version 15.one(4)M12a, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2016 past Cisco Systems, Inc. Compiled Tue 04-October-16 03:37 by prod_rel_team ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1) R1 uptime is fourteen minutes System returned to ROM by reload at fourteen:01:00 UTC Fri November 4 2016 Organization paradigm file is "flash:c2800nm-adventerprisek9-mz.151-four.M12a.bin" Above we can meet nosotros booted the new Cisco IOS image.
Configurations
Desire to accept a look for yourself? Here yous will find the final configuration of each device.
R1
hostname R1 ! boot system wink:c2800nm-adventerprisek9-mz.151-4.M12a.bin ! ip cef ! ip domain name NETWORKLESSONS.LOCAL ! username admin privilege 15 countersign 0 cisco ! ip ssh version ii ip scp server enable ! interface FastEthernet0/0 ip address 192.168.1.1 255.255.255.0 duplex auto speed auto ! line vty 0 4 login local transport input ssh ! cease Conclusion
You take now learned how to upgrade your Cisco IOS image through TFTP, FTP and SCP. You have seen how this can exist done from your figurer to your router/switch or between ii routers. We also checked how to verify the integrity of the file with the MD5 checksum and how to configure your router to kicking the new IOS prototype.
webbanctoesend1966.blogspot.com
Source: https://networklessons.com/cisco/ccna-routing-switching-icnd1-100-105/upgrade-cisco-ios-image
0 Response to "How to Upload Ios in Cisco Router"
Post a Comment