Cisco WS-C2960-24TC-L Software Guide - Page 551
Copying Configuration Files Using rcp, Preparing to Upload a Configuration File to a TFTP Server
UPC - 882658035005
View all Cisco WS-C2960-24TC-L manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 551 highlights
Chapter 35 Working with Configuration Files Copying Configuration Files Using rcp 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: • 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 the permissions on the file are set to world-write. 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 Step 2 Log in to the switch through the console port or a Telnet session. Upload the switch configuration to the TFTP server using the copy config tftp 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 78-15486-01 Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide-Release 8.1 35-5