[Original tips] save figuration files with Dynagen

[Original tips] save figuration files with

There are many ways to save figuration files, here I’d like to give you some suggestions:
f0/0 = NIO_gen_eth:\Device\NPF_{BA68CE2E-1ACE-4DCB-AF5D-92179DD5F49C}

Method 1: we usually use TETP, i.e. use f0/0 = NIO_gen_eth:\Device\NPF_{BA68CE2E-1ACE-4DCB-AF5D-92179DD5F49C} in the net configuration file to connect to local host, install a TETP  server software (here we suggest tftpd32.exe)on local host(of course you can also install on other machines as long as they are on the same LAN), set the Ethernet interface of the virtual router on the same network segment as your machine. Then copy run tftp under EXEC mode and input IP address of TFTP server. Finally, press “enter”.

Method 2: Use copy/paste on terminal window. Perform show run on the terminal, then copy the complete configuration file and paste it to text file. The configuration file may be very long and you need to press the “space” many times to get a complete file, which would be annoying. In such case you can perform the following order so that it can display more lines on the terminal window.

R1#conf terminal
R1(config)#line console 0
R1(config-line)#length 500
R1(config-line)#end
R1#

Here the number after length is between 0 and 512, with the unit “line”. I think 500 is enough? If you are not used to it you can return to your original use.

Method 3: this is similar to method 2. If you don’t want to copy/paste and if you are using SecureCRT, you can press “Transfer->receive ASCII ….”And input the name for files you want to save in the pop-up dialog box. Then input show run in the terminal. Remove the hook before “Transfer->receive ASCII ….” after full display, or you cannot open the file.

Method 4: use export command offered by . Attention: save the configuration file with write command or copy run start before you use this command. Then input the following command:
=> export R1 d:\
The directory “d:\” already exists. Ok to overwrite (Y/N)? y
Exporting R1 to “d:\\R1.cfg”
=>

You will see a file named R1.cfg in D:\ after you finish these command. Of course, you can use export /all D:\ to export configuration files of all the devices.

If you want to import the configuration file you saved before, input import /all D:\ command.

Method 5: use save command of . In this way the backup configuration information will be stored in the current net document. This information is processed information which you cannot read. It will add in each router a property.

[[router R1]]
model = 3660
f0/0 = NIO_gen_eth:\Device\NPF_{BA68CE2E-1ACE-4DCB-AF5D-92179DD5F49C}
configuration = IQohIExhc3QgY***********Cg==

When you start the net file next time, the system will prompt you whether to load configuration information or not. You can choose as you wish.

Related Posts

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)