You are on page 1of 3

Cisco - Copy config to other switch using

Xmodem
I just had a request to replace an old 24 port switch with a 48 port from the stock.
The old one was a Catalyst 2950, the new one is a Catalyst 3550.

Luckily we do a weekly backup of all our configs with Cattools, so I had the old config
saved. Both the 2950 and the 3550 are Fast Ethernet switches, and have 2 slots for Gigabit
GBICs.
I fired up hyperterminal and connected it to the 3550, first I did "del start" and "reload" to
delete the old startup-config.
Of course the 3550 is one of the older models that doesn't have an USB port yet, so
Xmodem was my (easiest) only option.

On the switch do the following commands to copy the old config to flash :

Switch#copy xmodem flash


Destination filename []? backup
Begin the Xmodem or Xmodem-1K transfer now... (Now, send the file with hyperterminal)
CCCCCCCCC
6912 bytes copied in 26.796 secs (258 bytes/sec)

Send File option

Xmodem option, and select file.


In progress...

Check if the file has been saved correctly to flash :

Switch#sh flash:
Directory of flash:/

2 -rwx 348 Mar 1 1993 02:22:30 +00:00 system_env_vars


3 -rwx 16856 Jul 7 2009 11:09:46 +00:00 config.text.renamed
4 -rwx 5144 Mar 1 1993 00:02:48 +00:00 multiple-fs
5 -rwx 1876 Feb 25 2010 14:37:41 +00:00 vlan.dat.renamed
6 -rwx 6912 Mar 1 1993 00:10:02 +00:00 backup
361 drwx 128 Mar 1 1993 02:21:14 +00:00 c3550-ipbasek9-mz.122-25.SEE2
7 -rwx 1962 Jul 7 2009 11:09:46 +00:00 private-config.text.renamed
8 -rwx 0 Mar 1 1993 02:22:29 +00:00 env_vars
15998976 bytes total (8224256 bytes free)

Copy the "backup" file to the Switch startup-config :

Switch#copy flash:backup start


Destination filename [startup-config]?
[OK]
6912 bytes copied in 0.216 secs (32000 bytes/sec)

Reboot the switch and watch for errors :

Switch#reload
Proceed with reload? [confirm]
00:11:41: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload
Command.

When the switch boots without errors, login again, you'll need the original switchs
passwords as those are also copied.

At this moment port Fa0/1 to 24 will be configured the same as the original switch, so you
might want to set the default values to the same for port 25-48 depending of your needs.
The Gigabit ports will both have the same config as the old switch.

For instance our default config is copied from Fa0/24 :

interface FastEthernet0/24
description Legacy
switchport access vlan 180
switchport mode access
no logging event link-status
spanning-tree portfast

to copy this to port 25 to 48 do :

NewSwitch#config terminal
NewSwitch(config)#int range fa0/25 - 48
NewSwitch(config-if-range)#description Legacy
NewSwitch(config-if-range)# switchport access vlan 180
% Access VLAN does not exist. Creating vlan 180
NewSwitch(config-if-range)# switchport mode access
NewSwitch(config-if-range)# no logging event link-status
NewSwitch(config-if-range)# spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single host. Connecting
hubs, concentrators, switches, bridges, etc... to this interface when portfast is enabled, can
cause temporary bridging loops. Use with CAUTION
%Portfast will be configured in 24 interfaces due to the range command
but will only have effect when the interfaces are in a non-trunking mode.

You might have to add other vlans manually depending on the original switch.

Next week I have to do a 2960S 24port to 2960S 48port, those already have an USB port
which will make it less painfull then using Xmodem.

You might also like