28-6
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 28 Working with Configuration Files
Working with the Configuration Files on the Switch
Uploading a Configuration File to a TFTP Server
To upload a configuration file from a switch to a TFTP server for storage, perform these steps:
Step 1
Log into the switch through the console port or a Telnet session.
Step 2
Upload the switch configuration to the TFTP server with the
copy config tftp
command. Specify the IP
address or host name of the TFTP server and the destination filename.
The file is uploaded to the TFTP server.
This example shows how to upload the running configuration to a TFTP server for storage:
Console> (enable)
copy config tftp
IP address or name of remote host []?
172.20.52.3
Name of file to copy to []?
cat6000_config.cfg
Upload configuration to tftp:cat6000_config.cfg, (y/n) [n]?
y
.....
..........
.......
..........
...........
..
/
Configuration has been copied successfully.
Console> (enable)
Copying the Configuration Files Using SCP or rcp
This section describes how to copy the files using SCP or rcp:
•
rcp Overview, page 28-6
•
SCP Overview, page 28-7
rcp Overview
Remote copy protocol (rcp) provides another method of downloading, uploading, and copying the
configuration files between the remote hosts and the switch. Unlike TFTP, which uses User Datagram
Protocol (UDP), a connectionless protocol, rcp uses Transmission Control Protocol (TCP), which is
connection oriented.
To use rcp to copy the files, the server from or to which you will be copying the files must support rcp.
The rcp
copy
commands rely on the rsh server (or daemon) on the remote system. To copy the files using
rcp, you do not need to create a server for file distribution, as you do with TFTP. You need only to have
access to a server that supports the remote shell (rsh). (Most UNIX systems support rsh.) Because you
are copying a file from one place to another, you must have read permission on the source file and write
permission on the destination file. If the destination file does not exist, rcp creates it for you.