Catalyst 4500,  Cisco

Password Recovery Procedure for the Catalyst 4500 switch (deleting configuration)

Boot Switch:
Press CTRL + C to prevent autobooting

Type control-C to prevent autobooting.
. . .
Autoboot cancelled......... please wait!!!

rommon 1 > [interrupt]

rommon 1 >confreg

Configuration Summary : 
=> console baud: 9600
=> autoboot from: commands specified in 'BOOT' environment variable
do you wish to change the configuration? y/n  [n]:  yes
enable  "diagnostic mode"? y/n  [n]:  
enable  "use net in IP bcast address"? y/n  [n]:  
enable  "load rom after netboot fails"? y/n  [n]:  
enable  "use all zero broadcast"? y/n  [n]:  
enable  "break/abort has effect"? y/n  [n]:  
enable  "ignore system config info"? y/n  [n]:  y
change console baud rate? y/n  [n]: 
change the boot characteristics? y/n  [n]: 
Configuration Summary : 
=> ignore system config info
=> console baud: 9600
=> autoboot from: commands specified in 'BOOT' environment variable
do you wish to save this configuration? y/n  [n]:  yes
You must reset or power cycle for new configuration to take effect

rommon 2 >boot

Or pull the power cord.

The system will autoboot in 5 seconds *****

Again Press CTRL + C to prevent autobooting

Type control-C to prevent autobooting.
. . .
Autoboot cancelled......... please wait!!!

rommon 1 > [interrupt]

rommon 2 >clear config all

This command will clear all configuration in NVRAM.
This command will cause ifIndex to be reassigned on the next system startup.
Do you want to continue (y/n) [n]? yes
Clearing NVRAM... done!

rommon 3 >boot

*
*

This document was put together thanks to
Password Recovery Procedure for the Catalyst 4500 switch (deleting configuration) – NesevoWiki

Configuring the switch

Switch> enable
Switch#show startup-config

Switch#configure terminal
Switch(config)#hostname 10GBESwitch1
10GBESwitch1(config)#show vlan br
10GBESwitch1(config)#dir flash:
10GBESwitch1(config)#delete flash:vlan.dat
10GBESwitch1(config)#int vlan 1
10GBESwitch1(config-if)#ip address 192.168.1.65 255.255.255.0
10GBESwitch1(config-if)#default gateway 192.168.1.1
10GBESwitch1(config-if)#no shutdown
10GBESwitch1(config-if)#do show int vlan1
Vlan1 is up, line protocol is up

This will set the mgmt vlan on the switch
Test the interface by pinging the assigned IP address

ping 192.168.1.65

Set login details

10GBESwitch1(config-if)#line vty 0 15
10GBESwitch1(config-line)#password SuperSecretPassword
10GBESwitch1(config-line)#exit
10GBESwitch1(config)#enable secret 0 SuperSecretPassword
10GBESwitch1(config)#do show run
10GBESwitch1(config)#service password-encryption
10GBESwitch1(config)#end
10GBESwitch1#show run
10GBESwitch1#copy running-config startup-config
[OK]
10GBESwitch1#wr
[OK]
10GBESwitch1#show start

Leave a Reply

Your email address will not be published. Required fields are marked *