How to Reset Cisco Catalyst 2960 Switch to Factory Default Settings and IP Routing?

Chris Morris
4 min readJul 27, 2020

--

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.

Switch(config)#^Z

Switch#reload

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 .

Now we verify:

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#conf t

Switch(config)#ip routing

Switch(config)#

Switch(config)#int vlan 10

Switch(config-if)#ip add 192.168.10.1 255.255.255.0

Switch(config)#^Z

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

system software:

flash_init

boot

switch:

Step 2

Initialize the flash file system with the command: flash_init

switch: flash_init

Initializing Flash...

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.

-- MORE --

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:

switch: boot

Loading "flash:c2960s-universalk9-mz.122-58.SE2.bin"...

--- 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]:

% Please answer 'yes' or '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.

--

--

Chris Morris

Technical Content writing is my passion. I have broad experience in writing for the technical field. I started my writing at the age of sixteen.