Join Denise Allen-Hoyt for an in-depth discussion in this video Saving and viewing configurations, part of Learning Cisco CLI Switch Configuration.
- It is always a good idea to save your configuration after you've done a number of settings. This is true whether you're on a switch or a router, or even if you're just doing a Word document. It's always good to save and to save often. The configuration file in the switch, I'm gonna log in here and show. This is enabled. Expand the window. So the configuration, as you change the settings in the switch, that configuration is saved in RAM. What you wanna do is to make sure that you have saved what's in RAM to NVRAM, which is a type of flash that stores the running config as the startup config, so that if the switch is rebooted or it loses power, that configuration file will be reloaded and will be preserved.
It's very easy to save the configuration file. And I'm gonna show you what the configuration file looks like. Currently if you want to see what you have done, you issue a show run. You can see that this is what we have done so far on the switch. You hit the space bar to go down a full screen at a time. You can see the banner message of the day there. We can also do a show start, this is short for show startup-config.
If I hit Enter you can see that the startup-config is not present. That simply means that we have not copied what's in the running configure in RAM to the NVRAM yet. The command to do so is quite easy. You just go copy running-config to startup-config. You hit Enter. It asks you if you would like to keep the default name of startup-config. Which is a best practice 'cause that is what the switch will look for when it goes through its initial boot up routine.
We hit Enter. We get a response of OK, meaning what is in RAM has now been saved to the NVRAM. We can now do a show start, and that command is show startup-config, and you can see that the configuration file now as displayed is the same as what is in RAM.
- Accessing a switch
- Configuring the terminal program
- Configuring a switch hostname
- Saving and viewing configurations
- Securing access
- Encrypting passwords
- Assign an IP address to a switch
- Exploring port modes and security
- Creating VLANs
- Resetting a switch