Friday, September 14, 2012

Cisco Switch Password Reset

1. Turn off the switch and Plug in your console cable from your computer to the switch
2. Turn on the switch and hold the "MODE" button (should on the front panel of the switch)
3. On the screen you should see this text : "switch :"
4. Here we go for the code :
    switch:init_flash ----------------->   to initialize your Cisco Flash.                                    
    Initializing Flash...
   The flash is already initialized.
   switch:load_helper ----------------> To run boot helper image
   switch:dir flash:  -------------------->  To see the files on the flash directory
  Directory of flash:/
  2 -rwx 5 private-config.text
  3 -rwx 110 info
  4 -rwx 976 vlan.dat
  6 -rwx 286 env_vars
  26 -rwx 1592 config.text
  8 drwx 1088 html

 4393472 bytes available (3347968 bytes used)
 switch:rename flash:config.text flash:config.old----------------> (So that the it will boot a new config without password).
 switch: boot  ------------> Reboot the switch

Note : The switch will create a new config file without a passport. The below config is to create a new password and set back the old config file. 

switch:en
switch#sh flash: 
Directory of flash:/

    2  -rwx     2995584   Jan 01 1970 00:24:14  c3550-i9q3l2-mz.121-11.EA1.bin
    3  -rwx           0   Jan 01 1970 00:24:36  system_env_vars
    4  -rwx        1036   Mar 08 1993 14:03:45  vlan.dat
    5  -rwx           0   Jan 01 1970 00:24:36  env_vars
    6  -rwx           5   Mar 01 1993 01:07:50  private-config.text
    8  -rwx        4715   Mar 01 1993 01:07:50  config.old


switch#rename flash:config.old  flash:config.text   -------> Set back the config file.
switch#copy running-config flash:    ----->To set the boot loader.
switch#write        -------------> Save all your configuration.
switch#boot

No comments:

Post a Comment