26-4
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
This example shows how to configure the switch using a configuration file 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 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 24,
“Working With the Flash File System”
).
Step 3
Configure the switch using the configuration file stored on the Flash device using the
copy
file-id
config
command.
The commands are executed as the file is parsed line-by-line.
This example shows how to configure the switch using a configuration file 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)