I use the 3560X model and I have a question.
Would I be able to save multiple run config files, allowng me to be able to select the desired one, instead of having to rewrite the configuration.
that I want to use.
Yes you can but you need to change the boot variable string so the switch will know what config file to use.
Alternatively, you can "compare" the running-config with another file and it will highlight what line(s) are missing or changed.
"Alternatively, you can "compare" the running-config with another file and it will highlight what line(s) are missing or changed."
Thank you for this tip! (+5) "show archive config diff"
I did not know about it.
Learn something new everyday!
One thing I keep learning is how much I don't know. :)
copy startup flash:config_1 - this will copy the startup config to switch's flash with a filename config_1.bkp
copy startup flash:config_2 - this will copy the startup config to switch's flash with a filename config_2.bkp
and so on...
Then you can restore config later by issuing this command:
copy flash:config_1 startup
I have been practicing on a 2950 switch before atttempting on the 3560x. Having difficulty getting two different files saved. Seems when I bring up the second config file and do a copy startup-config running-config command that the current running file is not overwriten. What could I be doing wrong?
I don't have 3560X to test with so don't know exactly.
Other way of doing this is using the ARCHIVE command.
!!!! Enable archiving.
!!!! Archive running config.
!!!! show archives
The maximum archive configurations allowed is 10.
There are currently 3 archive configurations saved.
The next archive file will be named flash:/configs/-<timestamp>-3
Archive # Name
1 :Error - Bad file number
3 flash:/configs/Jun-12-10-12-34.751-AEST-2 <- Most Recent
!!!! Compare two IOS configuration files
switch#show archive config differences flash:/configs/Jun-12-10-06-29.363-AEST-1 flash:/configs/Jun-12-10-12-34.751-AEST-2
!Contextual Config Diffs:
!No changes were found
!!!! Replace the running-config with a new config file
switch#configure replace flash:configs/Jun-12-10-12-34.751-AEST-2
Yes it is possible to load multiple iOS depending upon the flash memory.
use this command: copy startup flash
After some time I was able to find the solution to my question. From the switch prompt:
1) copy running-config flash:<name of file>; repeat for another configuration that you want saved.
2) show flash<to verify the configuration files you saved>
3) configure replace flash:<name of file>; this will restore the selected file and overwrite the current
running-config file in RAM.
4) copy running-config startup-config
In previous attempts to copy a configuration file from flash to overwrite the current running-config flie using the "copy" command, simply did not overwrite what was in RAM. This will now allow me to save
multiple port configurations and restore the configuration that I want to use, saving time by not having to rewrite the port configurations.
I hope this will help other members and please comment!