Saturday, 21 December 2013

Copying files on a Cisco Router via FTP

This example enters the FTP username and password into the routers config.

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config) #ip ftp username ernie
Router(config) #ip ftp password erniepassword
Router(config) #end
Router#copy ftp: running-config
Address or name of remote host [192.168.1.1] ? 192.168.1.1
Source filename [ ] ? test
Destination filename [ running-config] ?
Accessing ftp://192.168.1.1/test. . .
Loading /test
[ OK - 24/4096 bytes]
24 bytes copied in 0. 276 secs (87 bytes/sec)
Router#

This example uses the username and password entered into the command line which overrides any username/password configured in the router's config.

Router#copy ftp: //ernie:erniepassword@192.168.1.1/c3845-advipservicesk9-mz.124-3i.bin slot1:
Destination filename [c3845-advipservicesk9-mz.124-3i.bin] ?
Accessing ftp: //ijbrown: ianpassword@192.168.1.1/c3845-advipservicesk9-mz.124-3i.bin. . .
Loading pub/c3845-advipservicesk9-mz.124-3i.bin ! ! ! !
Erase slot1: before copying? [ confirm]
Erasing the slot1 filesystem will remove all files! Continue? [ confirm]
Erasing device. . . eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee . . . erased
Erase of slot1: complete
Loading pub/c3845-advipservicesk9-mz.124-3i.bin
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
[ OK - 11819052/4096 bytes]
Verifying checksum. . . OK (0x3256)
11812352 bytes copied in 266. 956 secs (44573 bytes/sec)
Router#

No comments:

Post a Comment