32-6
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
—
Release 8.1
78-15486-01
Chapter 32 Modifying the Switch Boot Configuration
Setting the BOOT Environment Variable
Setting the Switch to Ignore the NVRAM Configuration
You can cause the system software to ignore the configuration information that is stored in NVRAM
when the switch is restarted. This command affects only the configuration register bits that control
whether the switch ignores the NVRAM configuration and leaves the remaining bits unaltered. This
command only affects the next system restart.
Caution
Enabling the ignore-config parameter is the same as entering the clear config all command; that is, it
clears the entire configuration stored in NVRAM the next time the switch is restarted.
To set the switch to ignore the NVRAM configuration at the next startup, perform this task in privileged
mode:
This example shows how to set the switch to ignore the NVRAM configuration at the next startup:
Console> (enable) set boot config-register ignore-config enable
Configuration register is 0x1860
ignore-config: enabled
auto-config: recurring
console baud: 9600
boot: the ROM monitor
Console> (enable)
Setting the BOOT Environment Variable
The next two sections describe how to modify the BOOT environment variable.
Setting the BOOT Environment Variable
To add a system image to the BOOT environment variable, perform this task in privileged mode:
This example shows how to add system images to the BOOT environment variable:
Console> (enable) set boot system flash bootflash:cat4000.5-1-1.bin
BOOT variable = bootflash:cat4000.5-1-1.bin,1;
Console> (enable) set boot system flash bootflash:cat4000.4-5-2.bin
BOOT variable = bootflash:cat4000.5-1-1.bin,1;bootflash:cat4000.4-5-2.bin,1;
Console> (enable) set boot system flash bootflash:cat4000.6-1-1.bin prepend
BOOT variable = bootflash:cat4000.6-1-1.bin,1;bootflash:cat4000.5-1-1.bin,1;
bootflash:cat4000.4-5-2.bin,1;
Console> (enable)
Task
Command
Set the switch to ignore the contents of NVRAM
at startup.
set boot config-register ignore-config enable
Task
Command
Specify a system image to add to the BOOT
environment variable.
set boot system flash device:[filename]
[prepend] [mod_num]