24
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

Embed Size (px)

Citation preview

Page 1: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

1© 2003, Cisco Systems, Inc. All rights reserved.

CCNA 2 Module 5 Managing Cisco IOS Software

Page 2: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

222© 2003, Cisco Systems, Inc. All rights reserved.

Objectives

• Router boot sequence and verification

• Managing the Cisco file system

Page 3: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

333© 2003, Cisco Systems, Inc. All rights reserved.

Router Startup Sequence

The startup routines must do the following:• Test the router hardware • Find and load the Cisco IOS software • Find and apply configuration statements such as protocol functions and interface addresses

Page 4: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

444© 2003, Cisco Systems, Inc. All rights reserved.

How a Cisco Device Locate and Load IOS

• The default source for Cisco IOS software depends on the hardware platform.

• Most routers use the boot system commands saved in NVRAM.

• Cisco IOS software allows several alternatives to be used.

• Other sources can be specified for the software, or the router can use its own fallback sequence to load the software.

Page 5: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

555© 2003, Cisco Systems, Inc. All rights reserved.

Locating Cisco IOS Software

Page 6: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

666© 2003, Cisco Systems, Inc. All rights reserved.

Using the boot system Command

Page 7: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

777© 2003, Cisco Systems, Inc. All rights reserved.

Retrieve the Configuration Register Values

Page 8: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

888© 2003, Cisco Systems, Inc. All rights reserved.

Configuration Register

• The configuration register is a 16-bit register in NVRAM that is represented as 4 hexadecimal digits.

• The lowest four bits of the configuration register form the boot field.

• Then use the config-register command and change only the value of the last hexadecimal digit.

Page 9: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

999© 2003, Cisco Systems, Inc. All rights reserved.

Configuration Register Values

• The order in which the router looks for system bootstrap information depends on the Boot Field setting in the configuration register.

• You can change the default configuration register setting with the global configuration mode command config-register. Use a hexadecimal number as the argument for this command.

Page 10: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

101010© 2003, Cisco Systems, Inc. All rights reserved.

Identifying Boot Image Source

Page 11: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

111111© 2003, Cisco Systems, Inc. All rights reserved.

Troubleshooting IOS Boot Failure

There are several reasons that a router may not boot properly:

• Configuration file has missing or incorrect boot system statement

– the boot system statement may point to an incorrect IOS image, use the no version of the command to delete the statement.

• Incorrect configuration register value

– change the configuration register and save this as the start-up configuration

• Corrupted flash image

– a new IOS should be uploaded into the router.

• Hardware failure

– contact the Cisco Technical Assistance Center

Page 12: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

121212© 2003, Cisco Systems, Inc. All rights reserved.

Software Components in Memory

• Router and switch require IOS and configuration file.

• The Cisco IOS is the software that allows the hardware to function as a router or switch.

• The configuration contains the instructions that define how the device is to route or switch.

• A network administrator creates a configuration that defines the desired functionality of a Cisco device.

• The IOS is stored in a memory area called flash. • A copy of the configuration file is stored in NVRAM to be used

during startup.

Page 13: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

131313© 2003, Cisco Systems, Inc. All rights reserved.

Managing Configuration Files Using TFTP

• The startup configuration should be backed up in case the configuration is lost.

• TFTP server can be used to back up the configuration files for a Cisco device

Page 14: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

141414© 2003, Cisco Systems, Inc. All rights reserved.

Managing Configuration Files Using TFTP

• The backup configuration file can be loaded from a TFTP server to restore the router configuration.

Page 15: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

151515© 2003, Cisco Systems, Inc. All rights reserved.

Managing Configuration Files Using Copy and Paste

Page 16: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

161616© 2003, Cisco Systems, Inc. All rights reserved.

Managing IOS Images Using TFTP

To store IOS images on a TFTP server

Page 17: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

171717© 2003, Cisco Systems, Inc. All rights reserved.

The confreg Command

The console speed can be changed from ROMmon mode using the confreg command.

ROMmon and Xmodem can be used to restore IOS software images

Page 18: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

181818© 2003, Cisco Systems, Inc. All rights reserved.

Managing IOS Using XModem

The xmodem command can be used from the ROMmon mode to restore an IOS software image from the PC

Page 19: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

191919© 2003, Cisco Systems, Inc. All rights reserved.

Managing IOS Using XmodemContinued

Now the Xmodem transfer needs to be started from the terminal emulator. In HyperTerminal, select Transfer > Send File. In the Send File popup specify the image name and location, select Xmodem as the protocol, and start the transfer. The Sending File popup will display the status of the transfer.

Page 20: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

202020© 2003, Cisco Systems, Inc. All rights reserved.

Managing IOS Using TFTP

• Since the ROMmon has very limited functions, no configuration file is loaded during boot.

• The router therefore has no IP or interface configuration. The environmental variables provide a minimal configuration to allow for the TFTP of the IOS.

• To set a ROMmon environment variable, the variable name is typed, then the equal sign (=), and the value for the variable (VARIABLE_NAME=value).

• For example, to set the IP address to 10.0.0.1, type IP_ADDRESS=10.0.0.1 at the ROMmon prompt.

Page 21: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

212121© 2003, Cisco Systems, Inc. All rights reserved.

The set Command

• The IOS can also be restored from a TFTP session.

• The fastest way to restore an IOS image to the router is to use TFTP from ROMmon to download the image.

• Set the environmental variables and then use the tftpdnld command.

Page 22: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

222222© 2003, Cisco Systems, Inc. All rights reserved.

The tftpdnld Command

• As each datagram of the IOS file is received, an exclamation point (!) will be displayed. • Router can be restarted by entering the reset command or typing i.

Page 23: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

232323© 2003, Cisco Systems, Inc. All rights reserved.

File System Verification

• There are several commands that can be used to verify the router file system.

show version

show flash

Page 24: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software

242424© 2003, Cisco Systems, Inc. All rights reserved.

The show flash Command