28-7
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
SCP Overview
The Secure Copy (SCP) provides a secure method for copying the crypto image files. SCP relies on
Secure Shell (SSH) and allows you to copy a crypto file to and from the system through an encrypted
channel.
Downloading the Configuration Files from an rcp or SCP Server
These sections describe how to download a configuration file from an rcp or SCP server to the running
configuration or to a flash device:
•
Preparing to Download a Configuration File Using rcp or SCP, page 28-7
•
Configuring the Switch Using a File on an rcp or SCP Server, page 28-7
Preparing to Download a Configuration File Using rcp or SCP
Before you begin downloading a configuration file using rcp or SCP, do the following:
•
Ensure that the workstation acting as the rcp server supports the remote shell (rsh).
•
Ensure that the workstation acting as the SCP server supports the Secure Shell (SSH).
•
Ensure that the switch has a route to the rcp or SCP server. The switch and the server must be in the
same subnetwork if you do not have a router to route the traffic between the subnets. Check the
connectivity to the rcp server using the
ping
command.
•
If you are accessing the switch through the console or a Telnet session without a valid username,
make sure that the current rcp username is the one that you want to use for the rcp download. You
can enter the
show users
command to view the current valid username. If you do not want to use the
current username, create a new username by entering the
set rcp username
command. The new
username will be stored in NVRAM. If you are accessing the switch through a Telnet session with
a valid username, this username will be used and there is no need to set the rcp username.
Configuring the Switch Using a File on an rcp or SCP Server
To configure a Catalyst 6500 series switch using a configuration file that is downloaded from an rcp or
SCP server, perform these steps:
Step 1
Copy the configuration file to the appropriate directory on the workstation.
Step 2
Log into the switch through the console port or a Telnet session. If you are using SCP, log in using an
SSH session.
Step 3
Configure the switch using the configuration file that is downloaded from the server by entering the
copy
rcp | scp config
command. Specify the IP address or host name of the server and the name of the file to
download.
The configuration file downloads and the commands are executed as the file is parsed line by line.