cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
345
Views
0
Helpful
5
Replies

Startup config Issue

tahseen12
Level 1
Level 1

Specifying the Startup Configuration File topic

in below link indicates to save after changing the config_file variable.If we save this the new startup config file will be overwritten by running config and when router reboots it will not boot with the new startup config.How this will work andy suggestions?

http://www.cisco.com/en/US/docs/ios/fundamentals/configuration/guide/cf_config-files_ps6350_TSD_Products_Configuration_Guide_Chapter.html#wp1077904

5 Replies 5

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Mohammad,

be aware that this doesn't apply to all platforms but only to those that have a flash filesystem of type A.

see

Specifying the CONFIG_FILE Environment Variable on Class A Flash File Systems

To check what type of filesystem you have use the following link:

http://www.cisco.com/en/US/products/hw/routers/ps341/products_tech_note09186a00800a7515.shtml#topic3

Hope to help

Giuseppe

yes it is right but my question is if we point to new startup config Specifying the CONFIG_FILE Environment Variable and then save Isn't it going to overwrite the new startup with running config.See the steps in the link I attached.

#copy [flash-url | ftp-url | rcp-url | tftp-url | system:running-config | nvram:startup-config] dest-flash-url

#boot config dest-flash-url

#copy system:running-config nvram:startup-config --------This step

Hello Mohammad,

actually after the command boot config the documentation says:

After you specify a location for the startup configuration file, the nvram:startup-config command is aliased to the new location of the startup configuration file. The more nvram:startup-config EXEC command will display the startup configuration, regardless of its location.

Notice in the example that the config file is copied to the flash file twice:

The following example copies the running configuration file to the first PCMCIA slot of the RSP card in a Cisco 7500 series router. This configuration is then used as the startup configuration when the system is restarted.

Router# copy system:running-config slot0:config2

Router# configure terminal

Router(config)# boot config slot0:config2

Router(config)# end

Router# copy system:running-config nvram:startup-config

[ok]

the first copy creates the file in the flash and then you need to perform a write mem after the change.

What is showed by sh bootvar in your case ?

Hope to help

Giuseppe

Thats what I understand but if I do wr mem let say after having a modified startup,it will be overwritten by running config.This means this is only for changing the config file location but what if I want to boot with completely new startup config.

Is config replace or rollback the right option only but this not there in 12.2

Hello Mohammad,

yes the documentation tells that the only effect is to change the config file location not to have a rollback ready copy.

Hope to help

Giuseppe

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card