Chapter 35
Working with Configuration Files
To configure a switch using a configuration file that is stored on a Flash device in the Flash file system,
follow these steps:
Log in to the switch through the console port or a Telnet session.
Step 1
Locate the configuration file using the cd and dir commands (for more information, see
Step 2
Files on a Flash Device" section on page
Configure the switch using the configuration file that is stored on the Flash device using the copy file-id
Step 3
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 that is stored on a Flash
device:
Console> (enable) copy bootflash:dns-config.cfg config
Configure using bootflash:dns-config.cfg (y/n) [n]? y
Finished network download.
>>
>> 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)
Console> (enable)
Copying Configuration Files Using TFTP
You can configure the switch using configuration files that you create or download from another switch.
In addition, you can store configuration files on Flash devices on hardware that supports the Flash file
system, configure the switch using a configuration that is stored on a Flash device, or upload the
configuration to a TFTP server.
The following sections describe how to configure the switch using configuration files that are
downloaded from a TFTP server or stored on a Flash device, and how to upload a configuration file to a
TFTP server.
Downloading Configuration Files from a TFTP Server
The following sections describe how to download a configuration file on a TFTP server to the running
configuration or to a Flash device.
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
78-15908-01
34-2).
(134 bytes)
Copying Configuration Files Using TFTP
the"Listing the
35-3