Copying Configuration Files Using Rcp - Cisco WS-C2948G-GE-TX Configuration Manual

Catalyst 4500 series switch
Table of Contents

Advertisement

Chapter 35
Working with Configuration Files
Preparing to Upload a Configuration File to a TFTP Server
Before you attempt to upload a configuration file to a TFTP server, do the following:
Uploading a Configuration File to a TFTP Server
To upload a configuration file from a switch to a TFTP server for storage, follow these steps:
Step 1
Log in to the switch through the console port or a Telnet session.
Step 2
Upload the switch configuration to the TFTP server using the copy config tftp command or the write
network 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 on a switch 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 []? cat4003_config.cfg
Upload configuration to tftp:cat4003_config.cfg, (y/n) [n]? y
.....
..........
.......
..
/
Configuration has been copied successfully.
Console> (enable)

Copying Configuration Files Using rcp

The Remote Copy Protocol (rcp) provides another way to download, upload, and copy config files
between remote hosts and the switch. rcp uses the Transmission Control Protocol (TCP), a
connection-oriented protocol; TFTP uses the User Datagram Protocol (UDP), which is a connectionless
protocol.
To use rcp to copy files, the server from or to which you will be copying files must support rcp. The rcp
copy commands rely on the remote shell (rsh) server (or daemon) on the remote system. To copy files
using rcp, you do not need to create a server for file distribution, as you do with TFTP. You need only to
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
78-15908-01
Ensure that the workstation acting as the TFTP server is configured properly.
Ensure that the switch has a route to the TFTP server. The switch and the TFTP server must be in
the same subnetwork if you do not have a router to route traffic between subnets. Check connectivity
to the TFTP server using the ping command.
You might need to create an empty file on the TFTP server before uploading the configuration file.
On a UNIX workstation, create an empty file by entering the touch filename command, where
filename is the name of the file you will use when uploading the configuration to the server.
If you are overwriting an existing file (including an empty file, if you had to create one), ensure that
the permissions on the file are set correctly. Make sure that the permissions on the file are set to
world-write.
Copying Configuration Files Using rcp
35-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents