26-5
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 26 Working with Configuration Files
Working with Configuration Files on the Switch
Uploading Configuration Files to a TFTP Server
These sections describe how to upload the running configuration or a configuration file stored on a Flash
device to a TFTP server:
•
Preparing to Upload a Configuration File to a TFTP Server, page 26-5
•
Uploading a Configuration File to a TFTP Server, page 26-5
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. On a Sun workstation,
make sure that the /etc/inetd.conf file contains this line:
tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -p -s /tftpboot
Make sure that the /etc/services file contains this line:
tftp 69/udp
Note
You must restart the inetd daemon after modifying the /etc/inetd.conf and /etc/services
files. To restart the daemon, either stop the inetd process and restart it, or enter a
fastboot
command (on the SunOS 4.x) or a
reboot
command
(on Solaris 2.x or SunOS 5.x). Refer
to the documentation for your workstation for more information about the TFTP daemon.
•
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.
To create an empty file, enter 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 as world-write.
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.