Saturday, July 30, 2011

Reset Cisco Switch and Router Password

How to Reset Cisco Switch Password
1. Unplug/Plug
2. Hold "Mode" button (15 secs)
> ROM (Switch)
3. flash_init
4. load_helper
4. dir flash:
> view config.text
5. rename flash:config.text flash:any_name
> bypass config.text
6. dir flash:
7. boot
8. a) #rename flash:any_name flash:config.text
        #copy flash:config.text running-config
or
     b) #copy flash:any_name running-config
9. Change password, write mem


How to Reset Cisco Router Password
1. Switch off/on
2. Ctrl-break
> ROM (rommon>)
3. confreg 0x2142
> bypass NVRAM
4. Reset
5. copy startup-config running-config
6. Change Password, then write
7. No Shutdown (Interfaces)
8. (Config)# config-register 0x2102
9. Reload


Copy IOS from COnsole after #erase flash:

Note: Use TerraTerm with Vista/Windows 7

Router
A. Connect to console
B. rommon 1> xmodem -c IOS.bin

Switch
A. Connect to Console
B. :Copy xmodem: IOS.bin flash: IOS.bin