03-23-2012 04:59 AM - edited 03-07-2019 05:44 AM
Hello Experts,
Sorry for the poor headline.
Can someone tell me if its possible to convert a running config into a TFTP format without a TFTP Server?
Basically, I'm connected to a virtual lab where the administrators won't allow its members to connect to TFTP Servers. Therefore, I was wondering if I could convert a running config into TFTP format? If that's possible I would then send the file to the device via a hyperterminal or SecureCRT.
Cheers
Carlton
03-23-2012 05:06 AM
Carlton,
TFTP transfers the file as text. Can you telnet into the router? If so, the easiest way is to do the following:
term leng 0
sh run
Then copy all of the lines of your config and save them to a text file.
HTH,
John
Please rate helpful posts...
03-23-2012 05:41 AM
Hi Blakley,
I thought tftp servers transfer for the files in a particular format over port 69?
I'm not sure transfering a txt file to a router would pick up all the configurations? For example, there are certain modes I would need to be in and txt file may not recognise the mode. e.g. if I were in interface config mode and I needed to be in vlan interface configuration mode I don't think the router would pick it up.
I will check it out.
Cheers
03-23-2012 06:36 AM
The protocol itself runs over port 69, like FTP runs over 21, but it doesn't change the format of the file itself. You can send the file to a tftp server with whatever filename you want to send it as, but it's still plain text.
When you copy the text file to the router, assuming you're copying over startup-config, then you'll type:
copy tftp://192.168.1.1/backup.txt startup
It will ask you if you want to overwrite the startup-config file. What the file looks like inside is something like this:
!
interface Fastethernet0/0
ip address 192.168.1.254 255.255.255.0
duplex auto
speed auto
!
ip route 192.168.2.0 255.255.255.0 192.168.1.254
!
!
access-list 10 permit 192.168.2.0 0.0.0.255
!
!
The router knows how to parse the information for your config modes, etc.
HTH,
John
03-24-2012 03:32 AM
J.Blakely,
Thats exactly what I wanted to hear.
Cheers mate.
03-24-2012 06:26 PM
running config into a TFTP format without a TFTP Server?
There is no such thing as a "TFTP format". You need a TFTP server to transfer files from your appliance to your PC client.
For example, when you do the command "sh run | redirect tftp://
Now, if you are using Windows, the you FIRST have to open this file using any other word processing EXCEPT Notepad. You can open using Wordpad. The reason is because Notepad cannot "see" or "understand" the unix carriage return. If you open using Wordpad and then click "Save", then this file can now be opened using Notepad.
03-25-2012 04:02 AM
03-25-2012 02:08 PM
No worries mate.
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