Cisco Resetting Catalyst Switches to Factory Defaults

Similar documents
Managing vlan.dat in Cisco Catalyst Switches Running Cisco IOS Software

Upgrading Software Images on Catalyst Series Switches/routers

The Purpose and Use of the Configuration Register on All Cisco Routers

Basic Router and Switch Instructions (Cisco Devices)

Lab Use Network Inspector to Observe STP Behavior

Password Recovery Procedure for the Cisco 806, 826, 827, 828, 831, 836, 837 and 881 Series Routers

Password Recovery Procedure for the Cisco 3600 and 3800 Series Routers

Basic Configuration of the Cisco Series Internet Router

Password Recovery Procedure for the Cisco 2900 Series Integrated Services Router

Connect the Host to attach to Fast Ethernet switch port Fa0/2. Configure the host as shown in the topology diagram above.

Backup and Recovery Procedures

Password Recovery Procedure for the Cisco Catalyst 2948G L3, 4840G, and 4908G L3 Switch Routers

Password Recovery Procedure for the Cisco Catalyst Fixed Configuration Layer 2 and Layer 3 Switches

Managing Storage Services Modules

3.1 Connecting to a Router and Basic Configuration

Administering the Network Analysis Module. Cisco IOS Software. Logging In to the NAM with Cisco IOS Software CHAPTER

Xmodem Console Download Procedure Using ROMmon

Configuring EtherChannel and 802.1Q Trunking Between Catalyst L2 Fixed Configuration Switches and Catalyst Switches Running CatOS

Lab Managing the MAC Address Table

CCNA 2 Chapter 5. Managing Cisco IOS Software

Lab Advanced Telnet Operations

Table of Contents. Cisco How to Download a Software Image to a Cisco 2600 via TFTP Using the tftpdnld ROMmon Command

Backing Up and Restoring Data

Table of Contents. Cisco How to Download a Software Image to a Cisco 2600 through TFTP Using the tftpdnld ROMmon Command

Lab Introductory Lab 1 - Getting Started and Building Start.txt

Lab 8.4.3b Managing Cisco IOS images with ROMMON and TFTP

Lab Introductory Lab 1 Getting Started and Building Start.txt

Supervisor Redundancy for the Cisco Catalyst 6500 Series Switches with Cisco Catalyst Operating System


How To Install Cisco Asr 9000 Series Router Software On A Mini Mini Mini (Cisco Ios) Router

Objectives Understand Cisco IOS system architecture components. Work with the Cisco IOS Command Line Interface (CLI) and common commands.

Note: This case study utilizes Packet Tracer. Please see the Chapter 5 Packet Tracer file located in Supplemental Materials.

Managing Software and Configurations

Troubleshooting the Firewall Services Module

Lab Load Balancing Across Multiple Paths

Configuring the Cisco IOS In-Service Software Upgrade Process

Lab 8.4.3a Managing Cisco IOS Images with TFTP

Cisco - Configure the 1721 Router for VLANs Using a Switch Module (WIC-4ESW)

Lab Review of Basic Router Configuration with RIP. Objective. Background / Preparation. General Configuration Tips

ROM Monitor. Entering the ROM Monitor APPENDIX

CISCO CATALYST 3550 Series Switches

IP Phone Configuration and Troubleshooting Guide

Recover a Router from Corrupted or Missing Software Image

Lab 2 - Basic Router Configuration

Lab 5.3.9b Managing Router Configuration Files Using TFTP

Lab Creating a Network Map using CDP Instructor Version 2500

Applicazioni Telematiche

Chapter 6 Updating Software Images and Configuration Files

Enabling NetFlow and NetFlow Data Export (NDE) on Cisco Catalyst Switches

Procedure: You can find the problem sheet on Drive D: of the lab PCs. Part 1: Router & Switch

Connecting to the Firewall Services Module and Managing the Configuration

Honeywell Internet Connection Module

Consolidated Packages and SubPackages Management

- Advanced IOS Functions -

Welcome to Todd Lammle s CCNA Bootcamp

Configuring LACP (802.3ad) Between a Catalyst 6500/6000 and a Catalyst 4500/4000

Router Recovery with ROM Monitor

Troubleshooting the Firewall Services Module

Lab Configuring OSPF with Loopback Addresses

- Virtual LANs (VLANs) and VTP -

Image Refresh Using the Archive and Restore Feature

CT5760 Controller and Catalyst 3850 Switch Configuration Example

ZyXEL AES-100 V2.03(AS.0) Release Notes/Manual Supplement

Tue Apr 19 11:03:19 PDT 2005 by Andrew Gristina thanks to Luca Deri and the ntop team

Loading IOS Image with Xmodem when TFTP is unavailable

Configuring the Switch with the CLI-Based Setup Program

Switching in an Enterprise Network

Chapter 2 Lab 2-2, Configuring EtherChannel Instructor Version

How To Balance On A Cisco Catalyst Switch With The Etherchannel On A Fast Ipv2 (Powerline) On A Microsoft Ipv1 (Powergen) On An Ipv3 (Powergadget) On Ipv4

Skills Assessment Student Training Exam

Catalyst 3750 Switch Boot Loader Commands

ADMINISTRATION GUIDE Cisco Small Business

Chapter 7 Configuring Trunk Groups and Dynamic Link Aggregation

Chapter 7 Lab 7-1, Configuring Switches for IP Telephony Support

Lab Configuring the Cisco 2960 Switch

File Transfers. Contents

Mobility System Software Quick Start Guide

Managing ACE Software Licenses

Configuring the Switch for the Firewall Services Module

Catalyst 6500/6000 Switches NetFlow Configuration and Troubleshooting

Configuring InterVLAN Routing and ISL/802.1Q Trunking on Catalyst 2900XL/3500XL/2940/2950/2970 Series Switches Using an External Router

Cisco Unified Communications Express - Quick Configuration Tool User Guide

SolarWinds Technical Reference

Stateful Switchover (SSO)

Management Software. Web Browser User s Guide AT-S106. For the AT-GS950/48 Gigabit Ethernet Smart Switch. Version Rev.

Configuring and Managing Token Ring Switches Using Cisco s Network Management Products

HOW TO CONFIGURE CISCO FIREWALL PART I

USB Disable for Cisco ISRs Feature Module

FWSM introduction Intro 5/1

Link Aggregation Interoperability of the Dell PowerConnect 5316M with Cisco IOS or Cisco CatOS based Switches. By Bruce Holmes

Reboot the ExtraHop System and Test Hardware with the Rescue USB Flash Drive

Read Me First for the HP ProCurve Routing Switch 9304M and Routing Switch 9308M

AT-S60 Version Management Software for the AT-8400 Series Switch. Software Release Notes

Cisco 1700 Router Overview

Lab Configure IOS Firewall IDS

DRO-210i LOAD BALANCING ROUTER. Review Package Contents

1 Basic Configuration of Cisco 2600 Router. Basic Configuration Cisco 2600 Router

CCNP Switch Questions/Answers Implementing High Availability and Redundancy

ExtremeWireless Maintenance Guide

Transcription:

Table of Contents Resetting Catalyst Switches to Factory Defaults...1 Introduction...1 Before You Begin...1 Resetting Catalyst Switches Running CatOS...1 Resetting Catalyst Switches Running Cisco IOS...2 Resetting Switch Configuration...3 Resetting VLAN Information...4 Resetting Catalyst Switches in Redundant Mode...5 Related Information...6 i

Resetting Catalyst Switches to Factory Defaults Introduction Before You Begin Resetting Catalyst Switches Running CatOS Resetting Catalyst Switches Running Cisco IOS Resetting Switch Configuration Resetting VLAN Information Resetting Catalyst Switches in Redundant Mode Related Information 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 for resetting your switches. To reset the Catalyst switches to factory defaults, you need access to the switch console using either a physical console or a Telnet connection. You will also need the console/enable passwords. If you forget the console and enable password of your switch, you can not reset the switch configuration to factory default to reset the password. You will need to follow the password recovery procedures for your switch. Refer to the following document for steps to recover the passwords on your Catalyst switches: Password Recovery Procedures Before You Begin Before resetting the switch to factory defaults, make sure to backup your configuration on a Trivial File Transfer Protocol (TFTP) server, or locally on the bootflash or slot0: device. Once you clear the user configuration, there is no way to recover that configuration without restoring the backed up configuration. To upload a configuration file on a TFTP server, refer to the following document: Working with Configuration Files Resetting Catalyst Switches Running CatOS This procedure applies to Catalyst 4000/5000/6000 switches running CatOS. These switches store the configuration in NVRAM. The configuration is saved in the NVRAM automatically wherever users enter the commands in enable mode. On Cisco IOS, the configuration must be saved by issuing the write memory command. The system or module configuration on these switches can be reset to factory defaults by issuing the clear config command. The command syntax is as follows: clear config {mod rmon all snmp acl {nvram}} The clear config all command clears the user configured system, as well as module configuration. This command will not, however, clear the boot variables, such as config register and boot system settings. The

boot variable settings can be altered by issuing the set boot command. If your switch has any Layer 3 (L3) modules, such as Route Switch Modules (RSMs)/Route Switch Feature Cards (RSFCs) on Catalyst 5000s or the Mutilayer Switch Feature Cards (MSFCs) on Catalyst 6000s, the clear config all command will not clear the Cisco IOS configuration on this L3 module. To clear the configuration on L3 modules, access the L3 module by issuing the session command and resetting the switch to factory defaults using procedure in the Resetting Catalyst Switches Running Cisco IOS section of this document. The following example shows how to reset the configuration on the switch to factory defaults: Cat5k> (enable) 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]? y......... 2002 Aug 03 15:16:19 %MLS 5 MCAST_STATUS:IP Multicast Multilayer Switching is disabled System configuration cleared. Use 'session' command to clear ATM or Router specific configurations. Console> (enable) Console> (enable) When the configuration is erased, 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 below. Cat5k> (enable) clear config 5 This command will clear module 5 configuration. Do you want to continue (y/n) [n]? y... Module 5 configuration cleared. Cat5k> (enable) Cat5k> (enable) Resetting Catalyst Switches Running Cisco IOS This procedure applies to Catalyst 4000/6000 series switches running Integrated Cisco IOS (Native Mode), Catalyst 2950/3550/2900XL/3500XL series switches running Cisco IOS, Catalyst 2948G L3/4908G L3 switches running Cisco IOS, and L3 modules running Cisco IOS. Note: L3 modules include Catalyst 4000s (WS X4232 L3), Catalyst 5000s (RSM/RSFC), and Catalyst 6000s (MSFC/MSM). The running configuration and the startup configuration are the two configuration files on switches running Cisco IOS. The running configuration is stored in the RAM and the startup configuration is stored in the NVRAM. When you make a configuration change to a switch, the change becomes part of the running configuration. The change does not automatically become part of the startup configuration, which is used each time the switch restarts. The configuration changes can be saved into NVRAM (startup configuration) by issuing the write memory command. If you do not save your changes to NVRAM, they are lost when the switch reloads. On Catalyst 4000/6000 series switches running Integrated Cisco IOS (Native Mode) and Catalyst 2950/3550/2900XL/3500XL series switches running Cisco IOS, the VLAN information is stored in a separate file called vlan.dat file in Flash or NVRAM. To reset these switches to factory defaults, you need to delete the startup config and the vlan.dat file. You can delete the startup config file on Catalyst 2948G L3/4908G L3

switches and L3 modules. These switches do not contain VLAN information since they do not participate in VTP. Resetting Switch Configuration The switch can be reset to factory defaults by issuing the erase startup config or write erase command. This command will not, however, clear the boot variables, such as config register and boot system settings. The boot system parameters can be altered by issuing the boot command. In Catalyst 4000/6000 switches running Integrated Cisco IOS (Native Mode), the configuration register value can be changed by issuing the config register command. The following example shows how to reset the switch to factory defaults: Cat2950#write erase Erasing the nvram filesystem will remove all files! Continue? [confirm]y[ok] Erase of nvram: complete Cat2950# Cat2950#reload System configuration has been modified. Save? [yes/no]: n! Please make sure not to save the configuration at this! prompt. Otherwise, the switch the will not be reset to default. Proceed with reload? [confirm]y 2w0d: %SYS 5 RELOAD: Reload requested C2950 Boot Loader (CALHOUN HBOOT M) Version 12.0(5)WC(1), RELEASE SOFTWARE (fc1) Compiled Tue 27 Mar 01 23:28 by devgoyal WS C2950 24 starting... Output Skipped 32K bytes of flash simulated non volatile configuration memory. Base ethernet MAC Address: 00:05:DC:C9:79:00 Motherboard assembly number: 73 5781 08 Motherboard serial number: FAB0515A069 Model revision number: 02 Model number: WS C2950 24 System serial number: FAB0517Q00B System Configuration Dialog Would you like to enter the initial configuration dialog? [yes/no]:n 00:00:16: %SPANTREE 5 EXTENDED_SYSID: Extended SysId enabled for type vlan 00:00:21: %SYS 5 RESTART: System restarted Cisco Internetwork Operating System Software IOS (tm) C2950 Software (C2950 I6Q4L2 M), Version 12.1(9)EA1d, RELEASE SOFTWARE (fc1) Copyright (c) 1986 2002 by cisco Systems, Inc. Compiled Mon 17 Jun 02 18:55 by antoninon Press RETURN to get started! 00:00:37: %LINK 5 CHANGED: Interface Vlan1, changed state to administratively down 00:00:38: %LINEPROTO 5 UPDOWN: Line protocol on Interface Vlan1, changed state to down Switch> Switch> At this stage, the switch configuration is reset to it's factory defaults, excluding the VLAN information.

Resetting VLAN Information To reset the VLAN information to it's factory defaults, delete the vlan.dat file from the Flash or NVRAM and reload the switch. On Catalyst 6000 switches running Integrated Cisco IOS (Native Mode), the vlan.dat file is stored in const_nvram. On Catalyst 4000 switches running Integrated Cisco IOS (Native Mode), the vlan.dat file is stored in cat4000_flash:. On Catalyst 2950/3550/2900XL/3500XLs, the vlan.dat file is stored in flash:. On Catalyst 6000s, issue the erase const_nvram: command. On Catalyst 4000s, issue the erase cat4000_flash: command. On Catalyst 2950/3550/2900XL/3500XLs, issue the delete flash:vlan.dat command. Use the same steps as below for Catalyst 4000/6000 series switches running Integrated Cisco IOS (Native Mode). The following steps show how to delete the VLAN information on Catalyst 2950/3550/2900XL/3500XL switches: 1. Verify the VLAN information by issuing the show vlan command, and verify the vlan.dat file by issuing the dir command. Cat2950#show vlan VLAN Name Status Ports 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 2 VLAN0002 active 3 VLAN0003 active 4 VLAN0004 active! Although the startup configuration file is erased,! these user created VLANs are not removed. 600 VLAN0600 active 1002 fddi default active 1003 token ring default active 1004 fddinet default active 1005 trnet default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 1 enet 100001 1500 1002 1003 2 enet 100002 1500 0 0 3 enet 100003 1500 0 0 4 enet 100004 1500 0 0 600 enet 100600 1500 0 0 1002 fddi 101002 1500 1 1003 1003 tr 101003 1500 1005 srb 1 1002 1004 fdnet 101004 1500 1 ibm 0 0 1005 trnet 101005 1500 1 IBM 0 0 Switch# Cat2950#dir flash:! On the Catalyst 4000, issue the dir cat4000_flash: command,! and on the Catalyst 6000, issue the dir const_nvram: command. Directory of flash:/

2 rwx 2487439 Mar 11 1993 01:25:32 c2950 i6q4l2 mz.121 9.EA1d.bin 3 rwx 840 Mar 20 1993 09:20:09 vlan.dat! This vlan.dat file stores user configured VLANs. 4 rwx 2491435 Mar 08 1993 16:14:13 c2950 mvr.bin 6 rwx 42 Mar 01 1993 00:07:35 env_vars 7 rwx 109 Mar 11 1993 01:23:56 info 8 drwx 640 Mar 11 1993 01:26:35 html 19 rwx 109 Mar 11 1993 01:26:35 info.ver 7741440 bytes total (1088512 bytes free) Switch# 2. Delete the VLAN information from Flash or NVRAM, and reload the switch. Note: On the Catalyst 6000 and 4000, the delete command does not work. Instead you must issue the erase const_nvram: or erase cat4000_flash: command. Do not specify the vlan.dat file in the command syntax. Cat2950#delete flash:vlan.dat Delete filename [vlan.dat]?! Press Enter. Delete flash:vlan.dat? [confirm]y Switch# Switch#reload Proceed with reload? [confirm]y 4w5d: %SYS 5 RELOAD: Reload requested 3. After reload, check the VLAN information by issuing the show vlan command. The user configured VLANs are removed, and only factory default VLAN information is present on the switch. Cat2950#show vlan VLAN Name Status Ports 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 1002 fddi default active 1003 token ring default active 1004 fddinet default active 1005 trnet default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 1 enet 100001 1500 0 0 1002 fddi 101002 1500 0 0 1003 tr 101003 1500 0 0 1004 fdnet 101004 1500 ieee 0 0 1005 trnet 101005 1500 IBM 0 0 Switch# Resetting Catalyst Switches in Redundant Mode In Catalyst 5000/6000 switches running CatOS in redundant mode, if the configuration on the active Supervisor (Sup) is reset to factory defaults by issuing the clear config command, the standby Sup synchronizes with changes made on the active Sup and the switch resets to factory defaults. On these switches, whether the configuration mode is set to binary or text mode, the switch resets to factory defaults

when the configuration is cleared on the active Sup. The behavior is not the same in Catalyst 6000 switches running Integrated Cisco IOS (Native Mode) in redundant mode. If you reset the configuration on active Sup to factory defaults (which requires reloading the Sup module), the standby Sup becomes active and it loads the same user configuration. The switch never returns to factory defaults. In this case, you would need to physically remove the standby Sup module from the chassis and reset the active Sup configuration to factory defaults using the procedure in the Resetting Catalyst Switches Running Cisco IOS section of this document. When the active Sup comes online with the factory default configuration, insert the standby Sup back into the chassis. This will synchronize with the configuration on the active Sup, which is the factory default. Related Information Technology Support Product Support Technical Assistance Center All contents are Copyright 1992 2002 Cisco Systems, Inc. All rights reserved. Important Notices and Privacy Statement. Updated: Oct 03, 2002 Document ID: 24328