The configure privileged EXEC command enters global configuration mode.
Syntax
configure
Default Configuration
This command has no default configuration.
Command Mode
Privileged EXEC Mode
User Guidelines
There are no user guidelines for this command.
Example
In the following example, a prompt is displayed because no keyword is entered. After the keyword is selected, a message confirming the command entry method is displayed.
Console # configure
Console(config)#
copy
Use the copy privileged EXEC command to copy files from a source to a destination.
Syntax
copysource-url destination-url
source-urlThe source file location URL or reserved keyword being copied.
destination-urlThe destination file URL or reserved keyword.
The following table describes keywords for sources or destinations:
Keyword
Source or destination
running-config
Copy from the current running configuration file.-- Only to another configuration file, or to a TFTP server
startup-config
Copy from the startup configuration file.-- Only to the backup-config file or to a TFTP server
backup-config
Copy from the backup configuration file. -- Only to the startup-config file or a TFTP server
image
If the source represents the active image file, destination represents the inactive image file.
boot
Copy from the BOOT file -- Only to a TFTP server or another unit (if stacked).
tftp:
Source URL (tftp://ip address/filename) for a file on a TFTP network server from which to download. The syntax for this alias is tftp:[[//location]/directory]/filename.
xmodem:
Source for the file from a serial connection that uses the Xmodem protocol.
unit://member/startup-config
Configuration file used during initialization (startup) on one of the units. To copy a file to all the units use all as device name.
unit://member/backup-config
Backup configuration file on one of the units. To copy a file to all the units use all as device name.
unit://member/image
Image file on one of the units. To copy a file to all the units use all as device name.
unit://member/boot
Boot file on one of the units. To copy a file to all the units use all as device name.
Default Configuration
This command has no default configuration.
Command Mode
Privileged EXEC Mode
User Guidelines
The location of a file system dictates the format of the source or destination URL.
The startup-config and the backup-config files cannot be copied to the running-config file.
The entire copying process may take several minutes and differs from protocol to protocol and from network to network.
Understanding Invalid Combinations of Source and Destination
Some invalid combinations of source and destination files exist. Specifically, the following cannot be copied:
If the source file and destination file are the same file.
boot and image cannot be a source file.
xmodem cannot be a destination.
tftp cannot be the source and destination on the same copy.
The following table describes characters used in the copy process.
Character
Description
!
For network transfers, an exclamation point indicates that the copy process is taking place. Each exclamation point indicates the successful transfer of ten packets (512 bytes each).
.
For network transfers, a period indicates that the copy process timed out. Many periods in a row typically mean that the copy process may fail.
Copying a system image file from a Server to Flash Memory
Use the copy source-url image command to copy a system image file from a server to Flash memory.
Copying boot file from a Server to Flash Memory
Use the copy source-url boot command to copy a boot file from a server to Flash memory.
Copying a Configuration File from a Server to the Running Configuration
Use the copy source-url running-config command to load a configuration file from a network server to the device running configuration. The configuration is added to the running configuration as if the commands were typed in the command-line interface (CLI). The resulting configuration file is a combination of the previous running configuration and the loaded configuration file, with the loaded configuration file having precedence.
Copying a Configuration File from a Server to the Startup Configuration
Use the copy source-url startup-config command to copy a configuration file from a network server to the device startup configuration. These commands replace the startup configuration file with the copied configuration file.
Storing the Running or Startup Configuration on a Server
Use the copy running-configdestination-url command to copy the current configuration file to a network server using TFTP. Use the copy startup-configdestination-url command to copy the startup configuration file to a network server.
The configuration file copy can serve as a backup copy.
Saving the Running Configuration to the Startup Configuration
Use the copy running-configstartup-config command to copy the running configuration to the startup configuration file.
Backup the Running Configuration or Startup Configuration to the Backup Configuration
Use the copy running-configbackup-config command to backup the running configuration to the backup configuration file. Use the copy startup-config backup-config command to backup the startup configuration to the backup configuration file.
Example
The following example copies a system image from the TFTP server with an IP address of 172.16.101.101 to a non-active image file.
Console # copytftp://172.16.101.101/file1 image
Accessing file 'file1' on 172.16.101.101...
Loading file1 from 172.16.101.101:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!