Configure replace from terminal on IOS/IOS-XE

Today I stumbled on a problem that I wanted to replace VPN names in my whole config on CSR1000v. 

Instruction on how to do it I’ve found on invaluable Ivan Pepelnjak’s blog:

http://blog.ipspace.net/2008/01/copy-text-files-into-router-flash.html

Basically I created a file in Notepad++, replaced what I wanted then I copied the new content to new file on flash via ssh session using the instruction in the link provided above e.g.

Afterwards I just replaced current config with the one in file: 

 And voila!

Leave a Reply

Your email address will not be published. Required fields are marked *