Notification texts go here Contact Us Buy Now!

Clearing a Switch - CCNPv6 LAB 1

From a computer running a terminal emulation program, connect to the console port of the switch that you want to clear using a console cable. You should see a console prompt that includes the switch’s hostname, followed by a > or #. The default switch hostname is “Switch.”

Switch>

or

Switch#

If the prompt ends with a >, you are not in privileged EXEC mode. To enter privileged EXEC mode, type enable. This might require a password. If you are in a configuration mode, type exit or end.

If not enabled:

Switch> enable

Switch#

If in global configuration mode:

Switch(config)# exit

Switch# 

Topology
Objective
Clear the configuration of a standalone switch to prepare it for a new lab.

Background

When working with a switch that has been previously configured, any new commands entered will be merged with the existing configuration, causing unpredictable results. In this lab you prepare a Catalyst 2960 or 3560 switch for use with a lab. This is accomplished by erasing the startup configuration from NVRAM and deleting the VLAN database.
Note: This lab uses the Cisco WS-C2960-24TT-L switch with the Cisco IOS image c2960-lanbasek9-mz.122-46.SE.bin and the Catalyst 3560-24PS switch with the Cisco IOS image c3560-advipservicesk9-mz.122-46.SE.bin. Other switches (such as a 2950 or a 3550), and Cisco IOS Software versions can be used if they have comparable capabilities and features. Depending on the switch model and Cisco IOS Software version, the commands available and output produced might vary from what is shown in this lab.

Required Resources
You may use one of the following switches or a comparable one with this lab:
• Cisco 2960 with the Cisco IOS Release 12.2(46)SE C2960-LANBASEK9-M image or comparable
• Cisco 3560 with the Cisco IOS Release 12.2(46)SE C3560-ADVIPSERVICESK9-M image or comparable
• Console cable

Step 1: Connect to the switch console port and enter privileged EXEC mode.

From a computer running a terminal emulation program, connect to the console port of the switch that you want to clear using a console cable. You should see a console prompt that includes the switch’s hostname, followed by a > or #. The default switch hostname is “Switch.”

Switch>

or

Switch#

If the prompt ends with a >, you are not in privileged EXEC mode. To enter privileged EXEC mode, type enable. This might require a password. If you are in a configuration mode, type exit or end.

If not enabled:

Switch> enable

Switch#

If in global configuration mode:

Switch(config)# exit

Switch#

Step 2: Delete the VLAN database file.

In privileged EXEC mode, type delete flash:vlan.dat and press Enter. If you are asked to confirm, press Enter until you are back to the original prompt.

Switch# delete flash:vlan.dat

Delete flash:vlan.dat? [confirm]

Switch#

Step 3: Erase the startup config from NVRAM.

After deleting the vlan.dat file, you can erase the startup configuration on the switch by typing erase startup-config. You again have to press Enter to confirm.

Switch# erase startup-config

Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]

[OK]

Erase of nvram: complete

Switch#

Step 4: Reload the device, but do not save the system configuration if prompted.

After clearing the switch configuration, reload the switch by typing reload and pressing Enter. If you are asked whether to save the current configuration, answer no. Press Enter to confirm. The switch starts reloading. Your output might look different depending on the switch model that you are using. This step might take a few minutes, because the switch needs time to reload.

Switch# reload

System configuration has been modified. Save? [yes/no]: no

Proceed with reload? [confirm]

%SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload command.

Base ethernet MAC Address: 00:1b:0c:6d:8f:00

Xmodem file system is available.

The password-recovery mechanism is enabled.

Initializing Flash...

flashfs[0]: 606 files, 20 directories

flashfs[0]: 0 orphaned files, 0 orphaned directories

flashfs[0]: Total bytes: 32514048

flashfs[0]: Bytes used: 10336256

flashfs[0]: Bytes available: 22177792

flashfs[0]: flashfs fsck took 10 seconds.

...done Initializing Flash.

Boot Sector Filesystem (bs) installed, fsid: 3

done.

Loading "flash:/c2960-lanbase-mz.122-46.SE/c2960-lanbasek9-mz.122-46.SE.bin"..

.@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@

File "flash:/c2960-lanbase-mz.122-46.SE/c2960-lanbasek9-mz.122-46.SE.bin" unco

mpressed and installed, entry point: 0x3000

executing...

Restricted Rights Legend

Use, duplication, or disclosure by the Government is

subject to restrictions as set forth in subparagraph

(c) of the Commercial Computer Software - Restricted

Rights clause at FAR sec. 52.227-19 and subparagraph

(c) (1) (ii) of the Rights in Technical Data and Computer

Software clause at DFARS sec. 252.227-7013.

cisco Systems, Inc.

170 West Tasman Drive

San Jose, California 95134-1706

Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(46)SE, RELE

ASE SOFTWARE (fc2)

Copyright (c) 1986-2008 by Cisco Systems, Inc.

Compiled Thu 21-Aug-08 15:59 by nachen

Image text-base: 0x00003000, data-base: 0x01200000

Initializing flashfs...

flashfs[1]: 606 files, 20 directories

flashfs[1]: 0 orphaned files, 0 orphaned directories

flashfs[1]: Total bytes: 32514048

flashfs[1]: Bytes used: 10336256

flashfs[1]: Bytes available: 22177792

flashfs[1]: flashfs fsck took 1 seconds.

flashfs[1]: Initialization complete....done Initializing flashfs.

POST: CPU MIC register Tests : Begin

POST: CPU MIC register Tests : End, Status Passed

POST: PortASIC Memory Tests : Begin

POST: PortASIC Memory Tests : End, Status Passed

POST: CPU MIC interface Loopback Tests : Begin

POST: CPU MIC interface Loopback Tests : End, Status Passed

POST: PortASIC RingLoopback Tests : Begin

POST: PortASIC RingLoopback Tests : End, Status Passed

POST: PortASIC CAM Subsystem Tests : Begin

POST: PortASIC CAM Subsystem Tests : End, Status Passed

POST: PortASIC Port Loopback Tests : Begin

POST: PortASIC Port Loopback Tests : End, Status Passed

Waiting for Port download...Complete

This product contains cryptographic features and is subject to United

States and local country laws governing import, export, transfer and

use. Delivery of Cisco cryptographic products does not imply

third-party authority to import, export, distribute or use encryption.

Importers, exporters, distributors and users are responsible for

compliance with U.S. and local country laws. By using this product you

agree to comply with applicable laws and regulations. If you are unable

to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:

http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to

export@cisco.com.

cisco WS-C2960-24TT-L (PowerPC405) processor (revision B0) with 61440K/4088K byt

es of memory.

Processor board ID FOC1104W0G0

Last reset from power-on

1 Virtual Ethernet interface

24 FastEthernet interfaces

2 Gigabit Ethernet interfaces

The password-recovery mechanism is enabled.

64K bytes of flash-simulated non-volatile configuration memory.

Base ethernet MAC Address : 00:1B:0C:6D:8F:00

Motherboard assembly number : 73-10390-03

Power supply part number : 341-0097-02

Motherboard serial number : FOC11036013

Power supply serial number : AZS1103015V

Model revision number : B0

Motherboard revision number : C0

Model number : WS-C2960-24TT-L

System serial number : FOC1104W0G0

Top Assembly Part Number : 800-27221-02

Top Assembly Revision Number : C0

Version ID : V02

CLEI Code Number : COM3L00BRA

Hardware Board Revision Number : 0x01

Switch Ports Model SW Version SW Image

------ ----- ----- ---------- ----------

* 1 26 WS-C2960-24TT-L 12.2(46)SE C2960-LANBASEK9-M

Step 5: When the switch restarts, do not enter the initial configuration dialog, but terminate autoinstall.

The switch might log messages to the console, such as interfaces coming up and down. When you see the “Press RETURN to get started!” prompt, press Enter.

If you are asked to enter an initial configuration dialog, type no. This places you at the user EXEC prompt. If you accidentally type yes, you can break out of the initial configuration dialog at any time by pressing Ctrl-C. If you are asked whether you want to terminate autoinstall, press Enter for “yes.”

Press RETURN to get started! Enter

--- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: no

Would you like to terminate autoinstall? [yes]: Enter

About the Author

Hey Folks! Welcome to my blog. Stay tuned as we will be discussing the Installation, Configuration and Troubleshooting of Systems, Networks, Cloud Integration and Bunch of other Tech Stuff.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.