How to Reset Cisco Catalyst 2960 Switch to Factory Default Settings and IP Routing?
Network administrators in Cisco networking business do go over the inquiry – Whether Cisco 2960 switches support IP Routing? Another significant certainty to share is that since contenders like Juniper have little end Switches like EX2200 (however beginning models) which support layer 2 Static and Dynamic Routing, it was the ideal opportunity for Cisco to present Routing capacity on 2960x series. Also, which is all well and good, from IOS version 12.2(55)SE on wards, Cisco Catalyst 2960 switches have become Layer 3 gadgets however with limitations.
Note: The switch supports 8 Routed SVIs and 16 static routes (counting client configured routes and the default course) and any straightforwardly connected routes and default routes for the administration interface. The switch can have an IP address allocated to every one of 8 SVI. Before empowering routing, enter the sdm prefer lanbase-routing global configuration command and reload the switch.
A reboot is (constantly) required in the wake of changing the SDM template. After reboot, it's much the same as empowering routing on some other L3 switch with the command "ip routing" from global config.
Switch(config)#sdm prefer lanbase-routing
Changes to the running SDM preferences have been stored, but cannot take effect until the next reload.
Use ‘show sdm prefer’ to see what SDM preference is currently active.
System configuration has been modified. Save? [yes/no]: y
Proceed with reload? [confirm]
After changing the SDM template and reboot, below command is issued to verify the change .
Switch#show sdm prefer
The current template is “lanbase-routing” template.
The selected template optimizes the resources in
the switch to support this level of features for
8 routed interfaces and 255 VLANs.
number of unicast mac addresses: 4K
number of IPv4 IGMP groups + multicast routes: 0.25K
number of IPv4 unicast routes: 4.25K
number of directly-connected IPv4 hosts: 4K
number of indirect IPv4 routes: 0.25K
number of IPv4 policy based routing aces: 0
number of IPv4/MAC qos aces: 0.125k
number of IPv4/MAC security aces: 0.375k
Now, the Cisco Catalyst 2960 series don't support routed physical interfaces ("no switchport"). Another significant note is that we're just permitted 16 static routes with no dynamic routing ability.
Now we’ll enable IP routing and configure SVIs:
Switch(config)#int vlan 10
Switch(config-if)#ip add 192.168.10.1 255.255.255.0
Switch#sh ip route
…C 192.168.10.0/24 is directly connected, Vlan10
How to Reset a Cisco 2960 Switch to Factory Default Settings
Smoothing a switch before re-deployment is one of those straightforward assignments that I generally end up having to query on the web, so I thought I'd spare myself some time in future and document it here.
Step 1
Connect up your console cable and power on the switch, while holding down the "mode" button:
This interferes with the boot procedure before the Flash file system can instate, and after a brief time (keep holding the "mode" button) you will see the below-mentioned prompt:
Using driver version 1 for media type 1
Base ethernet MAC Address: 4c:30:2d:81:ef:80
Xmodem file system is available.
The password-recovery mechanism is enabled.
The system has been interrupted prior to initializing the
flash filesystem. The following commands will initialize
the flash filesystem, and finish loading the operating
Step 2
Initialize the flash file system with the command: flash_init
mifs[2]: 10 files, 1 directories
mifs[2]: Total bytes : 1806336
mifs[2]: Bytes used : 612352
mifs[2]: Bytes available : 1193984
mifs[2]: mifs fsck took 1 seconds.
mifs[3]: 0 files, 1 directories
mifs[3]: Total bytes : 3870720
mifs[3]: Bytes used : 1024
mifs[3]: Bytes available : 3869696
mifs[3]: mifs fsck took 0 seconds.
mifs[4]: 5 files, 1 directories
mifs[4]: Total bytes : 258048
mifs[4]: Bytes used : 9216
mifs[4]: Bytes available : 248832
mifs[4]: mifs fsck took 0 seconds.
mifs[5]: 5 files, 1 directories
mifs[5]: Total bytes : 258048
mifs[5]: Bytes used : 9216
mifs[5]: Bytes available : 248832
mifs[5]: mifs fsck took 1 seconds.
mifs[6]: 566 files, 19 directories
mifs[6]: Total bytes : 57931776
mifs[6]: Bytes used : 28429312
mifs[6]: Bytes available : 29502464
mifs[6]: mifs fsck took 21 seconds.
. done Initializing Flash.
Step 3
Erase the config.text file from the flash directory:
switch: del flash:config.text
Are you sure you want to delete "flash:config.text" (y/n)?y
File "flash:config.text" deleted
Step 4
Erase the vlan.dat file from the flash directory:
switch: del flash:vlan.dat
Are you sure you want to delete "vlan.dat" (y/n)?y
File "flash:vlan.dat" deleted
Step 5
Reboot the switch and you're finished:
— System Configuration Dialog —
Enable secret warning
In order to access the device manager, an enable secret is required
If you enter the initial configuration dialog, you will be prompted for the enable secret
If you choose not to enter the intial configuration dialog, or if you exit setup without setting the enable secret,
please set an enable secret using the following CLI in configuration mode-
enable secret 0 <cleartext password>
Would you like to enter the initial configuration dialog? [yes/no]:
Final Thought
To wrap up things, you need to follow these simple steps if you need to perform IP routing or need to reset Cisco Catalyst 2960 series switch to factory default settings. Hope this information is useful for you.
Resetting Catalyst Switches to Factory Defaults
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
Contents
Introduction
In certain situations, it is desirable to restore the Catalyst switch configuration to the original default factory settings. This is useful when you want to remove an undesirable configuration that is present in the switch. If you have configured a switch and the configuration has become very complex or if you want to move a switch from one network to other, you can reset the switch to factory defaults and configure it as a new switch. This document provides information and sample command logs to reset your switches.
To reset the Catalyst switches to factory defaults, you need access to the switch console through either a physical console or a Telnet connection. You also need the console/enable passwords. If you forget the console and enable password of your switch, you cannot reset the switch configuration to factory default to reset the password. In this case, you need to follow the password recovery procedures for your switch. Refer to this document for steps to recover the passwords on your Catalyst switches:
Note: If you reset the switch to factory defaults while you access the switch by Telnet connection, you lose connectivity to the switch.
Prerequisites
Requirements
There are no specific requirements for this document.
Components Used
The information in this document was tested with these software and hardware versions:
Note: Although the document was created with these Catalyst switches, the principles apply to the products mentioned in the document.
Catalyst 5505 switch with Catalyst OS (CatOS) version 6.4(8)
Catalyst 2950 switch with Cisco IOS® Software Release 12.1(19)EA1
Catalyst 6500/6000 switch with Cisco IOS Software Release 12.1(20)E
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Conventions
For more information on document conventions, refer to the Cisco Technical Tips Conventions.
Before You Begin
Before you reset the switch to factory defaults, perform one of these tasks:
Back up your configuration on a TFTP server.
Copy your configuration to a text file.
Copy the configuration locally on the bootflash or slot0: device.
Once you clear the user configuration, there is no way to recover the configuration unless you restore the backed-up configuration. To upload a configuration file on a TFTP server, refer to this document:
Note: You can restore the complete configuration if you copy the text file configuration and paste it to the command line.
Reset Catalyst Switches Running CatOS
This procedure applies to Catalyst 4500/4000, 5500/5000, and 6500/6000 series switches running CatOS. These switches store the configuration in NVRAM automatically, wherever users enter the commands in enable mode. On Cisco IOS Software, you must save the configuration with the write memory command or the copy running-config startup-config command. You can reset the system or module configuration on these switches running CatOS to factory defaults with the clear config command. The command syntax is:
The clear config all command clears the system configuration, as well as the module configuration. This command does not, however, clear the boot variables, such as config-register and boot system settings. You can alter the boot variable settings with the set boot command. If your switch has any router cards, the clear config all command does not clear the Cisco IOS Software configuration on the router cards. (Examples of these router cards include WS-X4232-L3 modules on the 4000 switches, Route Switch Modules [RSMs]/Route Switch Feature Cards [RSFCs] on the 5500/5000 switches, or the Multilayer Switch Modules [MSMs]/Multilayer Switch Feature Cards [MSFCs] on the 6500/6000 switches.) To clear the configuration on router cards, you can access the router card with the session command. Then, reset the switch to factory defaults with use of the procedure in the Reset Catalyst Switches Running Cisco IOS Software section of this document. This example shows how to reset the configuration on the switch to factory defaults:
After the configuration erase in CatOS, you do not need to reload the switch. The configuration takes effect immediately, and the switch returns to the factory default configuration. If you want to clear the configuration of a specific module on the switch, issue the clear config mod command, as shown here:
Reset Catalyst Switches Running Cisco IOS Software
The procedure in this section applies to the router cards, the modular or fixed configuration switches, and GL-3 Catalyst series switches running Cisco IOS Software:
WS-X4232-L3 (Catalyst 4006/4000)
RSM/RSFC (Catalyst 5500/5000)
MSFC/MSM (Catalyst 6500/6000)
Catalyst modular switches
Catalyst fixed configuration switches
GL-3 Catalyst switches
Switches running Cisco IOS Software have a running configuration file and a startup configuration file. The RAM stores the running configuration, and the NVRAM stores the startup configuration. When you make a configuration change to a switch running Cisco IOS Software, the change becomes part of the running configuration. You must save the configuration changes to the startup configuration; otherwise, the configuration is lost during the next reload or power outage. This is because you lose the running configuration stored in RAM when you reload the switch or turn off the power. To save the configuration into NVRAM, issue the write memory command or the copy running-config startup-config command. If you do not save your changes to NVRAM, the changes clear from RAM and are no longer part of the startup configuration when the switch reloads.
On the Catalyst modular or fixed configuration switches running Cisco IOS Software, a separate file stores the VLAN information. The file is called vlan.dat file and is stored in NVRAM for modular switches or in Flash for fixed configuration switches. To reset these switches to factory defaults, you need to delete the startup configuration and the vlan.dat file. To restore the Catalyst 2948G-L3/4908G-L3 switches and router cards to the factory defaults, you only need to delete the startup configuration file. These switches do not contain VLAN information because they do not participate in VLAN Trunk Protocol (VTP).
Reset Switch Configuration
To reset the switch to factory default, issue the erase startup-config or write erase command. This command does not clear the boot variables, such as config-register and boot system settings. You can alter the boot system parameters with the boot command. In Catalyst 4500/4000 and 6500/6000 series switches running Cisco IOS Software, you can change the configuration register value with the config-register command.
This example shows how to reset a switch running Cisco IOS Software to factory defaults with the write erase command:
At this stage, the switch configuration has reset to the factory defaults, with the exclusion of the VLAN information.
Reset VLAN Information
To reset the VLAN information to the factory defaults, delete the vlan.dat file from the Flash or NVRAM and reload the switch. On the 6500/6000 series switches running Cisco IOS Software, the vlan.dat file is stored in const_nvram. On the 4500/4000 series switches running Cisco IOS Software, the vlan.dat file is stored in cat4000_flash:. On the 2940, 2950/2955, 2970, 3550, 3550, 3560, 3570, and 2900XL/3500XL fixed configuration switches, the vlan.dat file is stored in flash:.
To erase the vlan.dat file on the 6500/6000 switches, issue the erase const_nvram: command. On the 4500/4000 switches, issue the erase cat4000_flash: command. On the fixed configuration switches, issue the delete flash:vlan.dat command.
The example steps show how to delete the VLAN information on Catalyst fixed configuration switches. You can use the same steps, with their respective commands, for the 6500/6000 and 4500/4000 running Cisco IOS Software:
To verify the VLAN information, issue the show vlan command, and to verify the vlan.dat file, issue the dir command.
Delete the VLAN information from Flash or NVRAM, and reload the switch.
Note: On the 6500/6000 and 4500/4000 running early versions of Cisco IOS Software, the delete command may not work. Instead, you must issue the command erase const_nvram: or the command erase cat4000_flash:. Do not specify the vlan.dat file in the command syntax. However, on later versions of Cisco IOS Software, the delete const_nvram:vlan.dat command works for the 6500/6000, and the delete cat4000_flash:vlan.dat command works on the 4500/4000.
After reload, check the VLAN information with the show vlan command.
The user-configured VLANs no longer appear in the command output. Only factory-default VLAN information is on the switch.
Reset Catalyst Switches in Redundant Mode
For the 6500/6000 and 5500/5000 switches running CatOS in redundant mode, the standby Supervisor Engine synchronizes with changes made to the active Supervisor Engine. So, if you reset the configuration on the active Supervisor Engine to factory defaults with the clear config command, the standby Supervisor Engine also resets to factory defaults. Whether you set the configuration mode to binary or text mode with the set config mode command, the switch resets to factory defaults when you clear the configuration on the active Supervisor Engine.
To reset 6500/6000 switches running Cisco IOS Software in redundant mode to factory defaults, you need to complete these steps:
Erase the startup configuration with the erase startup-config command on the active Supervisor Engine.
Note: This also erases the startup configuration on the standby Supervisor Engine.
Delete the vlan.dat file as shown in the Reset VLAN Information section of this document.
Reload the active Supervisor Engine with the reload command
Note: If the Supervisor Engine enters the ROMmon mode after it reloads, check the boot variable to see if it is set to boot from the proper image. You may also refer to the document Recovering a Catalyst 6500/6000 Running Cisco IOS System Software from a Corrupted or Missing Boot Loader Image or ROMmon Mode for further troubleshooting information.
Reset Cisco 2960 series switch to Factory defaults
If you work in networking, to rest a Cisco switch to factory settings is one of those tasks you will often need to do. Whether its an existing switch you can log into or an inherited switch you do not have the password, the below guide will help you reset your Cisco 2960 series switch to factory defaults.
If you can log into your switch.
Step 1 : Connect to your switch via a console cable and connect to the console.
Step 2 : Use the following commands to reset the Cisco switch to factory defaults
Router: en
Router#erase startup-config
answer “y” to confirm, then
then
Router# del flash:vlan.dat (needed to remove vlans)
Step 3: Reload the switch – Router# reload
If you cannot log into your switch
Step 1: Connect up your console cable and connect to the console. Power on the switch, whilst holding down the “mode” button:
This interrupts the boot process before the Flash file system can initialise, and after a short while (continue holding the “mode” button) you will see the following prompt:
Step 2 : Type command line – flash_init
Step 3 : Use the following 2 command to delete configuration files
del flash:config.text
del flash:vlan.dat
Step 4 : reload the Switch by using the “boot” command
Reset a Cisco 2960 Switch To Factory Default Settings
Flattening a switch before re-deployment is one of those simple tasks that I always find myself having lookup on the web, so I thought I’d save myself some time in future and document it here.
Step 1.
Connect up your console cable and power on the switch, whilst holding down the “mode” button:
This interrupts the boot process before the Flash file system can initialize, and after a short while (continue holding the “mode” button) you will see the following prompt:
Step 2.
Initialize the flash file system with the command: flash_init
Step 3.
Delete the config.text file from the flash directory:
Step 4.
Delete the vlan.dat file from the flash directory:
Step 5.
Reboot the switch and you’re done:
Thanks for reading.
About Rich Bibby
Rich is a Senior Network Engineer based in the UK, with a passion for all things Network Automation. Follow me on Twitter and GitHub
93 thoughts on “ Reset a Cisco 2960 Switch To Factory Default Settings ”
You are the best.
Thanks man. Much appreciated
it’s working good
Very good post. I absolutely appreciate this site.
Keep it up!
thank you very much!!
Thanks man!! You the best
Stopped a reboot to factory settings at 100% and 99%. Ugh! It’s a Gateway NetBook. Any ideas how to get it going again or finish the reboot progress?
i’m and mohamad thnks you very much…..barzoo too
Legend mate, simple and effective!
many thanks
Excellent Article : I published a similar one when I got my first 2960 for my homelab
Thanks for the comment and link ! you’ve got some great content on your blog there. reminds me I’ve not blogged for a few months now, so I need to get back into it!
Rich
I want to use wireshark to monitor some calls but I don’t know how to config my cisco 2960 switch and I need help.
Thanks Man, much appreciate
NIC this works, with 0 problem
I have three 2960x switches that used to be stacked. I did the above procedure on all three but they still have remnants of the old config (i.e. Stack 3 still shows up as ‘stack 3’ during boot up and the interfaces are all still labelled ‘GigabigEthernet 3/0/1-52’ and on stack 2 they are gigabitethernet 2/0/1, etc.).
To clarify, the switches are not connected to each other in any way… Here is what I see at the end of the initialization sequence on what used to be switch3:
cisco WS-C2960X-48LPS-L (APM86XXX) processor (revision A0) with 524288K bytes of memory.
Processor board ID FOC1744Y0P1
Last reset from power-on
1 Virtual Ethernet interface
1 FastEthernet interface
52 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.
512K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address : C0:7B:BC:4B:83:00
Motherboard assembly number : 73-14191-03
Power supply part number : 341-0528-01
Motherboard serial number : FOC17430RHU
Power supply serial number : DCB174171XR
Model revision number : A0
Motherboard revision number : A0
Model number : WS-C2960X-48LPS-L
Daughterboard assembly number : 73-14200-03
Daughterboard serial number : FOC17426JNR
System serial number : FOC1744Y0P1
Top Assembly Part Number : 800-38006-01
Top Assembly Revision Number : B0
Version ID : V01
CLEI Code Number : CMMLP00ARA
Daughterboard revision number : A0
Hardware Board Revision Number : 0x05
Press RETURN to get started!
*Mar 1 00:00:26.067: Read env variable – LICENSE_BOOT_LEVEL =
Mar 30 01:27:38.150: %IOS_LICENSE_IMAGE_APPLICATION-6-LICENSE_LEVEL: Module name = c2960x_lanbase Next reboot level = lanbase and License = lanbase
Jan 11 23:40:18.275: in Switch 0. Cannot read pid from Flexstack module
Jan 11 23:41:15.597: %STACKMGR-4-SWITCH_ADDED: Switch 3 has been ADDED to the stack
Jan 11 23:41:17.160: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
Jan 11 23:41:17.160: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0, changed state to down
Jan 11 23:41:18.540: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
Jan 11 23:41:22.238: %SYS-5-CONFIG_I: Configured from memory by console
Jan 11 23:41:22.333: %STACKMGR-5-SWITCH_READY: Switch 3 is READY
Jan 11 23:41:22.333: %STACKMGR-4-STACK_LINK_CHANGE: Stack Port 1 Switch 3 has changed to state DOWN
Jan 11 23:41:22.333: %STACKMGR-4-STACK_LINK_CHANGE: Stack Port 2 Switch 3 has changed to state DOWN
Jan 11 23:41:22.728: %STACKMGR-5-MASTER_READY: Master Switch 3 is READY
Jan 11 23:41:22.826: %SYS-5-RESTART: System restarted —
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.0(2)EX3, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Wed 11-Sep-13 02:04 by prod_rel_team
Jan 11 23:41:24.168: %LINK-5-CHANGED: Interface FastEthernet0, changed state to administratively down
Jan 11 23:41:24.224: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down
Jan 11 23:41:27.037: %USB_CONSOLE-6-MEDIA_RJ45: Console media-type is RJ45.% Generating 1024 bit RSA keys, keys will be non-exportable…
[OK] (elapsed time was 1 seconds)
[OK]
Jan 11 23:41:39.729: %SSH-5-ENABLED: SSH 1.99 has been enabled
Jan 11 23:41:39.816: %PKI-6-AUTOSAVE: Running configuration saved to NVRAM
Hi Mike.
This is just a simple question about renumbering the switch in global config mode:
switch 3 renumber 1
The switch will keep it’s stack number and use it if stacked again, provided the number is not being used in the new stack it is connected to.
Very nice, got rid of my vlans I created and all other commands from when I was doing my lab setup that were left there even after wr erase was done. Thank you for posting an easy to follow post.
I have a problem .when I change the IOS from rommon I try to reload the switch but he stopped and not complet it,s boot as show.My switch is 2960S and I installed version is c2960-lanbasek9-mz.122-53.SE2.bin.
How to exit this executing mode and how to troubleshooting.Please
help me.
as far as l know that is a normal procedure…why would you want to interrupt it?? what really do you want
I have one cisco 2960x series switch, when i let power it up the switch is frequently resetting every 10 min once, what is the solution for this unknown issue
I have a problem .when I change the IOS 2960TTL from hiper terminal،page http not working.Please give me advice. ؟؟؟ Thank you
Nice post! Simple and descriptive!
Great job. Thanks!
Thank you very much, i think this is the best way resetting the cisco switch catalyst if we forgot the pass.
You save my life, thanks a lot
Thanks Rich for increasing the little knowledge I have for resetting these type switches.
Great !! Its working
woooow this is dope work ..
Nice Post and its been executed.
Thanks a lot saved my a** in the office.
Thanks a lot!
Maybe for interest:
-it was running for me only with Serial (on PC) to Lan (blue console RJ45 on the left side below)
(I wasn’t able to see the GUI while using the USB to MiniUSB-Console Cable on top of the switch)
-I had pressing the little mode button for 35 seconds.
Very good information..thanks for sharing with us
Why drop into rommon to do this? Much simpler to do it from standard exec mode
Switch#write erase
Switch#delete vlan.dat
the scenario I was thinking with this is when you don’t have the user id and password to log on in the first place
Rich
Perfeito….
Funcional normalmente apos os procedimentos..
Valeu.
Thank you very much.
Does anyone know how to copy or backup the config.text file from switch: mode?
thank youuuu so muchhhh!
Brilliant! Thank-you for your post. I did notice that I needed to release the button after seeing the line about the password-recovery before the rest would appear.
I have tried factory reset to switch 2960x series but after completion console mode password not removed.
It always ask to enter console password.
I have done it by pressing mode button before switch powered on, then enter command flash_init , then try to delete config.text then says not present, then delete vlan.dat , it runs then enter command boot, after that it again ask console password.
That was just awesome thank youuuuu
Can anybody help me with this?
I already deleted the config.text and vlan.dat but it shows me this after I reboot.
I want to configure with a clean slate installation.
Jun 12 07:21:13.702: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
Jun 12 07:21:13.702: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0, changed state to down
Jun 12 07:21:15.541: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
Jun 12 07:21:38.134: %STACKMGR-5-SWITCH_READY: Switch 1 is READY
Jun 12 07:21:38.134: %STACKMGR-4-STACK_LINK_CHANGE: Stack Port 1 Switch 1 has changed to state DOWN
Jun 12 07:21:38.134: %STACKMGR-4-STACK_LINK_CHANGE: Stack Port 2 Switch 1 has changed to state DOWN
Jun 12 07:21:38.455: %STACKMGR-5-MASTER_READY: Master Switch 1 is READY
Jun 12 07:21:38.462: %SYS-5-RESTART: System restarted —
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Fri 16-Dec-16 21:27 by prod_rel_team
Jun 12 07:21:40.451: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to down
Jun 12 07:21:41.454: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0, changed state to down
Jun 12 07:21:42.548: %USB_CONSOLE-6-MEDIA_RJ45: Console media-type is RJ45.
Hope to hear from anyone.
LOL thanks Mike!
My buddy did give me an idea though, which didn’t really apply to me but would apply to someone not wanting to lose their config. Instead of deleting config.txt and vlan.dat, you could rename them, config.old and vlan.old, then when you log back into the switch, go into privileged mode, then rename those files back to their original config.txt and vlan.dat. Since you’re already in privileged mode, you can then get rid of or change the passwords and/or settings however you like. A good reason to make sure no one has physical access to your switch.
Very good point. Never tried this. Thanks for the comment
Thank a million
User Access Verification
Username: cisco
Password:
thank you.it is helping
Thanks so much for the info, you save me alot.
Great post. It helped me to reset my cisco 2960.
Cheers Rich,
Hope you are keeping well !!
Phil.
All good thanks Phil! Hope all is well with you too
it worked perfectly on this old 2960G that our client replaced and we are now using in the lab environment.
thank you very much for this post.
Tried this on two different Cisco 2960G switches. When the switches rebooted, it promptly asked for a password (fortunately, it was CISCO. At the user mode (switch>) it will not execute a flash_init command! It will not allow the deleting of the config.txt file either! I thought that these instruction would reset the switch to factory defaults? If memory serves me correct, Cisco switches DO NOT HAVE PASSWORDS!
VERY disappointed that these instructions do not do what they clain to do!
Oh, these instructions do exactly what they claim to do, perfectly if I may say so…!!
Good job…
Thanks for the comment!
its working thanks
Thanks a lot. you are the best!
Will this also delete the current startup/running config on the switch?
yes, reset to factory defaults
It is working thank you very much.
Best regards,
Myrza
Well I sincerely liked studying it. This information offered by you is very useful
for good planning.
Thank you for this.. You are the best!
What would you recommend if the config.text and vlan.dat or read-only after this process? Cant seem to figure out how to get around this?
sorry should be if both are read-only. I can not remove either of them.
how to creat 1 vlan in all 48 port swich
good one.. Thanks
Great tutorial. I tested the method on Packet Tracer and the only problem I stumbled upon was with the “del flash:” as the console said the command was invalid. Instead, I used the complete command “delete” along with the rest and it went perfectly.
Thanks for the content!
Thanks friend , what is exactly this procedure did ? how can i follow you? better than rommon mode.
What happens if I press and hold the Button Mode on a Stack Setup? Will it erase the Whole Stack or just the pressed Switch? Thanks
Great instructions. Worked perfectly.
The post is very helpful ….it has worked
J’ai un commutateur Catalist Express 500 séries, je voulais réinitialiser au mode usine mais j’accède à l’interface par Putty malheureusement je n’ai pas la main sur le commutateur.
thanks, still working..
Hi rich.
I missed my login password
I want to reset password without reboot the switch .Help me please