28-5
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
This example shows how to configure the switch using a configuration file that is stored on a flash
device:
Console> (enable)
copy slot0:dns-config.cfg config
Configure using slot0:dns-config.cfg (y/n) [n]?
y
Finished network download. (134 bytes)
>>
>> 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.
>> set ip dns enable
DNS is enabled
>> set ip dns domain corp.com
Default DNS domain name set to corp.com
Console> (enable)
Uploading the Configuration Files to a TFTP Server
These sections describe how to upload the running configuration or a configuration file that is stored on
a flash device to a TFTP server:
•
Preparing to Upload a Configuration File to a TFTP Server, page 28-5
•
Uploading a Configuration File to a TFTP Server, page 28-6
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 on using 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 the traffic between the subnets. Check the
connectivity to the TFTP server by entering 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
that 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. The permissions on the file should be set to world-write.