cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
23784
Views
0
Helpful
7
Replies

Copy config to new router

jnutt3188
Level 1
Level 1

We have some older routers and are upgrading to the 1800 series. I have a .txt file that has the config currently running on the old routers but is there an easy way to pasted the config to the new router?

Ive searched and there seems to be some pay versions of this. Also I seen that there was a way with a tftp or ftp server. Is there any other just copy and paste method? If not what would be the next easiest and free way?

4 Accepted Solutions

Accepted Solutions

amit-singh
Level 8
Level 8

Hi friend,

Yes, you can cut , copy and patse the config on the router direcly. First of all open your text pad and change the config as per the new 1841 router interfaces. Once you think that you have modified the config as per the interfaces of the rotuter copy it and paste it in the router global configuration mode.

Config t

right click and paste to host.

Or you can TFTP the config to the router's flash and then copy it to running-config.Make sure that your TFTP up and running and the config file is located in the TFTP directory, then

Router# Copy tftp:config.txt flash:

Once the copy is done

Router# copy flash:config.txt running-config

Router# Wr mem

HTH, Please rate if it does.

-amit singh

View solution in original post

smothuku
Level 7
Level 7

Hi ,

There are several ways to move a configuration. You can save the current configuration to a tftp server then copy the file from the tftp server to the router.

The commands are:

copy run tftp

then in the new router:

copy tftp flash

(OR)

If the configuration needs to be copied from another router, connect to that router through the console or Telnet.

At the Router > prompt, issue the enable command and provide the required password. The prompt changes to Router#, indicating that the router is now in privileged mode.

To force the router to return the entire response at once, rather than a screen at a time, issue the terminal length 0 command.

This allows you to capture the configuration without extraneous --more-- prompts generated when the router responds a screen at a time.

On the HyperTerminal menu, select Transfer > Capture Text. The Capture Text window appears.

Name this file config.txt.

To dismiss the Capture Text window and begin the capture, click Start.

Issue the show running-config command and allow time for the router to complete its response.

To end the screen capture, select Transfer > Capture Text > Stop on the HyperTerminal menu.

Open the config.txt file you created in any text editor, such as Notepad or Wordpad.

Search for and remove any line that starts with AAA.

Note: This step removes any security commands that could lock you out of the router.

For each interface that is followed by shutdown, leave it as it is.

For all other interfaces, issue the no shutdown command, as shown in this example:

!

interface Serial0/0

no ip address

no ip directed-broadcast

no shutdown

!

Save the file.

Connect to the router that needs the configuration.

Open the config.txt file.

Highlight the entire contents of the config.txt file.

To accomplish this, drag the cursor from before the first character to after the last character in the file while holding down the left mouse button. If you are using Notepad, select Edit > Select All from the menu.

Copy the selected text to the Windows clipboard.

To copy, you can either select Edit > Copy from the text editor's menu, or hold down the CTRL key and simultaneously press the C key.

Switch to the HyperTerminal window and issue the configure terminal command at the Router# prompt and select Enter.

Paste the configuration file into the router by selecting Edit > Paste to Host on the HyperTerminal menu.

After the configuration has finished pasting, and the router brings you back to the configuration prompt, issue the copy running-config startup-config command. This writes the configuration into memory.

To return to the Router# prompt, issue the exit command.

Thanks,

satish

View solution in original post

Hi,

If you want to erase the whole configuration then do the following:

Router# Erase nvram:

Say "yes" to delete the whole config.

Router#reload

HTH,

-amit singh

View solution in original post

Hi,

If you want to erase the whole configuration then do the following:

Router# Erase nvram:

Say "yes" to delete the whole config.

Router#reload

HTH,

-amit singh

View solution in original post

7 Replies 7

amit-singh
Level 8
Level 8

Hi friend,

Yes, you can cut , copy and patse the config on the router direcly. First of all open your text pad and change the config as per the new 1841 router interfaces. Once you think that you have modified the config as per the interfaces of the rotuter copy it and paste it in the router global configuration mode.

Config t

right click and paste to host.

Or you can TFTP the config to the router's flash and then copy it to running-config.Make sure that your TFTP up and running and the config file is located in the TFTP directory, then

Router# Copy tftp:config.txt flash:

Once the copy is done

Router# copy flash:config.txt running-config

Router# Wr mem

HTH, Please rate if it does.

-amit singh

That looks like it worked but is there a way to clear the current running config on the new router before i paste everything over?

Hi,

If you want to erase the whole configuration then do the following:

Router# Erase nvram:

Say "yes" to delete the whole config.

Router#reload

HTH,

-amit singh

smothuku
Level 7
Level 7

Hi ,

There are several ways to move a configuration. You can save the current configuration to a tftp server then copy the file from the tftp server to the router.

The commands are:

copy run tftp

then in the new router:

copy tftp flash

(OR)

If the configuration needs to be copied from another router, connect to that router through the console or Telnet.

At the Router > prompt, issue the enable command and provide the required password. The prompt changes to Router#, indicating that the router is now in privileged mode.

To force the router to return the entire response at once, rather than a screen at a time, issue the terminal length 0 command.

This allows you to capture the configuration without extraneous --more-- prompts generated when the router responds a screen at a time.

On the HyperTerminal menu, select Transfer > Capture Text. The Capture Text window appears.

Name this file config.txt.

To dismiss the Capture Text window and begin the capture, click Start.

Issue the show running-config command and allow time for the router to complete its response.

To end the screen capture, select Transfer > Capture Text > Stop on the HyperTerminal menu.

Open the config.txt file you created in any text editor, such as Notepad or Wordpad.

Search for and remove any line that starts with AAA.

Note: This step removes any security commands that could lock you out of the router.

For each interface that is followed by shutdown, leave it as it is.

For all other interfaces, issue the no shutdown command, as shown in this example:

!

interface Serial0/0

no ip address

no ip directed-broadcast

no shutdown

!

Save the file.

Connect to the router that needs the configuration.

Open the config.txt file.

Highlight the entire contents of the config.txt file.

To accomplish this, drag the cursor from before the first character to after the last character in the file while holding down the left mouse button. If you are using Notepad, select Edit > Select All from the menu.

Copy the selected text to the Windows clipboard.

To copy, you can either select Edit > Copy from the text editor's menu, or hold down the CTRL key and simultaneously press the C key.

Switch to the HyperTerminal window and issue the configure terminal command at the Router# prompt and select Enter.

Paste the configuration file into the router by selecting Edit > Paste to Host on the HyperTerminal menu.

After the configuration has finished pasting, and the router brings you back to the configuration prompt, issue the copy running-config startup-config command. This writes the configuration into memory.

To return to the Router# prompt, issue the exit command.

Thanks,

satish

Is there a way to clear the current running config before i copy the new config over?

Hi,

If you want to erase the whole configuration then do the following:

Router# Erase nvram:

Say "yes" to delete the whole config.

Router#reload

HTH,

-amit singh

Jake

There really is not any way to clear the running config before you copy the new config over. The running config is what is governing the operation of the router. And if you were to clear it out the router would basically stop processing (it would have no IP addresses, it would have no interface parameters, it would have no access lists, it would have no routing information - the list goes on of what it would not have). The closest you can come to that is the suggestion from Amit that you erase nvram (erase startup-config is the same thing) and reload. If there is not a config in startup config when the router boots it will have only a skeleton config over which you can copy your config. Note that to do this you must be connected on the console port.

HTH

Rick

HTH

Rick