28-3
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 an example configuration file. This file could be used to set the Domain Name
System (DNS) configuration on multiple switches.
begin
!
#dns
set ip dns server 172.16.10.70 primary
set ip dns server 172.16.10.140
set ip dns enable
set ip dns domain corp.com
end
Downloading the Configuration Files to the Switch Using TFTP
You can configure the switch using the configuration files that you create or download from another
switch. In addition, you can store the configuration files on the flash devices on the hardware that
supports the flash file system, and you can configure the switch using a configuration that is stored on a
flash device.
These sections describe how to configure the switch using the configuration files that are downloaded
from a TFTP server or that are stored on a flash device:
• Preparing to Download a Configuration File Using TFTP, page 28-3
• Configuring the Switch Using a File on a TFTP Server, page 28-4
• Configuring the Switch Using a File on a Flash Device, page 28-4
Preparing to Download a Configuration File Using TFTP
Before you begin downloading a configuration file using TFTP, 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 using the ping command.
• Ensure that the configuration file to be downloaded is in the correct directory on the TFTP server
(/tftpboot on a UNIX workstation).
• Ensure that the permissions on the file are set correctly. The permissions on the file should be set to
world-read.