liveBook · Manning

Copy tftp flash

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

copy tftp flash is a Cisco IOS command form that copies a file from a TFTP server to the local flash file system.

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

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Explains prompts, defaults, direct URL syntax, transfer output, and post-copy verification, while deferring TFTP-server setup.
Examples
Uses a Catalyst switch, a PC at 192.168.1.224, an IOS image filename, transfer output, and show flash: results.
What it assumes
Assumes access to a configured TFTP server and knowledge of the exact remote filename; leaves server setup outside scope.
What you can do after
Operate Cisco IOS file transfers interactively or with URL syntax and verify the copied file in flash:.
How it connects
Connects TFTP, flash file systems, IOS images, DNS, and show flash: verification.

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.