Skip to content

Instantly share code, notes, and snippets.

@scottsappen
Created July 1, 2013 15:23
Show Gist options
  • Save scottsappen/5901792 to your computer and use it in GitHub Desktop.
Save scottsappen/5901792 to your computer and use it in GitHub Desktop.
Reset a 100Mbs Cisco Catalyst 2900 Series XL
Got the admin password?
Ok, connect to it on COM1 using 9600 baud, no parity, 8 data bits, 1 stop bit
switch>en
switch>write erase
switch>reload
switch>show vlan (you should now see that only default vlan settings are present indicating everything has been wiped)
Don't got the admin password?
flash_init
load_helper
dir flash: (make sure you type the colon)
rename flash:config.text flash:config.old (password definitions)
boot
n (abort the initial configuration dialog)
en
rename flash:config.old flash:config.text
copy flash:config.text system:running-config (copy the config into memory)
conf t
enable secret <new secret> (this is what I needed)
If you need to do the vty and console passwords, best of luck. Ok, here’s how you do it
line vty 0 15
password <new password>
login
line con 0
password <new password>
write memory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment