Tuesday, 1 October 2013

Password Setting and Breaking In Switch

For Enabling Password In Switch

Switch>Enable -press enter
Then comes to the privillage mode
Switch#configure terminal -press enter
Then comes to the configuration mode
Switch(config)#Enable Password <password>
Switch(config)#Exit
Again comes to the privillage mode
Switch#In this mode type 'Show Running-config' to view the password
Switch#Show Running-config -press enter.

                        If we forgot the password of  a Switch, we can break the password and for accessing the switch,try the following steps

Passsword Breaking In Switch:
  •  Manually Restart The Switch
  •  Press The Mode Button For 15 seconds
  • then comes ' Switch : ' mode
  • next step is to initialize the flash.
  • Switch: flash_init  -press enter
  • to view the directory of flash type
  • Switch: dir flash : -press enter
  • as you can see one file named as config.text   then we have to Rename the file name
  • Switch : rename flash : config.text flash: config.<name> (name we can give any name as we like) -press enter
  • Switch : boot -press enter
  • then we comes to the privillage mode,that means we broke the password of switch
  • here we can view or delete the password
  • for viewing password Switch #show startup-config  -press enter
  • for deleting passsword Switch#write erase  -press enter
  • after getting the password  we should rename the file name to config.<given name>to config.text as we changed above.
  • Switch#rename flash:config.<given name> flash:config.text
  • Switch#copy flash:config.text system:running
  • then save the configurations - Switch#write  -press enter
  • Switch# reload  -for rebooting
  • after rebooting it comes user mode
  • Switch>enable  -press enter
  • if we broke  the password,next mode is 'Switch#' and we can continue otherways enter password and continue....
  • Thank You.




No comments:

Post a Comment