O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

copy — command

Synopsis

copy source [destination]

Description

This command allows you to copy system images and configuration files. You can copy files within the router’s memory (for example, copy running-config startup-config), or you can copy files to or from a TFTP server or an RCP server. Table 17-7 shows possible values for the source and destination parameters. If you omit the destination, the router will prompt you for it.

Table 17-7. Sources and destinations for the copy command

Sources and destinations

Meaning

running-config

The currently running configuration

startup-config

The configuration that will be loaded when the router boots

tftp

An external TFTP server

rcp

An external RCP server

ftp

An external FTP server

flash

The router’s flash filesystem

scp

An external SSH server’s secure copy protocol

slot0: slot1:

The router’s PCMCIA flash memory cards

disk0: disk1:

The router’s internal drives (high-end routers)

bootflash

The internal bootstrap flash memory; only on some devices (4500)

Newer versions of IOS also permit the use of URLs. The syntax of a URL can look like this:

tftp:[[//hostname]/path]/filename
ftp:[[//[username[:password]@]hostname]/path]/filename
rcp:[[//[username@]hostname]/path]/filename
scp:[[//[username@hostname]/path/filename

In each of these URLs, the hostname is simply the hostname or IP address of the end device. TFTP doesn’t require a username or password. FTP and RCP can have an optional username and password, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required