Keeping Cisco IOS devices up to date is essential for maintaining security and expanding feature support. This content covers the full process of upgrading IOS firmware on a Cisco router using a TFTP server.
Updating Cisco IOS
As things go along there's updates that come out to your Cisco IOS device, and you should be updating it, because there are security concerns that come up with this equipment. Every once in a while you should update your equipment so it has the latest and greatest updates on your machine and is keeping it safe. So that's what we're going to go through, is that process of updating the Cisco IOS on these devices.
The first thing that I'm going to do is take a look at what's on there right now, so I'm going to take a look at the flash. I can just type in dir to take a look at the directory, and we see that the directory has a c1841, because that's the style of router.
I'm actually going to be updating it to something that can handle IPv6 on this router, because this one is not capable of handling IPv6.
The first thing that I know of is that there is about 35 megs that are available on this machine — about 35 megs available — and the file that I have that's going to be transferring over is more than that. So I can't have two of these files on here at the same time; I have to delete one and then switch over. Which can be problematic: if I don't switch over correctly, then it can be problematic when it comes time to booting this up, and it can be a real headache. So I want to make sure that I go through this process correctly.
The first thing that I need to do is remove this file right here, and the way I do that is delete. This is actually a directory, so I need to delete the directory and anything underneath it, so I'll type in recursive, and we'll also use the force, and then we are going to take this file out of the flash. I will just copy this because I want to make sure I get the exact name here, so I'll copy that and hit enter, and then that's going to delete the file. I can check it just by doing directory: no files in this directory.
The next step here is, I've already set up a TFTP server that I'm going to download that to this device now. So I need to use the copy command, because I'm copying, and I'm copying from the TFTP server, so I'll do tftp and then the address of that server, which is 10.1.0.3. So there's the address, and then the file that exists on the server, which is c advanced enterprise k9-mz-1.m5.bin. So that's the one that I'm going to be copying over right there.
I'll hit enter, and — oh, I do need to say where it's copying to, and it's copying to the flash drive, so I'll type in flash here. It asks me for a destination file name, and it just copies what the file name exists on the TFTP server, and that's fine, I'm just going to accept the default. So I'm going to hit enter there, and then it's going to go through the process of loading it. These exclamation points are showing me that this is loading, so I'm going to give this a couple of minutes to go through the process of taking this file down from the TFTP server and storing it on flash.
Once the file is copied over I just want to confirm it, so I'm going to type in directory once again, and I see that this is in fact the new copy of the file, so we are good to go there.
Now what I need to do is set this machine to actually access that. I need to be in the global configuration mode to do that, so I'm going to go into the global configuration mode, and then the command I'm going to use is boot system, and then the file that we're going to access. It's in flash, and then it's this file right here — easiest for me to just highlight it and copy it over — and then I'll hit enter.
I'm going to exit out of here, and I'm going to save this, so copy run start. And then we'll see if it boots up correctly.
Once your router has reloaded, all we need to do is a show version just to see if it took. When I see here, the software that it's using is in fact the updated software, and so we are good to go.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →