09-01-2013 06:56 AM - edited 03-04-2019 08:55 PM
I have a question is it possible to transfer files such as running-config, IOS image over the internet, send it to a TFTP server, SCP server?
09-01-2013 07:10 AM
Hello,
Yes, absolutely, that is possible. The copy command can be used for that. It is used in the usual manner - copy source destination. For example:
copy running-config tftp://192.0.2.1/config.txt
copy flash:c3560-ipbasek9-mz.122-52.SE.bin scp://10.0.0.1
Use the ? key to find out the names of source and destination filesystems when using the copy command.
Best regards,
Peter
09-01-2013 07:21 AM
will tell what the intention is, the router is at home and is connected to the internet and I sit my laptop at school and wants to copy files from the router as the running-config, IOS image to my laptop is this possible?
09-01-2013 08:14 AM
Hi,
The direction about which you originally wrote about - the router contacting a faraway TFTP/SCP server - would be possible only if you had a SCP/SFTP server installed at your laptop, and at the same time, if your laptop at your school had a publicly reachable IP address (which I strongly doubt).
If your router supports SCP server functionality (check for the presence of the ip scp server enable global configuration command) then it may be possible to connect to it using SCP client. The router itself would server as an SCP server, and should allow you to copy files from and to it.
Best regards,
Peter
09-01-2013 09:33 AM
yes the router supports scp correct this command copy flash: C3560-ipbasek9-mz.122-52.SE.bin scp :/ / public ip?
09-01-2013 09:54 AM
Hello,
yes the router supports scp correct this command copy flash: C3560-ipbasek9-mz.122-52.SE.bin scp :/ / public ip?
This would work if the SCP server is accessible on a public IP address. However, as I explained earlier, if you want to copy the files to your laptop in the school then your laptop must have a public IP address and must run a SSH server. Does your laptop meet both these requirements?
Best regards,
Peter
09-01-2013 10:00 AM
yes scp server running on my laptop and I have a public IP address does this work?
09-01-2013 10:17 AM
Hi,
Well, if your laptop has a public address then the command
copy flash:file scp://X.X.X.X
where X.X.X.X is the public IP address of your laptop would indeed work. You can also replace the flash:file with running-config, startup-config or other filename you want to copy from your router to your laptop.
Best regards,
Peter
09-01-2013 11:22 AM
my laptop sits on a router that has a public ip does that work?
09-01-2013 11:33 AM
Hi,
Let me put it differently: if you can ping from your router to your laptop then most probably, you will also be able to issue the aforementioned copy commands on the router to copy files from it to your laptop. You may try it right away - at most, it won't work and the copy operation will time out - there is nothing that could go wrong.
Best regards,
Peter
09-01-2013 11:38 AM
there is sometimes a way for files from the router to convert your laptop? About
09-01-2013 11:43 AM
Hello,
I apologize - I do not understand your question. Can you rephrase it differently, perhaps provide an example of what you are trying to accomplish in this "conversion"?
Best regards,
Peter
09-01-2013 11:55 AM
is there some way that what succeeds or laptop must have a public ip?
09-01-2013 12:01 PM
Hi,
There must be a workable IP connectivity between the laptop and the router. If the laptop is not connected directly to the router but is rather somewhere "outside", behind an internet connection (at your school, as you indicated), then it must have a public IP address because the communication between the router and the laptop will be done over public internet - so the IP addresses also have to be public.
Best regards,
Peter
09-09-2013 10:22 PM
I know the public IP address that my laptop is connected with it is possible to send the laptop files over the Internet
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide