Saving a Cisco switch configuration requires copying the running config to the startup config, ensuring all changes persist through a reload. Two commands accomplish this: the explicit copy running-config startup-config and the shorthand write memory.
Saving Cisco Switch Configuration
At this point in time I made a lot of changes on my switch. I want to make sure I capture all those changes, and so I need to save it out. I recommend save often — every time you make a change, save. In fact, a little later on I'll show you the method that I do anytime I make a change on devices, but for now let's just talk about how we save our files.
There's the copy command. If I type in copy on my switch, and then I'll give it the question mark, these are all the different devices I can copy from, and I can copy specific files. One of the things that shows up in here is my running config, so my active configuration on this device.
So what I'm going to do is I'm going to type in running config, and then I'll do another question mark, and then it lists the same locations here, and I want to go to the startup config. The copy command goes from one location to another: I'm copying from the running config and I'm copying to the startup config, so the running config is going to replace the startup config, and the startup config now will have all the current settings on it.
So I do startup-config, I hit enter, and it's going to say, are you sure? This is going to overwrite this startup config. I'm going to say yes, I'm sure, and now it is writing over that. That took a little bit of time, and now it's done. Now I've saved the configuration, so if I were to reload this switch, then I would end up with all of the same settings and everything that there currently is, because I've got it saved now.
The other thing that I can type in here to save — I can do write memory. This is the actual direct command to actually save your configuration. So, building configurations, and then it says OK, so it's now saved that running config to the startup config.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →