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

Switch Running Configs

Senbonzakura
Level 1
Level 1

Morning everyone,

How do I export a running config and add it to another switch?
I remember, not sure how this person did it but they pretty much wrote the config in notepad one time and was able to import it in the GUI.

What is the best way to go about this or do it through CLI? Is it possible to drag and drop while SSH or Consoled in?

7 Replies 7

Hello,

I don't really work with a GUI, but for the CLI what you're describing sounds like they made a notepad config and copy/pasted into the CLI. Keep in mind they probably changed IP addresses and any settings specific to that device.

 

-David

This is quite easy:

  1. Configure your SSH client to logg all output to a file
  2. connect to the first device
  3. issue the command "terminal length 0"
  4. issue the command "show run brief"
  5. close the connection
  6. open the saved file and make all needed changes and remove lines that are only valid on the first switch like license, serial number ...
  7. copy the new config to the new switch

Oh I see, so it's as simple as copying the new running config into the CLI and BOOM just like that?

Do you need to be in Conf t or just normal priv?

You need to be in priv mode while running the "show run ..." and in config mode when pasting the config into the new switch.

Also be careful if you are doing it over ssh/telnet because the configs may terminate your session and lose connection. i would recommend doing console connection if possible. always remember the handy "wr mem" as well!!

Leo Laohoo
Hall of Fame
Hall of Fame

USB flash drive

balaji.bandi
Hall of Fame
Hall of Fame

I connect to the device if you have access, show run - copy to notepad

console to another device (if that device not in the network, fresh build) and paste it, easy way.

or use TFTP as a backup resource.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help