![Cisco 2948G - Catalyst Switch Скачать руководство пользователя страница 542](http://html.mh-extra.com/html/cisco/2948g-catalyst-switch/2948g-catalyst-switch_configuration-manual_67462542.webp)
34-4
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
—
Release 8.1
78-15486-01
Chapter 34 Working With the Flash File System
Working With the Flash File System on the Switch
Copying Files
Enter the copy command to perform these tasks:
•
Download a system image or configuration file from a TFTP or rcp server to a Flash device
•
Upload a system image or configuration file from a Flash device to a TFTP or rcp server
•
Configure the switch using a configuration file on a Flash device or on a TFTP or rcp server
•
Copy the current configuration to a Flash device or to a TFTP or rcp server
To copy a file, perform one of these tasks in privileged mode:
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. (135 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)
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)
Task
Command
Copy a Flash file to a TFTP server, Flash memory,
or to the running configuration.
copy file-id {tftp | rcp | flash | file-id | config}
Copy a file from a TFTP server to Flash memory,
or to the running configuration.
copy {tftp | rcp} {flash | file-id | config}
Copy a file from Flash memory to a TFTP server,
or to the running configuration.
copy flash {tftp | rcp | file-id | config}
Copy the running configuration to Flash memory,
or to a TFTP server.
copy config {flash | file-id | tftp | rcp}