|
|
Virtual Configuration Register
This appendix describes the factory default settings of the virtual configuration register, and procedures for changing those settings.
This appendix has the following sections:
Virtual Configuration Register Settings
The router has a 16-bit virtual configuration register in NVRAM. You can use the virtual configuration register to perform the following tasks:
Table E-1 describes each of the virtual configuration register bits.
Table E-1 : Virtual Configuration Bit Meanings
| Bit
Number |
Hexadecimal | Meaning |
|---|---|---|
| 00--03 | 0x0000--0x000F | Boot field (see Table E-2) |
| 06 | 0x0040 | Causes the system software to ignore the contents of NVRAM |
| 07 | 0x0080 | OEM bit enabled |
| 08 | 0x0100 | Break disabled |
| 10 | 0x0400 | IP broadcast with all zeros |
| 13 | 0x2000 | Boots default ROM software if the network boot fails |
| 14 | 0x4000 | IP broadcasts do not have net numbers |
| 15 | 0x8000 | Enables diagnostic messages and ignores the contents of NVRAM |
Changing Configuration Register Settings
You might want to modify the value in the virtual configuration register in order to perform the following tasks:
You can change the virtual configuration register from either the ROM monitor or the operating system software. To change the configuration register from the ROM monitor, refer to the section "Configuration Register" in the appendix "ROM Monitor." To change the configuration register from the system software, do the following:
Figure E-1 : Connecting the Console
The lowest four bits of the virtual configuration register (bits 3, 2, 1, and 0) form the boot field. (See Table E-2.)
Table E-2 : Explanation of Boot Field Configuration Register Bits (00--03)
The boot field specifies a number in binary form. If you set the boot field value to 0, you must have console port access to boot the operating system manually. Refer to the boot command in the section "Command Descriptions" in the appendix "ROM Monitor."
If you set the boot field value to a value of 2 to F, and there is a valid system boot command stored in the configuration file, the router boots the system software as directed by that value. (See Table E-3.) If there are no boot commands in the configuration file, the router attempts to boot the first file in Flash memory.
If there are boot commands in the configuration file, the router software processes each boot command in sequence until the process is successful or the end of the list is reached.
In the following example, the virtual configuration register is set to boot the router automatically from Flash memory and to ignore Break at the next reboot of the router:
The router creates a default boot filename as part of the automatic configuration processes. To form the boot filename, the router starts with cisco and links the octal equivalent of the boot field number, a dash, and the model number. Table E-3 lists the default boot filenames or actions for the processor.
Bit 8 controls the console Break key. Setting bit 8 (the factory default) causes the processor to ignore the console Break key. Clearing bit 8 causes the processor to interpret Break as a command to force the router into the bootstrap monitor, halting normal operation. Break can always be sent in the first 60 seconds while the router is rebooting, regardless of the configuration settings.
Bit 10 controls the host portion of the IP broadcast address. Setting bit 10 causes the processor to use all zeros; clearing bit 10 (the factory default) causes the processor to use all ones. Bit 10 interacts with bit 14, which controls the network and subnet portions of the broadcast address. Table E-4 shows the combined effect of bits 10 and 14.
Table E-4 : Configuration Register Settings for Broadcast Address Destination
Bit 13 determines the router's response to a bootload failure. Setting bit 13 causes the router to load operating software from ROM after six unsuccessful attempts to load a boot file. Clearing bit 13 causes the router to continue indefinitely to attempt loading a boot file. By factory default, bit 13 is set to 0.
Bits 5, 11, and 12 of the configuration register determine the baud rate of the console terminal. Table E-5 shows the bit settings for the eight available rates. (The default baud rate is 9600 bps.)
Enabling Booting from Flash Memory
To enable booting from Flash memory, set bits 3, 2, 1, and 0 to a value between 2 to 15. To specify a filename to boot, enter the system software configuration command boot system flash [device:] [partition:] [filename] in the configuration file.
By specifying the device and partition in the command, you can configure the router to boot from the PCMCIA cards. If you only specify the filename, the router will be configured to boot from Flash memory.
To enter configuration mode while in the system software image, enter the configure command at the enable prompt as in the following example:
To disable Break and enable the boot system flash command, enter the config-register command with a value as follows:
If you set the configuration register value to 0x102, as in this example, you do not need to enter the boot system flash command unless there is more than one image in Flash memory.
Copyright 1988-1996 © Cisco Systems Inc.
Would you like to enter the initial dialog? [yes]:
no
Router>
enable
Password:
<password>
Router#
Router#
configure term
Enter configuration commands, one per line.
Edit with DELETE, CTRL/W, and CTRL/U; end with CTRL/Z
Router#
config-register 0xvalue
Configuration register is 0x142 (will be 0x142 at next reload)
Boot Field
Meaning
00
Stays at the ROM monitor on a reload or power cycle
01
Boots the boot helper image as a system image
02-F
Specifies a default netboot filename
Enables default booting from Flash memory
Enables boot system commands that override the default netboot filename1
1 Values of the boot field are 2 to 15 in the form cisco<n>-model_number, where 2 >= n " 15.
Router# configure terminal
Enter configuration commands, one per line.
Edit with DELETE, CTRL/W, and CTRL/U; end with CTRL/Z
config-register 0x102
Ctrl-Z
Router#
Action/Filename
Bit 3
Bit 2
Bit 1
Bit 0
bootstrap mode
0
0
0
0
cisco2-3640
0
0
1
0
cisco3-3640
0
0
1
1
cisco4-3640
0
1
0
0
cisco5-3640
0
1
0
1
cisco6-3640
0
1
1
0
cisco7-3640
0
1
1
1
cisco10-3640
1
0
0
0
cisco11-3640
1
0
0
1
cisco12-3640
1
0
1
0
cisco13-3640
1
0
1
1
cisco14-3640
1
1
0
0
cisco15-3640
1
1
0
1
cisco16-3640
1
1
1
0
cisco17-3640
1
1
1
1
Bit 10
Bit 14
Address (<net> <host>)
Off
Off
<ones> <ones>
On
Off
<zeros> <zeros>
On
On
<net> <zeros>
Off
On
<net> <ones>
Baud
Bit 5
Bit 12
Bit 11
115200
1
1
1
57600
1
1
0
38400
1
0
1
19200
1
0
0
9600
0
0
0
4800
0
0
1
2400
0
1
1
1200
0
1
0
Gateway# configure
Configuring from terminal, memory, or network [terminal]? term
Enter configuration commands, one per line.
Edit with DELETE, CTRL/W, and CTRL/U; end with CTRL/Z
boot system flash filename
config-reg 0x102
Ctrl-Z
![]()
![]()
![]()
![]()
![]()
![]()
![]()