- Copy running-config ftp:[[//username [:password]@] location]/directory]/filename. Copy flash:ios_name ftp:[[//username [:password]@] location]/directory]/filename.
I hope this helps.
To add to Massimilianos post, you can configure a ftp username and password.
ip ftp username username
ip ftp password password
Now lets say i cannot use that ftp server, and i just want to copy the ios to a computer.
The configuration i know i can copy it just doing a show run and copy the text and then pasting it to a notepad, but the ios?
The IOS must be transferred (tftp, ftp,scp, etc).
It's copy source destination
Directory of flash:/
1 -rw- 31626880 Sep 26 2007 23:13:14 -05:00 c7200p-advsecurityk9-mz.124-15.T1.bin
256450560 bytes total (224821248 bytes free)
Let's say my TFTP server is at address 10.1.2.217
7206VXR#copy flash:c7200p-advsecurityk9-mz.124-15.T1.bin tftp
Address or name of remote host ? 10.1.2.217
Destination filename [c7200p-advsecurityk9-mz.124-15.T1.bin]?
I installed a tftp server and when i try to copy the ios...
Directory of flash:/
2 -rwx 6558 Apr 4 1993 20:43:51 +00:00 config.text
3 drwx 64 Mar 1 1993 00:00:06 +00:00 microcode_update
4 drwx 192 Mar 1 1993 00:08:47 +00:00 c3560-ipbase-mz.122-25.SEE2
8 -rwx 27 Apr 4 1993 20:43:51 +00:00 private-config.text
9 -rwx 856 Mar 29 1993 01:20:03 +00:00 vlan.dat
32514048 bytes total (24298496 bytes free)
NetworkSwitch1#copy c3560-ipbase-mz.122-25.SEE2 tftp:
Address or name of remote host ? 192.168.165.95
Destination filename [c3560-ipbase-mz.122-25.SEE2]?
%Error reading flash:c3560-ipbase-mz.122-25.SEE2 (Is a directory)
OK, the IOS image is in the c3560-ipbase-mz.122-25.SEE2 directory (the image will always have a .bin extension). Switches from the factory have the web interface installed. Once you go into the directory you'll see all the files for supporting that, but you should also see c3560-ipbase-mz.122-25.SEE2.bin
Switch# cd c3560-ipbase-mz.122-25.SEE2
[There will be no change in the prompt]
[You should see a bunch of files including the .bin file]
Do your copy from here. To go back type cd ..
Collin is right the ios file is a directory.
you can also try to do check the bin file in other way.
# dir flash:
# dir flash:c3560-ipbase-mz.122-25.SEE2
Press enter you will see the bin file
copy flash:c3560-ipbase-mz.122-25.SEE2/c3560 (press tab) tftp:
You will have to give the tftp server ip address follwed.
Also after the command flash:c3560-ipbase-mz.122-25.SEE2/ i dont rem if it forward or backslah but try out. press tab would complete the ios file name ending by .bin
HOpe this helps
It may also help to give the path name of the file that you are trying to copy. such as:
copy flash:c3560-ipbase-mz.122-25.SEE2/c3560-ipbase-mz.122-25.SEE2.bin tftp