Mike's PBX Cookbook

2960 - Factory Defaults

ciscotty.jpg

Procedure to reset a Cisco 2960 (or 2950) to factory defaults by deleting the configuration files.

Connect the blue console cable, and open a TTY session: 9600,8,n,1.
- Hitting return should give a prompt, confirming the connection.

Press and hold the front panel MODE button, and power-up the switch.
- After a few seconds, the following should display. Release the MODE button.

The system has been interrupted prior to initializing the
flash filesystem.  The following commands will initialize
the flash filesystem, and finish loading the operating 
system software:
 
    flash_init
    load_helper
    boot
    

At the prompt, enter the following command:

switch: flash_init
Initializing Flash...

List the files in the flash directory:

switch: dir flash:
Directory of flash:/
 
2    -rwx  5         <date>               private-config.text
4    -rwx  5048591   <date>               c2960-lanbasek9-mz.122-25.SED.bin
5    drwx  192       <date>               c2960-lanbase-mz.122-25.SEE2
620  -rwx  2061      <date>               config.text
 
19752960 bytes available (12761088 bytes used)

Delete the flash file(s) config.text, and vlan.dat (if exists), and re-boot:

switch: del flash:config.text
Are you sure you want to delete "flash:config.text" (y/n)?y
File "flash:config.text" deleted
 
switch: boot
Loading "flash:c2960-lanbasek9-mz.122-25.SED.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

When the switch reboots, it will launch the 'System Configuration Dialog', which you can optionally exit!

To enable the default VLAN 1 (all ports are in this VLAN by default):

Switch>en
Switch#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int vlan 1
Switch(config-if)#no shut

00:15:09: %LINK-3-UPDOWN: Interface Vlan1, changed state to up
00:15:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state 
to up
Switch(config-if)#end
Switch#wr mem

To change the switch hostname to something descriptive:

Switch>en
Switch#config t
Switch(config)#hostname PBXBOOK
PBXBOOK(config)#end
PBXBOOK#wr mem