How to erase the configuration of a Cisco 2950 switch with Putty.

I am assuming that you already know how to access your switch and you do not need any help with this. Log into the switch using Putty and wait until the prompt appears awaiting commands.

% Please answer 'yes' or 'no'.
Would you like to enter the initial configuration dialog? [yes/no]: no
 
 
 
Press RETURN to get started!
 
 
Switch>
00:02:00: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down
00:02:01: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down

Type this command to enable the prompt that we need.

en

Switch>en

Then type this command to erase the configuration on the switch.

erase startup-config

This is the result of this command. This is removing all of the configuration changes made to the Cisco router configuration.

Switch#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete

And now we run the reload command to reinstall a vanilla Cisco IOS configuration.

Switch#reload
Proceed with reload? [confirm]
 
00:03:17: %SYS-5-RELOAD: Reload requested
 
C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 17:18 by antonino
WS-C2950-24 starting...
Base ethernet MAC Address: 00:0e:84:d8:b3:40
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 77 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 5258240
flashfs[0]: Bytes available: 2483200
flashfs[0]: flashfs fsck took 7 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
Loading "flash:/c2950-i6q4l2-mz.121-14.EA1a.bin"...########################################################################         ###########################################################################################################################         #################################################################################################################
 
File "flash:/c2950-i6q4l2-mz.121-14.EA1a.bin" uncompressed and installed, entry point: 0x80010000
executing...
 
              Restricted Rights Legend
 
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
 
           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706
 
 
 
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(14)EA1a, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Tue 02-Sep-03 03:33 by antonino
Image text-base: 0x80010000, data-base: 0x805C0000
 
 
Initializing flashfs...
flashfs[1]: 77 files, 3 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 7741440
flashfs[1]: Bytes used: 5258240
flashfs[1]: Bytes available: 2483200
flashfs[1]: flashfs fsck took 7 seconds.
flashfs[1]: Initialization complete.
Done initializing flashfs.
POST: System Board Test : Passed
POST: Ethernet Controller Test : Passed
ASIC Initialization Passed
 
POST: FRONT-END LOOPBACK TEST : Passed
cisco WS-C2950-24 (RC32300) processor (revision M0) with 20710K bytes of memory.
Processor board ID FOC0751S0PK
Last reset from system-reset
Running Standard Image
24 FastEthernet/IEEE 802.3 interface(s)
 
32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:0E:84:D8:B3:40
Motherboard assembly number: 73-5781-12
Power supply part number: 34-0965-01
Motherboard serial number: FOC07510SXT
Power supply serial number: DAB0745FFSW
Model revision number: M0
Motherboard revision number: B0
Model number: WS-C2950-24
System serial number: FOC0751S0PK
 
         --- System Configuration Dialog ---
 
Would you like to enter the initial configuration dialog? [yes/no]: n

Now you may enter any changes you wish to make to create your VLAN and routing setups with a fresh vanilla switch setup. This is very easy to do and an essential part of learning Cisco CCNA certifications.

Here is how to view the vlan configuration.

Switch>show vlan
 
VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20
                                                Fa0/21, Fa0/22, Fa0/23, Fa0/24
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup
 
VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0
1003 tr    101003     1500  -      -      -        -    -        0      0
1004 fdnet 101004     1500  -      -      -        ieee -        0      0
1005 trnet 101005     1500  -      -      -        ibm  -        0      0
 
Remote SPAN VLANs
------------------------------------------------------------------------------
 
 
Primary Secondary Type              Ports
------- --------- ----------------- ------------------------------------------

No comments have been made. Use this form to start the conversation :)

Leave a Reply