FTP
Cheat sheet · https://pcornel.dk/topic.php?topic=673
Answer
TFTP (UDP 69) and FTP (TCP 21 plus a data connection) transfer IOS images and configurations to and from network devices. TFTP has no authentication; FTP sends credentials in clear text. SCP and SFTP are the secure alternatives.
Remember
Prefer copy scp: (enable ip scp server enable for pushes to the device) or HTTPS. Set the source interface (ip tftp source-interface, ip ftp source-interface) so firewalls see the expected address. TFTP is slow for large images; verify every image with verify /md5 before reloading.
First checks
copy tftp: flash:/copy scp: flash:— transfer with the chosen protocol.dir flash:— file present with the expected size; free space.verify /md5 flash:<image> <md5>— image integrity against the vendor checksum.show running-config | include tftp|ftp|scp— source interfaces and settings.ping <server> source <if>— server reachable from the source interface.
Commands
ip ftp username <username>- Set the FTP username used for file transfers.
ip ftp password <password>- Set the FTP password used for file transfers.
copy running-config ftp:- Copy the running configuration to an FTP server.
copy ftp: flash:- Copy a file from an FTP server to flash.
Verify in this order
server reachable from the source interface → protocol allowed through firewalls → authenticated (FTP/SCP) → file copied → size and MD5/SHA verified
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
FTP · operational reference
| FTP layer | Meaning |
|---|---|
| Control session | Login/commands |
| Active/passive | Data connection model |
| Data transfer | File bytes moved |
| Hash/size | Artifact validation |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=673