Write Erasing Configurations on Cisco Devices
Standard Write Erase Instructions
- enable
- Type write erase. This will remove the startup configuration from the device. However what ever configuration was loaded is still present on the device. - For switches(2950 in Netlab and 3560 in Voip) you must delete the vlan.dat file located on the flash or the vlan database will still be populated with entries. - type show flash: - From there delete vlan.dat using the command delete flash:vlan.dat
- The final step is to reload the switch using reload and saying no when asked if you want to save the configuration.
Password Recovery on Cisco Routers/Access Points (2800,2600,1200,350)
If you come across as situation that require a password recovery on a router it is a simple clean up that takes a few minutes to do.
- Power off the device.
- Power the device back on and use the break command to stop the boot process
- You will get the rommon prompt. If not try again.
- Type confreg 0x2142. This changes the router to ignore its startup configuration.
- It is time to boot the router up, so type boot
- When it has booted you should be able to follow the directions above and remove the configuration with write erase.
- However when it reload enter rommon again using the break sequence and type confreg 0x2102, then boot.
Cisco 2514
- Power off the device.
- Power it back on and use the break command to enter rommon.
- The rommon prompt is a '<'
- Type o to see the current configuration register
- Type o/r 0x2142
- Type i to reboot the router and load the IOS
- Type enable and then write erase
- go to the configure terminal mode and type config-register 0x2102
- Save the configuration and reload
Cisco Switches(2950,3560)
- Connect to the device via the console port.
- Push in and hold the mode button, and power cycle the switch.
- Hold the button until you see the switch: prompt.
- Issue the flash_init command.
- Use the dir flash command to see all the files the ones we are interested in removing should be the config.text, and vlan.dat. This will remove the configuration completely and also the database of vlans.
- Type boot and watch the switch boot up with no configuration.
More information on the password recovery can be found at http://cisco.com/en/US/products/sw/iosswrel/ps1831/products_tech_note09186a00801746e6.shtml
Extreme Summit 200
Standard Write Erase Instructions
If you need to remove a running configuration from a Summit 200 it is as easy as typing unconfigure switch all. It will reload, and then the configuration will be gone.
Password Recovery
- Hold Space bar when turning the switch on.
- You will see a boot option menu.
- Choose delete primary configuration.
- Then choose to boot the primary image.
- The switch will be turned on and no configuration will exist.