![Cisco 2948G - Catalyst Switch Configuration Manual Download Page 549](http://html.mh-extra.com/html/cisco/2948g-catalyst-switch/2948g-catalyst-switch_configuration-manual_67462549.webp)
35-3
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
—
Release 8.1
78-15486-01
Chapter 35 Working with Configuration Files
Copying Configuration Files Using TFTP
To configure a switch using a configuration file stored on a Flash device in the Flash file system, follow
these steps:
Step 1
Log in to 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 the
“Listing the
Files on a Flash Device” section on page 34-2
).
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 bootflash:dns-config.cfg config
Configure using bootflash: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)
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 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 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.