Solved

copy cisco 2960S configuration to another switch

Posted on 2014-10-04
11
3,038 Views
Last Modified: 2014-11-06
Dear Experts
I have Cisco 2960S switch in my network and I want to copy same configuration to another switch 2960S.
please advise step by step how can I copy the same configuration of my existing switch to this switch.

Regards
Sanjeev Kumar
0
Comment
Question by:sanjeevkmrs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 50

Assisted Solution

by:Don Johnston
Don Johnston earned 125 total points
ID: 40361538
From privileged mode of the existing switch:

1) issue the command "show run".
2) Then copy the output.

From privileged mode on the new switch:
3) Issue the command "enable" (enter privileged mode password).
4) Issue the command "config t"
5) Paste in the output from step 2
6) issue the command "end"
7) Issue the command "copy run start"

The two switches now have identical configurations.

Just keep in mind that you will not be able to have both switches connected to the network at the same time as they both have the same IP address.
0
 
LVL 16

Assisted Solution

by:max_the_king
max_the_king earned 125 total points
ID: 40361545
hi
run a tftp server on your pc.be sure that you can ping the switch. then issue a "copy run tftp" and name the file as you wish. then issue a "copy tftp run" on the new switch and do a "copy run start" on the switch. you're done.
hope this helps
max
0
 
LVL 6

Accepted Solution

by:
Matt earned 250 total points
ID: 40361972
This is the safe way:

- on your PC start TFTP program (http://tftpd32.jounin.net/)
- verify connectivity (ping your PC from the 1st switch)
- on the 1st switch do this

copy running-config tftp:

- modify saved config on your PC using Notepad++ to suite your need (must change the hostname and the  management IP address) !!!
- save this config on your PC as for example config-sw2.txt
- on the 2nd switch upload config-sw2.txt to startup-config:

copy tftp: startup-config

- file name to upload on the 2nd switch: config-sw2.txt
- reboot the 2nd switch
- check functionality, access via telnet?

Why? If you copy TFTP to running config, you will get unpredictable results - it will try to merge your current running config on the second server with copied config from the 1st...

If you try to manage the switch using ssh, you have to create new keys like this on the 2nd switch (in privileged mode, "config term"):

crypto key generate rsa general-keys modulus 2048

To verify that SSH is running, type:

show ip ssh
0
Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 

Author Comment

by:sanjeevkmrs
ID: 40362002
Dear Experts,
to copy above config while doing putty it asks for user name and password. In switch config I can configure only password. is there a default user name or how can I set a user name and password for this switch.

Regards
Sanjeev Kumar
0
 
LVL 6

Assisted Solution

by:Matt
Matt earned 250 total points
ID: 40362005
Default:

U: cisco
P: cisco
0
 
LVL 6

Expert Comment

by:Matt
ID: 40362049
Do you have any user defined on switch?

Type:

show running | i user
0
 

Author Comment

by:sanjeevkmrs
ID: 40362106
no as there was no option to define user. I can only telnet the switch. when I try for SSH it don't connect.
0
 
LVL 6

Expert Comment

by:Matt
ID: 40362309
Ok, you have pretty much factory default configuration. Did you try to add user using CLI?

conf t
service password-encryption
user myuser password mypass privilege 15
enable secret mysecret
0
 

Author Comment

by:sanjeevkmrs
ID: 40379528
dear experts - I have assigned the IP address to switch and can access it - please advise with command to assign the master vlan and then vlans to different ports. - Regards - Sanjeev Kumar
0
 
LVL 6

Expert Comment

by:Matt
ID: 40379989
Master VLAN? Did you mean management VLAN?

Regarding ports...

VLAN 10 must be already defined

conf t
interface Gi0/2
switchport mode access
switch access vlan 10
0
 

Author Closing Comment

by:sanjeevkmrs
ID: 40427784
thanks
0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What problem can Native VLAN mismatch causes 4 79
VOIP gateways - feedback 23 125
VTP servers with 3650 switches 5 55
Unidentified Network 12 82
The worst thing when starting a new job is when the previous Network Administrator left behind no documentation. How do you get into the devices? If you've been in this situation or just accidently mistyped your password, this article will hopefully…
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question