Accessing and Using GRUB Mode

Similar documents
Upgrading the Cisco IOS XE Software

Cisco 4000 Series Virtual Configuration Register

Maintaining the MGX RPM-PR

Configuring Passwords and Privileges

Configurations for the Layer 3 Switch Router

Command-Line Interface (CLI) Basics

IOS and Configuration Basics

Lab 5.2.6b Managing IOS Images with ROMmon and Xmodem Instructor Version 2500

Router Startup and Configuration

Configuration Register Information

ord Recovery Procedure for the Cisco Catalyst 8510 Multiserv

No Service Password-Recovery

Lab Using the Boot System Command. Objective. Background/Preparation

co Password Recovery Procedure for the Cisco 1700 Series R

Upgrading the Software

Password Recovery Procedure for the Cisco 3600 and 3800 Series Routers

Using the Command-Line Interface

Troubleshooting Initial Startup Problems

Configuring for the First Time

Rebooting and Reloading - Configuring Image Loading Characteristics

Password Recovery Procedure for the Cisco 1700 and 1800 Series Routers

Password Recovery in ROM Monitor Mode

FIRST BOOT OF THE ROUTER & STORING ITS CONFIGURATION

Table of Contents. Cisco Xmodem Console Download Procedure Using ROMmon

Cisco cbr Converged Broadband Routers High Availability Configuration Guide for Cisco IOS XE Everest

Initial Configuration on ML-Series Card

Chapter 5 Router and IOS Basics

Password Recovery Procedure for the Cisco 1900 Series Integrated Services Routers

Troubleshooting the Security Appliance

Powering On the Cisco VG224 Voice Gateway

Password Recovery in ROM Monitor Mode

Checklists for Configuring the Gateway

CCNA 1 Chapter 2 v5.0 Exam Answers 2013

First-Time Configuration

CCNA 1 Chapter 2 v5.0 Exam Answers %

URIs in Cisco's IOS look like "flash:/directory/filename" when they're referred to by commands. For example

Cisco ASR 903 Initial Configuration

Installing and Upgrading Software

Troubleshooting. Testing Your Configuration CHAPTER

Setting Up the Sensor

Recovering a Lost Password

LAB 3 Basic Switch Configuration Commands

Xmodem Console Download Procedure Using ROMmon

Maintaining the Cisco DistributedDirector 2500 Series

Lab Command Modes and Router Identification. Objective. Background/Preparation. Step 1 Login to the router in user EXEC mode

2.1. Device Connection

Command-Line Interfaces

MiPDF.COM. 3. Which procedure is used to access a Cisco 2960 switch when performing an initial configuration in a secure environment?

Initial Configuration

DoS Attacks Malicious Code Attacks Device Hardening Social Engineering The Network Security Wheel

Table of Contents. Cisco Password Recovery Procedure for the Cisco 2000, 2500, 3000, 4000, AccessPro, 7000 (RP), AGS, IGS, STS

II+/II+TS/II+10GE/III/IV/V/V 10GE

Using Cisco IOS XE Software

Cisco IOS Software Basic Skills

Lab - Establish a Console Session with Tera

Maintaining the Cisco 7202 Router

Cisco 7500 Series Line Card Configuration Commands

Configuring Host Router and Cisco Analog Video Gateway Module Interfaces

Backup a copy of a router IOS from flash to a TFTP server. Reload the backup IOS software image from a TFTP server into flash on a router.

Lab 3: Basic Device Configuration

Cisco cbr Converged Broadband Routers High Availability Configuration Guide

Chapter 5 Review Questions

Cisco NCS 4216 Initial Configuration

Working with Configuration Files

Table of Contents. Cisco Password Recovery Procedure for the Cisco Aironet Equipment

Lab Selecting the Root Bridge

Using the Command-Line Interface

Password Recovery Procedure for the Password Recovery Procedure for Cisco Aironet Equipment

Using Cisco IOS Software

Lab Router Configuration Using Setup Instructor Version 2500

Rebooting a Router. Rebooting a Router Task List

Command-Line Interfaces

Using the Command-Line Interface

4(b): Assign the IP address on the Serial interface of Router. Console Cable

assword Recovery Procedure for the Catalyst 4000 Supervisor

Lab 7 Configuring Basic Router Settings with IOS CLI

How to Upgrade from ROMmon Using the Boot Image

Basic IOS Command Structure. Router#disable Router>

WLM1200-RMTS User s Guide

Lab Password Recovery Procedure on a Catalyst 2900 Series Switches

Assigning the Switch IP Address and Default Gateway

Lab Troubleshooting RIP

o Password Recovery Procedure for the Catalyst 6000 MSFC

Table of Contents. Cisco The no service password recovery Command for Secure ROMMON Configuration Example

Cisco ASR 1009-X Router and Cisco ASR 1006-X Router Power Up and Initial Configuration

Using the Cisco IOS Command-Line Interface

Lab Managing IOS Images with TFTP Instructor Version 2500

Password Recovery Procedure for the Cisco 801, 802, 803, 804, 805, 811, and 813 Series Routers

Troubleshooting. Understanding POST Results CHAPTER

Lab Password Recovery Procedure on a Catalyst 2950 Series Switch 2900XL Series

Software Upgrade. Selecting a Cisco IOS Image. Upgrading the Cisco IOS image

Accessing the WAN Chapter 4 - PART II Modified by Tony Chen 07/20/2008

Internetwork Expert s CCNA Security Bootcamp. Securing Cisco Routers. Router Security Challenges

Installing Cisco CSR 1000v Licenses

Configuring Switch Latency Monitoring

Router Recovery with ROM Monitor

Table of Contents. Cisco Password Recovery Procedure for the Cisco Aironet Equipment

Controlling Switch Access with Passwords and Privilege Levels

Lab Spanning-Tree Recalculation

Consolidated Packages and SubPackages Management

Transcription:

About GRUB Mode and the Configuration Register, page 1 Accessing GRUB Mode, page 2 Using the GRUB Menu, page 3 Modifying the Configuration Register (confreg), page 4 Changing the Configuration Register Settings, page 5 Displaying the Configuration Register Settings, page 7 About GRUB Mode and the Configuration Register The Cisco CSR 1000v/ISRv has a 16-bit configuration register in NVRAM. Each bit has value 1 (on or set) or value 0 (off or clear), and each bit setting affects the router behavior upon the next reload power cycle. The GRUB mode supports a subset of configuration register options compared to ROMMON options on other Cisco routers. You can use the configuration register to: Force the router to boot into the GRUB (bootstrap program) Select a boot source and default boot filename Recover a lost password The table below describes the configuration register bits. 1

Accessing GRUB Mode Table 1: Configuration Register Bit Descriptions BitNumber 00 03 06 Hexadecimal 0x0000 0x000F 0x0040 Meaning Boot field. The boot field setting determines whether the router loads an operating system and where it obtains the system image. See the table "Boot Field Configuration Register Bit Descriptions" for details. Causes the system software to ignore the contents of NVRAM. This can be used for password recovery. The next table describes the boot field, which is the lowest four bits of the configuration register (bits 3, 2, 1, and 0). The boot field setting determines whether the router loads an operating system. Table 2: Boot Field Configuration Register Bit Descriptions Boot Field(Bits 3, 2, 1, and 0) 0000 (0x0) 0001-1111 (0x01-0x0F) Meaning At the next power cycle or reload, the router boots to the GRUB (bootstrap program). In GRUB mode, you must manually boot the system image or any other image by using the boot command. At the next power cycle or reload, the router sequentially processes each boot system command in global configuration mode that is stored in the configuration file until the system boots successfully. If no boot system commands are stored in the configuration file, or if executing those commands is unsuccessful, then the router attempts to boot the first image file in flash memory. Note Use the 0x000 setting to configure the router to automatically enter GRUB mode when the router reboots. Accessing GRUB Mode Perform the following step to access GRUB mode: 2

Using the GRUB Menu SUMMARY STEPS 1. enable 2. config-register 0x0000 DETAILED STEPS Step 1 Step 2 Command or Action enable Router> enable config-register 0x0000 Purpose Enables privileged EXEC mode. Enter your password if prompted. Enters the GRUB mode by entering the 0000 value (0x0). Router# config-register 0x0000 What to Do Next The following shows an example of entering GRUB mode. Router(config)# config-register 0x0000 GNU GRUB version 0.97 (638K lower / 3143616K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ESC at any time exits to menu. ] grub> help [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ESC at any time exits to menu. ] confreg [VALUE] help [--all] [PATTERN...] grub> If you enter a question mark at the grub> prompt, the system shows you the two options available, for either viewing the system help or for entering the confreg command. Using the GRUB Menu The GRUB menu is used to display the software images loaded on the router, and to select which image to boot from. To access the GRUB menu, enter ESC at the GRUB prompt. The following shows the GRUB menu display. GNU GRUB version 0.97 (638K lower / 3143616K upper memory) +-------------------------------------------------------------------------+ CSR1000v - csr1000v-universalk9.03.10.00.s.153-3.s-ext.spa.bin CSR1000v - packages.conf CSR1000v - GOLDEN IMAGE 3

Modifying the Configuration Register (confreg) +-------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, or 'c' for a command-line. Select the image to boot the router from using the up and down arrow key. To return to the GRUB prompt, enter the letter c. Modifying the Configuration Register (confreg) This section describes how to modify the configuration register by using the confreg GRUB command. This command is similar to the confreg ROMMON command on other Cisco hardware routers. Because the router does not include a ROMMON mode, the similar functionality is handled in GRUB command mode. You can also modify the configuration register setting from the Cisco IOS XE CLI by using the config-register command in global configuration mode. Note The modified configuration register value is automatically written into NVRAM, but the new value does not take effect until you reset or power-cycle the router. SUMMARY STEPS 1. confreg [value] DETAILED STEPS Step 1 Command or Action confreg [value] grub> confreg 0x2102 Purpose Changes the configuration register settings while in GRUB command mode. Optionally, enter the new hexadecimal value for the configuration register. The value range is from 0x0 to 0xFFFF. If you do not enter the value, the router prompts for each bit of the 16-bit configuration register. What to Do Next The following shows an example of entering GRUB mode and using the configuration register. You access the GRUB mode by entering the Cisco IOS XE config-register command and specifying the value as 0000. Router(config)# config-register 0x0000 GNU GRUB version 0.97 (638K lower / 3143616K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ESC at any time exits to menu. ] 4

Changing the Configuration Register Settings grub> help [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ESC at any time exits to menu. ] confreg [VALUE] help [--all] [PATTERN...] grub> confreg Configuration Summary (Virtual Configuration Register: 0x0) enabled are: boot: the boot loader do you wish to change the configuration? y/n [n ignore system config info? y/n [n automatically boot default system image? y/n [n Configuration Register: 0x0 grub> confreg Configuration Summary (Virtual Configuration Register: 0x0) enabled are: boot: the boot loader do you wish to change the configuration? y/n [n ignore system config info? y/n [n automatically boot default system image? y/n [n Configuration Register: 0x42 grub> confreg 0x2102 Configuration Register: 0x2102 grub> confreg Configuration Summary (Virtual Configuration Register: 0x2102) enabled are: boot: default image do you wish to change the configuration? y/n [n grub> grub> GNU GRUB version 0.97 (638K lower / 3143616K upper memory) ------------------------------------------------------------------- 0: CSR1000v - packages.conf 1: CSR1000v - csr100v-packages-universalk9 2: CSR1000v - GOLDEN IMAGE ------------------------------------------------------------------- Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, or 'c' for a command-line. Highlighted entry is 0: Booting 'CSR1000v - packages.conf' root (hd0,0) Filesystem type is ext2fs, partition type 0x83 kernel /packages.conf rw root=/dev/ram console=ttys1,9600 max_loop=64 HARDWARE= virtual SR_BOOT=harddisk:packages.conf Calculating SHA-1 hash...done SHA-1 hash: calculated 817e1716:e8e62778:7dd0b806:32db2bdd:13e51407 expected 817e1716:e8e62778:7dd0b806:32db2bdd:13e51407 package header rev 1 structure detected Calculating SHA-1 hash...done SHA-1 hash: calculated d4eaba99:34cbda63:26151233:9d0e9aa4:9c625302 expected d4eaba99:34cbda63:26151233:9d0e9aa4:9c625302 Package type:0x7531, flags:0x0 [Linux-bzImage, setup=0x2e00, size=0x2c18c00] [isord @ 0x7e6d0000, 0x191f000 bytes] Changing the Configuration Register Settings You can change the configuration register settings from either the GRUB or the Cisco IOS XE CLI. This section describes how to modify the configuration register settings from the Cisco IOS XE CLI. 5

Changing the Configuration Register Settings To change the configuration register settings from the Cisco IOS XE CLI, complete the following steps: SUMMARY STEPS 1. Power on the router. 2. If you are asked whether you would like to enter the initial dialog, answer no: 3. Enter privileged EXEC mode by typing enable and, if prompted, enter your password: 4. Enter global configuration mode: 5. To change the configuration register settings, enter the config-register value command, where value is a hexadecimal number preceded by 0x: 6. Exit global configuration mode: 7. Save the configuration changes to NVRAM: DETAILED STEPS Step 1 Step 2 Power on the router. If you are asked whether you would like to enter the initial dialog, answer no: Would you like to enter the initial dialog? [yes no After a few seconds, the user EXEC prompt ( Router> ) appears. Step 3 Enter privileged EXEC mode by typing enable and, if prompted, enter your password: Step 4 Router> enable Password: password Router# Enter global configuration mode: Step 5 Router# configure terminal Enter configuration commands, one per line. Edit with DELETE, CTRL/W, and CTRL/U; end with CTRL/Z To change the configuration register settings, enter the config-register value command, where value is a hexadecimal number preceded by 0x: Step 6 Router(config)# config-register 0x value Exit global configuration mode: Step 7 Router(config)# end Router# Save the configuration changes to NVRAM: 6

Displaying the Configuration Register Settings Router# copy running-config startup-config The new configuration register settings are saved to NVRAM, but they do not take effect until the next router reload or power cycle. Displaying the Configuration Register Settings To display the configuration register settings that are currently in effect and the settings that will be used at the next router reload, enter the show version command in privileged EXEC mode. The configuration register settings are displayed in the last line of the show version command output: Configuration register is 0x142 (will be 0x142 at next reload) 7

Displaying the Configuration Register Settings 8