{"id":106,"date":"2014-02-25T16:46:32","date_gmt":"2014-02-25T16:46:32","guid":{"rendered":"https:\/\/learncisco.net\/index.php\/configurations\/"},"modified":"2023-01-10T05:45:27","modified_gmt":"2023-01-09T22:45:27","slug":"configurations","status":"publish","type":"page","link":"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html","title":{"rendered":"IOS Configuration Files"},"content":{"rendered":"
If you run through setup mode, you’ll be asked if you want to use the configuration you just created. If you say Yes, then it will copy the configuration running in DRAM (known as the running-config) into NVRAM and name the file startup-config. You can manually save the file from DRAM to NVRAM by using the\u00a0copy running-config startup-config<\/b>\u00a0command (or the shortest\u00a0copy run start<\/b>):<\/p>\n You can view the files by typing\u00a0show running-config<\/b>\u00a0or\u00a0show startup-config<\/b>\u00a0from privileged mode. The\u00a0sh run<\/b>\u00a0command, which is a shortcut for show running-config, tells us that we are viewing the current configuration.<\/p>\n The\u00a0sh start<\/b>\u00a0command-one of the shortcuts for the\u00a0show startup-config<\/b>\u00a0command- shows us the configuration that will be used the next time the router is reloaded. It also tells us how much NVRAM is being used to store the startup-config file:<\/p>\n …<\/p><\/blockquote>\n You can delete the startup-config file by using the\u00a0erase startup-config<\/b>\u00a0command. I’m using this command each time when I’m starting from scratch with some router and after that reloading it. The final result is – clean as a baby router.<\/p>\n *Mar 1 00:59:19.767: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload command.<\/p><\/blockquote>\n One of the options that you have for backup the configurations is to copy them via the network on some server. This can be done through TFTP protocol, because Cisco IOS has built-in TFTP client. You need to use\u00a0copy run tftp<\/b>\u00a0command, assuming that you have running tftp external server and this server is accessible from the router (check with ping). You can find more information about running a TFTP server in “Useful” tab menu. …<\/p><\/blockquote>\n What a nice way to have multiple configurations on a single router. BUT be carefull, in the flash are stored the IOS and some additional files and if you lose them it can be a disaster! So, just don’t erase your flash before copying the conf file.<\/p>\n","protected":false},"excerpt":{"rendered":"If you run through setup mode, you’ll be asked if you want to use the configuration you just created. If you say Yes, then it will copy the configuration running in DRAM (known as the running-config) into NVRAM and name the file startup-config. You can manually save the file from DRAM to NVRAM by using … Read more<\/a>","protected":false},"author":5,"featured_media":0,"parent":100,"menu_order":25,"comment_status":"closed","ping_status":"closed","template":"cisco-page.php","meta":{"_acf_changed":false,"footnotes":""},"acf":[],"yoast_head":"\nCiscoTests#
\nCiscoTests#copy run start
\nDestination filename [startup-config]?
\nBuilding configuration...
\n[OK]
\nCiscoTests#<\/code><\/p><\/blockquote>\nCiscoTests#sh start
\nUsing 716 out of 155640 bytes
\n!
\nversion 12.3
\nservice timestamps debug datetime msec
\nservice timestamps log datetime msec
\nno service password-encryption
\n!
\nhostname CiscoTests
\n!<\/code><\/p>\nCiscoTests#
\nCiscoTests#erase start
\nErasing the nvram filesystem will remove all configuration files! Continue? [confirm]
\n[OK]
\nErase of nvram: complete
\nCiscoTests#
\n*Mar 1 00:58:59.639: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
\nCiscoTests#
\nCiscoTests#reload
\nProceed with reload? [confirm]<\/code><\/p>\n
\nIt is possible also to save the different config files into the flash: and after that to read them, using the\u00a0more<\/b>\u00a0command.<\/p>\nRouter#
\nRouter#copy run
\nRouter#copy running-config flash:
\nDestination filename [router-confg]?
\nErase flash: before copying? [confirm]\u00a0NO!<\/b>
\nVerifying checksum... OK (0x3674)
\n633 bytes copied in 1.904 secs (332 bytes\/sec)
\nRouter#
\nRouter#more fla
\nRouter#more flash:router-confg
\n!
\nversion 12.3
\nservice timestamps debug datetime msec
\nservice timestamps log datetime msec
\nno service password-encryption
\n!<\/code><\/p>\n