copy tftp flash is a Cisco IOS command form that transfers a known file from a TFTP server into the device's local flash: file system, commonly for placing a newer IOS image on a switch. section 8.1.2
Use the interactive form when transferring a file:
- Enter the TFTP server address or DNS name. section 8.1.2
- Enter the exact source filename; TFTP does not provide a file listing. section 8.1.2
- Accept the destination filename default or provide another local filename. section 8.1.2
- Use the noninteractive syntax copy tftp://server-ip/src-filename flash:/dst-filename to supply these values in the command. section 8.1.2
Copy an IOS image
SW1# copy tftp: flash:\nAddress or name of remote host []? 192.168.1.224\nSource filename []? c2960c405-universalk9-mz.152-7.E7.bin\nDestination filename [c2960c405-universalk9-mz.152-7.E7.bin]?\nAccessing tftp://192.168.1.224/c2960c405-universalk9-mz.152-7.E7.bin...\n[OK – 18179072 bytes]\n18179072 bytes copied in 200.831 secs (90519 bytes/sec)\n\nVerify the result with show flash:; the new image appears alongside the currently used image. section 8.1.2
Switch# show file systems
File Systems:
Size(b) Free(b) Type Flags Prefixes
- - opaque rw system: #1
- - opaque rw tmpsys:
249872384 235347968 disk rw crashinfo:
* 1624104960 1126379520 disk rw flash: #2
2024710144 1911066624 disk ro webui:
- - opaque rw null:
- - opaque ro tar:
- - network rw tftp: #3
2097152 2085006 nvram rw nvram: #4
- - opaque wo syslog:
. . .
#1 system:, where the running-config is stored, uses the opaque type.
#2 flash: uses the disk type; the asterisk indicates that this is the default file system.
#3 tftp: uses the network type.
#4 The device’s non-volatile RAM (nvram:) has its own type: nvram.
Inspect file-system types and prefixes to distinguish network-based tftp: from local disk-based flash:. section 8.1.2
