Cisco CCNA Advanced IOS Management
In this chapter, you will learn how to manage Cisco routers on an internetwork.
The Internetwork Operating System (IOS) and configuration files reside in different locations in a Cisco device, and it’s important to understand where these files are located and how they work.
You’ll also learn about the main components of a router, the router boot sequence, and the configuration register.
Cisco CCNA Router as a Computer
Router components and their functions:
- § CPU – Executes operating system instructions.
- § Random Access Memory (RAM) – Contains the running copy of configuration file. Stores routing table. RAM contents lost when power is off.
- § Read-Only Memory (ROM) – Holds diagnostic software used when router is powered up. Stores the router’s bootstrap program.
- § Non-Volatile RAM (NVRAM) – Stores startup configuration. This may include IP addresses (Routing protocol, Hostname of router).
- § Flash memory – Contains the operating system (Cisco IOS).
- § Interfaces – There exist multiple physical interfaces that are used to connect network. Examples of interface types:
-Ethernet / Fast Ethernet / Gigabit Ethernet interfaces
Cisco CCNA Router Boot Cycle
The config-register setting can be used to manipulate how the router boots. The default config-register setting is 0x2102. Changing the setting to 0x2142 will cause the router to ignore the startup configuration file stored in NVRAM. This is useful for password recovery.
Cisco CCNA Finding the Cisco IOS Image
A router needs an IOS image in order to boot. In order to find an IOS image it first checks the configuration register. This will tell it whether to read the startup configuration file if it exists. If a startup file exists, it is parsed for a possible boot system command. If a boot system command does not exist, the router defaults to the first file on flash memory. If no valid IOS version exists on flash memory, the router attempts to boot over the network from a boot server. If that fails, the router will attempt to boot from a helper image. If all else fails it will enter ROMMON mode.
Cisco CCNA Loading the Cisco IOS Image from Flash Memory
When a router is booted and there is a valid IOS image store on flash memory, that IOS image is copied into RAM where it is utilized for operation of the router.
When the router is up and running you can perform a “show flash” command to display what IOS images are currently resident on flash.
Cisco CCNA show flash command
The “show flash” command displays contents of flash memory. It displays the image filename along with size and date/time created.
Prior installing a new IOS image you may need to erase an existing image in order to make room for the new image. You can determine this by looking at the last line of the “show flash” command as it displays how much flash memory if available along with how much is already used.
Cisco CCNA show version Command
The “show version” command will provide basic configuration for the system hardware as well as the software version, the names and sources of configuration files, and the boot images .
The last information given from this command is the value of the configuration register. In this example, the value is 0x2142. Typical settings are 0x2102 and 0x2142. Configuration register settings will be covered in detail later in the course.
Cisco CCNA Backing up / Restoring the Cisco IOS and Configuration
This slide lists the various commands that can be used to both backup and restore the IOS and configuration of a device.
Each of the commands listed on the slide will be covered in more detail on subsequent slides.
Cisco CCNA Preparing to Copy IOS to TFTP server
Before you upgrade or restore a Cisco IOS, you really should copy the existing file to a TFTP host as a backup just in case the new image crashes and burns.
You can use any TFTP host to accomplish this. By default, the flash memory in a router is used to store the Cisco IOS.
But before you backup an IOS image to a network server, you’ve got to do these three things:
-Make sure you can access the network server.
-Ensure the network server has adequate space for the code image.
-Verify the file name and path requirement.
On unix-based TFTP servers it may be necessary to create the file using the ‘touch’ command, and change the file security properties by doing a ‘chmod’ command.
Cisco CCNA Copy IOS to TFTP server
To back up the Cisco IOS to a TFTP host, you use the “copy flash tftp” command. It’s a straightforward command that requires only the source filename and the IP address of the TFTP host.
The key to success in this backup routine is to make sure that you’ve got good, solid connectivity to the TFTP host. Check this by pinging the device from the router prompt.
Backing up IOS to the TFTP server is a good practice since in many cases, the IOS will need to be erased to support an upgrade. If problems are incurred with the upgrade, having the image on a TFTP server will make restoring the image much easier than having to locate and download it again.
The full syntax is:
copy flash-url tftp: You can also use ftp versus tftp using the following syntax: copy flash-filesystem:filename ftp:[[[//username[:password]@] location]/directory]/filename]
You can also use ftp versus tftp using the following syntax:
copy flash-filesystem:filename ftp:[[[//username[:password]@]