Professional Documents
Culture Documents
Objectives
Identify the stages of the router boot sequence Determine how a Cisco device locates and loads the Cisco IOS Use the boot system command Identify the configuration register values Briefly describe the parts of the IOS name Save and restore configuration files using TFTP and copy-and-paste Load an IOS image using TFTP Load an IOS image using XModem
2
Table of Content
1 Router boot sequence and verification 2 Managing the Cisco file system 3 Password recovery
Config-register
0x2100 : System bootstrap prompt 0x 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0x2101 : Boot system from ROM 0x 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0x2102 : Boot system from flash 0x 0 0 1 0 0 0 0 1 0 0 0 0 0 0
Configuration register bits 3, 2, 1, and 0 set boot option
9
0 1
1 0
Configuration Register
Configuration Register Value 0xnnn0 0xnnn1 0xnnn2 0xnnnF Description Use Rom Monitor mode Automatically boot from ROM Examine NVRAM for boot system commands
wg_ro_a#show version Cisco Internetwork Operating System Software IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fc1) Copyright (c) 1986-1999 by cisco Systems, Inc. Compiled Mon 08-Feb-99 18:18 by phanguye Image text-base: 0x03050C84, data-base: 0x00001000 ROM: System Bootstrap, Version 11.0(10c), SOFTWARE BOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1) wg_ro_a uptime is 20 minutes System restarted by reload System image file is "flash:c2500-js-l_120-3.bin" --More-Configuration register is 0x2102
Hardware failure
Router# copy tftp running-config Address or name of remote host[]? 10.10.10.10 Source filename[] ?router-config Destination filename [running-config]? Accessing tftp://10.10.10.10/router-config Loading router-config from 10.10.10.10 (via ethernet 0/0) !!!!!!!!!!!!!!!!!!!!!!!!! [OK-642 bytes]
1
Select Transfer Select Capture Text Specify the name for the text file to capture the configuration. Select Start to start capturing text Display the configuration to the screen by entering show running-config Press the space bar when each "-More -" prompt appears When the complete configuration has been displayed, stop the capture by: Select Transfer Select Capture Text Select Stop
A user can restore the image from the ROMmon mode (rommon 1> prompt ).
Xmodem through the console Or use TFTP to download the image
2
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
Environment variables
The fastest way to restore an IOS image to the router is to use TFTP from ROMmon to download the image rommon 10 >set rommon 10 > IP_ADDRESS=10.10.10.10 rommon 11 > IP_SUBNET_MASK=255.255.255.0 rommon 12 > DEFAULT_GATEWAY=10.10.10.10 rommon 13 > TFTP_SERVER=10.10.10.11 rommon 14 > TFTP_FILE=C2600-IS-MZ.120-7.T.BIN rommon 15 > rommon 15 > tftpdnld
2
PASSWORD RECOVERY
Config-register
0 3: 6: 8: 13: 15:
Boot field Ignore NVRAM contents Break disabled Boot ROM if network fails Diagnostic and ignore NVRAM
Config-register
0 0 1 0
0 0 0 1
0 0 0 0
0 0 1 0
Password Recovery
1. Cold boot the router 2. Press CTRL-BREAK within 60 seconds 3. Change configuration register:
C2500: C2600:
5. Do not use setup mode 6. Access to privileged mode 7. copy startup-config running-config 8. change enable password 9. change configuration register to 0x2102 10. copy running-config startup-config 11. reload
3
Summary
3
Identifying stages of the router boot sequence Identifying how the Cisco device locates and loads the Cisco IOS Using the boot system command Identifying the configuration register settings Troubleshooting problems Identifying the files used by the Cisco IOS and their functions Identifying the locations on the router of the different file types Identifying the parts of the IOS name Managing configuration files using TFTP Managing configuration files using copy-and-paste Managing IOS images with TFTP Managing IOS images with XModem Verifying the file system using show commands
Q&A