The router forms a password username routername. The variable username is the username associated with the current session, routername is the configured host name, and domain is the domain of the router. The username and password must be associated with an account on the FTP server. If you are writing to the server, the FTP server must be properly configured to accept the FTP write request from the user on the router.
If the server has a directory structure, the configuration file or image is written to or copied from the directory associated with the username on the server. For example, if the system image resides in the home directory of a user on the server, specify that user name as the remote username.
Use the ip ftp username and ip ftp password global configuration commands to specify a username and password for all copies.
Include the username in the copy EXEC command if you want to specify a username for that copy operation only. You can copy files through a VRF interface specified in the copy command. Specifying the VRF in the copy command is easier and more efficient because you can directly change the source interface without having the need to change the configuration via a change request.
The following example shows how to copy files through a VRF, using the copy command:. To maintain a configuration file that exceeds size of NVRAM, you should be aware of the information in the following sections:. The service compress-config global configuration command specifies that the configuration file be stored compressed in NVRAM. Once the configuration file has been compressed, the router functions normally.
When the system is booted, it recognizes that the configuration file is compressed, expands it, and proceeds normally. The more nvram:startup-config EXEC command expands the configuration before displaying it. Before you compress configuration files, refer to the appropriate hardware installation and maintenance publication.
If not, you can install new ROMs that support file compression. If the boot ROMs do not recognize a compressed configuration, the following message is displayed:. The Parser Cache feature was developed to rapidly process large configuration files, thereby dramatically improving load time. This improvement is useful primarily for configuration files that repeat similar commands hundreds or thousands of times, such as cases in which thousands of virtual circuits must be configured for subinterfaces, or hundreds of access lists must be configured.
Performance will improve the most for those files in which the same commands are used repeatedly but the numerical arguments change from command to command. However, users with Cisco devices that do not require large configuration files may want to disable the Parser Cache to free the resources used by this feature. Memory used by this feature depends on the size of the configuration files parsed, but is generally less than KB.
To disable the Parser Cache feature, use the no parser cache command in global configuration mode. When the parser cache is disabled, the no parser cache command line is written to the running configuration file.
If you wish to disable the parser cache to free system resources, you should clear the parser cache before issuing the no parser cache command. You will not be able to clear the parser cache after disabling it. Reenabling the Parser Cache--To reenable the Parser Cache feature after disabling it, use the parser cache command in global configuration mode.
You can configure the router to load one or two configuration files at system startup. The configuration files are loaded into memory and read in as if you were typing the commands at the command line. Thus, the configuration for the router will be a mixture of the original startup configuration and the one or two downloaded configuration files. For historical reasons, the first file the router downloads is called the network configuration file.
The second file the router downloads is called the host configuration file. Two configuration files can be used when all of the routers on a network use many of the same commands. The network configuration file contains the standard commands used to configure all of the routers. The host configuration files contain the commands specific to one particular host.
If you are loading two configuration files, the host configuration file should be the configuration file you want to have precedence over the other file. Displays the contents of the running configuration file.
Command alias for the more system:running-config command. Displays the contents of the startup configuration file. Command alias for the more nvram:startup-config command. Enters global configuration mode. Enter the necessary configuration commands. The Cisco IOS documentation set describes configuration commands organized by technology. You may also use the copy running-config startup-config command alias, but you should be aware that this command is less precise. In the following example, the Device prompt name of the Device is configured.
The comment line, indicated by the exclamation mark! Ronger asked a question. I have an ASA and i'm curious where's the startup-config stored? I tried to dir disk0: , disk1:, systemL, flash: but didn't see the startup-config. I didn't see it in nvram too. Some People say that it is hidden. Scully has a good run-cfg point on the more system:running-config there hashed password values are shown unencrypted!!!!
Very interesting article! Thanks for sharing! The "running-config" file is stored in RAM. The "running-config" file is NOT persistent, which means that the changes made in the "running-config" while the router is running are not retained after a reboot. A persistent copy of Cisco Router configuration file is called as "startup-config" file.
The network configuration file contains the standard commands used to configure all of the routers. The host configuration files contain the commands specific to one particular host. If you are loading two configuration files, the host configuration file should be the configuration file you want to have precedence over the other file.
Both the network and host configuration files must reside on a network server reachable via TFTP. You can specify an ordered list of network configuration and host configuration filenames. To configure the router to download configuration files at system startup, perform at least one of the tasks described in the following sections:.
If the router fails to load a configuration file during startup, it tries again every 10 minutes the default setting until a host provides the requested files. With each failed attempt, the router displays the following message on the console terminal:.
Refer to the Internetwork Troubleshooting Guide for troubleshooting procedures. If there are any problems with the startup configuration file, or if the configuration register is set to ignore NVRAM, the router enters the Setup command facility.
See the " Using the Setup Command Facility for Configuration Changes" chapter in this publication for details on the Setup command facility. To configure the Cisco IOS XE software to download a network configuration file from a server at startup, use the following commands in global configuration mode:. Specifies the network configuration file to download at startup, and the protocol to be used TFTP.
If you omit the address, the router uses the broadcast address. You can specify more than one network configuration file. The software tries them in order entered until it loads one. This procedure can be useful for keeping files with different configuration information loaded on a network server. To configure the Cisco IOS XE software to download a host configuration file from a server at startup, use the following commands in global configuration mode:.
Specifies the host configuration file to download at startup, and the protocol to be used TFTP. If you do not specify a host configuration filename, the router uses its own name to form a host configuration filename by converting the name to all lowercase letters, removing all domain information, and appending "-confg. You can specify more than one host configuration file. In the following example, a router is configured to download the host configuration file named hostfile1 and the network configuration file named networkfile1.
The router uses TFTP and the broadcast address to obtain the file. The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies.
Access to most tools on the Cisco Support website requires a Cisco. Table 1 lists the features in this module and provides links to specific configuration information.
Use Cisco Feature Navigator to find information about platform support and software image support. Skip to content Skip to search Skip to footer. Book Contents Book Contents. Find Matches in This Book.
Updated: October 30, Chapter: Managing Configuration Files. Managing Configuration Files Last Updated: May 4, This chapter describes how to create, load, and maintain configuration files.
Finding Feature Information For the latest feature information and caveats, see the release notes for your platform and software release. Types of Configuration Files Startup configuration files startup-config are used during system startup to configure the software. Router more file-url Displays the contents of a specified file. Router show running-config Displays the contents of the running configuration file.
Router show startup-config Displays the contents of the startup configuration file. The Cisco IOS XE software responds with the following prompt asking you to specify the terminal, memory, or a file stored on a network server network as the source of configuration commands: Configuring from terminal, memory, or network [terminal]?
Step 2 Enter the necessary configuration commands. Step 4 Router copy system:running-config nvram:startup-config Saves the running configuration file as the startup configuration file. Router configure terminal Router config! The following command provides the router host name.
To compress configuration files, use the following commands beginning in global configuration mode: Command Purpose Step 1 Router config service compress-config Specifies that the configuration file be compressed.
Step 2 Router config end Exits global configuration mode. Step 4 Router config copy system:running-config nvram:startup-config When you have finished changing the running-configuration, saves the new configuration.
To store the startup configuration in Flash memory, use the following commands beginning in privileged EXEC mode: Command Purpose Step 1 Router copy nvram:startup-config flash-filesystem:filename Copies the current startup configuration to the new location to create the configuration file. Step 2 Router configure terminal Enters global configuration mode.
Step 4 Router config end Exits global configuration mode. Step 6 Router copy system:running-config nvram:startup-config When you have finished changing the running-configuration, saves the new configuration.
The following example stores the configuration file in usb 0: Router copy nvram:startup-config usb0:router-config Router configure terminal Router config boot config usb0:router-config Router config end Router copy system:running-config nvram:startup-config Care must be taken when editing or changing a large configuration.
Step 4 Router config service config Enables the router to download configuration files at system startup. Step 5 Router config end Exits global configuration mode. Step 6 Router copy system:running-config nvram:startup-config Saves the configuration. To disable the Parser Cache feature, use the following command in global configuration mode: Command Purpose Router config no parser cache Disables the Parser Cache feature.
Reenabling the Parser Cache To reenable the Parser Cache feature after disabling it, use the following command in global configuration mode: Command Purpose Router config parser cache Enables the Parser Cache feature. To display the parser statistics, use the following command in privileged EXEC mode: Command Purpose Router show parser statistics Displays statistics about the last configuration file parsed and the status of the Parser Cache feature.
Copying Configuration Files Between Different Locations On many platforms, you can copy configuration files from one Flash memory device, such as internal Flash memory or a Flash memory attached to a USB port, to other locations. The following example copies the file named ios-upgrade-1 from partition 4 of the Flash memory PC Card in usb 0 to the router startup configurations: Router copy bootflash: nvram:startup-config Source filename []?
Compressed configuration from bytes to bytes[OK] bytes copied in Copy in progress Verifying checksum for 'running-config' file OK Erase flash device before writing?
Are you sure you want to erase? Router copy tftp:router-config usb0:new-config Reexecuting the Configuration Commands in the Startup Configuration File To reexecute the commands located in the startup configuration file, use the following command in privileged EXEC m ode: Command Purpose Router configure memory Reexecutes the configuration commands located in the startup configuration file. Clearing Configuration Information You can clear the configuration information from the startup configuration.
Network Versus Host Configuration Files For historical reasons, the first file the router downloads is called the network configuration file.
0コメント