Chapter 30
Using the Flash File System
To copy a file, perform one of these tasks in privileged mode:
Task
Copy a Flash file to a TFTP server, Flash memory,
or to the running configuration.
Copy a file from a TFTP server to Flash memory,
or to the running configuration.
Copy a file from Flash memory to a TFTP server,
or to the running configuration.
Copy the running configuration to Flash memory,
or to a TFTP server.
This example shows how to copy a file from a TFTP server to the running configuration:
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.
>>
>> 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)
This example shows how to download a configuration file from a TFTP server for storage in bootflash:
Console> (enable) copy tftp flash
IP address or name of remote host []? 172.20.52.3
Name of file to copy from []? dns-config.cfg
Flash device [bootflash]?
Name of file to copy to [dns-config.cfg]?
9932056 bytes available on device slot0, proceed (y/n) [n]? y
/
File has been copied successfully.
Console> (enable)
This example shows how to copy the running configuration to Flash memory:
Console> (enable) copy config flash
Flash device [bootflash]? bootflash:
Name of file to copy to []? 4012_config.cfg
78-12647-02
(135 bytes)
Software Configuration Guide—Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4
Command
copy file-id {tftp | rcp | flash | file-id | config}
copy {tftp | rcp} {flash | file-id | config}
copy flash {tftp | rcp | file-id | config}
copy config {flash | file-id | tftp | rcp}
Using the Flash File System
30-5