cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3612
Views
30
Helpful
18
Replies

Automatically Copy Config File Cisco 2911 to Cisco 2911

ccu1
Level 1
Level 1

Looking to automatically copy the config file daily from a Cisco 2911 router to another Cisco 2911 router at a remote location without a separate physical TFTP server.  The second Cisco 2911 router receiving the automatic config file copy isn't connected to the production network of the first Cisco 2911 router and is just a hot standby router in case the first router fails.  When the first router fails someone would need to manually connect the production network into the hot standby router.  There also is no management connection on either of these routers as only the first router has a connection to the production network and is managed from the production network.  Any assistance, suggestions or advice would be appreciated. 

18 Replies 18

You would have to use a third device with an out of band management connection to make this possible.

For example, you could use a raspberry pi at the remote site with a console connection to the router.  Have the raspberry pi scp the config from the "hot" router, and then copy that via the serial console port to the backup router. 

 

I searched for documentation on how to use SCP over serial as I've only used it over a network connection.  So far I only found the following...

 

Console allows you to use XMODEM. It is very slow, and IOS would take about an hour to load, but it is still very usable, and speed would not matter in your case.  Get configuration from production router, wither over TFTP or otherwise.  Also you can connect to it through console, and do a copy "startup-config xmodem:" (Don't forget to start XMODEM in your console, by selecting XMODEM RECEIVE option)  Then connect to backup router with console, and do a "copy xmodem: startup-config".

 

Do you have or know of a link that I can follow on how to do this on a Raspberry Pi device and Cisco router?  Also, do you know of a Raspberry pi device or similar that runs on DC?  I'm not familiar with the latest Android devices, what cable would you use to connect the Raspberry pi device?  Is it the USB cable that comes with it and then connect it to a female to female USB converter cable to a USB to serial converter cable to a console cable to the Cisco router's console port? 

Is there or is there a way to have another connection on the Raspberry Pi device to connect it to the backup router?

 

Another potential option.  Configure the standby router with its own dedicated IP address.  Copy the live routers config to the backup router but call the config something like backup-config, instead of startup-config.  Then when you cutover, you could rename the files and reboot.  They want it to be an automated process.  When and if the primary router fails, the person onsite that would do the swap wouldn't have access to login to the routers.

 

Another option, put a pair of USB sticks in the backup router.  The primary USB stick (which you boot from) has a startup-config that gives it a unique IP.  Then copy the live routers config to the secondary USB stick.

Then to make the environment live, swap the USB sticks over.  I need to search for booting from & copying to a USB stick on the routers.  I'm assuming that I would still use SCP to copy from the primary router through the console serial port to a Raspberry Pi device then through the backup router's console serial port to the secondary USB stick.

 

>I searched for documentation on how to use SCP over serial as I've only used it over a network connection.  So far I only found the following...

 

You wouldn't use SCP over serial.  You'd probably just use plain text as it is only a config file.  I would be surprised if it took more than 10s.  You only need to copy the config, not the IOS software image.  I guess you could use zmodem - but that is adding a lot more compelxity that is not needed.

 

You would need basic scripting skills in something like Python, Perl, bash, etc.  If you don't have those skills then you would need to get someone to help you.

ccu1
Level 1
Level 1

Test

fasawasaw91224
Level 1
Level 1

How is that even remotely possible? Remember you are copying the config from Router A to Router B. This manner the IP addressing here.

Review Cisco Networking for a $25 gift card