Downloading Configuration Files From An Rcp Server - Cisco WS-C2948G-GE-TX Configuration Manual

Catalyst 4500 series switch
Table of Contents

Advertisement

Copying Configuration Files Using rcp
have access to a server that supports 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.

Downloading Configuration Files from an rcp Server

The next two sections describe how to download a configuration file from an rcp server to the running
configuration or to a Flash device.
Preparing to Download a Configuration File Using rcp
Before you begin downloading a configuration file using rcp, do the following:
Configuring the Switch Using a File on an rcp Server
To configure a switch using a configuration file that is downloaded from a rcp server, follow these steps:
Step 1
Copy the configuration file to the appropriate rcp directory on the workstation.
Step 2
Log in to the switch through the console port or a Telnet session.
Step 3
Configure the switch using the configuration file that is downloaded from the rcp server using the copy
rcp config command or the configure host file [rcp] command. Specify the IP address or host name of
the rcp 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.
This example shows how to configure a switch using a configuration file that is downloaded from an rcp
server:
Console> (enable) copy rcp config
IP address or name of remote host []? 172.20.52.3
Name of file to copy from []? dns-config.cfg
Configure using rcp:dns-config.cfg (y/n) [n]? y
/
Finished network download.
>>
>> set ip dns server 172.16.10.70 primary
172.16.10.70 added to DNS server table as primary server.
>> set ip dns server 172.16.10.140
172.16.10.140 added to DNS server table as backup server.
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
35-6
Ensure that the workstation acting as the rcp server supports the rsh.
Ensure that the switch has a route to the rcp server. The switch and the server must be in the same
subnetwork if you do not have a router to route traffic between subnets. Check 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 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 rcp username using 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.
(134 bytes)
Chapter 35
Working with Configuration Files
78-15908-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents