{"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

CiscoTests#
\nCiscoTests#copy run start
\nDestination filename [startup-config]?
\nBuilding configuration...
\n[OK]
\nCiscoTests#<\/code><\/p><\/blockquote>\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

CiscoTests#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>\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

CiscoTests#
\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

*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.
\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>\n

Router#
\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

…<\/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":"\nIOS Configuration Files - learncisco.net<\/title>\n<meta name=\"description\" content=\"This article explains the ios configuration. Which if you run setup mode, you'll be asked if you want to use configuration you just created.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"IOS Configuration Files - learncisco.net\" \/>\n<meta property=\"og:description\" content=\"This article explains the ios configuration. Which if you run setup mode, you'll be asked if you want to use configuration you just created.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html\" \/>\n<meta property=\"og:site_name\" content=\"learncisco.net\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-09T22:45:27+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html\",\"url\":\"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html\",\"name\":\"IOS Configuration Files - learncisco.net\",\"isPartOf\":{\"@id\":\"https:\/\/www.learncisco.net\/#website\"},\"datePublished\":\"2014-02-25T16:46:32+00:00\",\"dateModified\":\"2023-01-09T22:45:27+00:00\",\"description\":\"This article explains the ios configuration. Which if you run setup mode, you'll be asked if you want to use configuration you just created.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.learncisco.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cisco Certification Courses\",\"item\":\"https:\/\/www.learncisco.net\/courses.html\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CCNA 200-301\",\"item\":\"https:\/\/www.learncisco.net\/courses\/cisco-ccna.html\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Cisco IOS\",\"item\":\"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios.html\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"IOS Configuration Files\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.learncisco.net\/#website\",\"url\":\"https:\/\/www.learncisco.net\/\",\"name\":\"learncisco.net\",\"description\":\"Free online tests for the Cisco CCNA and CCNP exams. Test yourself with more than 4300 different questions.\",\"publisher\":{\"@id\":\"https:\/\/www.learncisco.net\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.learncisco.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.learncisco.net\/#organization\",\"name\":\"learncisco.net\",\"url\":\"https:\/\/www.learncisco.net\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.learncisco.net\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.learncisco.net\/wp-content\/uploads\/2021\/12\/logo-1.png\",\"contentUrl\":\"https:\/\/www.learncisco.net\/wp-content\/uploads\/2021\/12\/logo-1.png\",\"width\":154,\"height\":24,\"caption\":\"learncisco.net\"},\"image\":{\"@id\":\"https:\/\/www.learncisco.net\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"IOS Configuration Files - learncisco.net","description":"This article explains the ios configuration. Which if you run setup mode, you'll be asked if you want to use configuration you just created.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html","og_locale":"en_US","og_type":"article","og_title":"IOS Configuration Files - learncisco.net","og_description":"This article explains the ios configuration. Which if you run setup mode, you'll be asked if you want to use configuration you just created.","og_url":"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html","og_site_name":"learncisco.net","article_modified_time":"2023-01-09T22:45:27+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html","url":"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html","name":"IOS Configuration Files - learncisco.net","isPartOf":{"@id":"https:\/\/www.learncisco.net\/#website"},"datePublished":"2014-02-25T16:46:32+00:00","dateModified":"2023-01-09T22:45:27+00:00","description":"This article explains the ios configuration. Which if you run setup mode, you'll be asked if you want to use configuration you just created.","breadcrumb":{"@id":"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios\/configurations.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.learncisco.net\/"},{"@type":"ListItem","position":2,"name":"Cisco Certification Courses","item":"https:\/\/www.learncisco.net\/courses.html"},{"@type":"ListItem","position":3,"name":"CCNA 200-301","item":"https:\/\/www.learncisco.net\/courses\/cisco-ccna.html"},{"@type":"ListItem","position":4,"name":"Cisco IOS","item":"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-4-cisco-ios.html"},{"@type":"ListItem","position":5,"name":"IOS Configuration Files"}]},{"@type":"WebSite","@id":"https:\/\/www.learncisco.net\/#website","url":"https:\/\/www.learncisco.net\/","name":"learncisco.net","description":"Free online tests for the Cisco CCNA and CCNP exams. Test yourself with more than 4300 different questions.","publisher":{"@id":"https:\/\/www.learncisco.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.learncisco.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.learncisco.net\/#organization","name":"learncisco.net","url":"https:\/\/www.learncisco.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.learncisco.net\/#\/schema\/logo\/image\/","url":"https:\/\/www.learncisco.net\/wp-content\/uploads\/2021\/12\/logo-1.png","contentUrl":"https:\/\/www.learncisco.net\/wp-content\/uploads\/2021\/12\/logo-1.png","width":154,"height":24,"caption":"learncisco.net"},"image":{"@id":"https:\/\/www.learncisco.net\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages\/106"}],"collection":[{"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":3,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages\/106\/revisions"}],"predecessor-version":[{"id":1181,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages\/106\/revisions\/1181"}],"up":[{"embeddable":true,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages\/100"}],"wp:attachment":[{"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/media?parent=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}