28-4
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
Configuring the Switch Using a File on a TFTP Server
To configure the switch using a configuration file that is downloaded from a TFTP server, perform these
steps:
Step 1
Copy the configuration file to the appropriate TFTP directory on the workstation.
Step 2
Log into the switch through the console port or a Telnet session.
Step 3
Configure the switch using the configuration file that is downloaded from the TFTP server with the
copy
tftp config
command. Specify the IP address or host name of the TFTP server and the name of the file
to download.
The configuration file downloads and the commands are executed as the file is parsed line by line.
This example shows how to configure the switch using a configuration file that is downloaded from a
TFTP server:
Console> (enable)
copy tftp config
IP address or name of remote host []?
172.20.52.3
Name of file to copy from []?
dns-config.cfg
Configure using tftp: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)
Configuring the Switch Using a File on a Flash Device
To configure a switch using a configuration file that is stored on a flash device in the flash file system,
perform these steps:
Step 1
Log into the switch through the console port or a Telnet session.
Step 2
Locate the configuration file using the
cd
and
dir
commands (for more information, see
Chapter 26,
“Working With the Flash File System”
).
Step 3
Configure the switch using the configuration file that is stored on the flash device with the
copy
file-id
config
command.
The commands are executed as the file is parsed line by line.