Sunday, February 20, 2011

Cara nk reset switch kpd factory default setting

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.



1- Reset Catalyst Switches Running CatOS

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)
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.


2- Reset Catalyst Switches Running Cisco IOS Software

Cat2950# write erase
Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK]
Erase of nvram: complete
Cat2950# reload
System configuration has been modified. Save? [yes/no]: n

!--- Do not save the configuration at this prompt. Otherwise, the switch
!--- reloads with the current running configuration and does not reset to default.

Proceed with reload? [confirm]y

2w0d: %SYS-5-RELOAD: Reload requested

C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 18:57 by antonino
WS-C2950G-12-EI starting...

Reset VLAN Information

Cat2950# show vlan

Cat2950# dir flash:

!--- On the 4500/4000, issue the dir cat4000_flash: command.
!--- On the 6500/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#

Cat2950# delete flash:vlan.dat
Delete filename [vlan.dat]
!----- Press Enter.

The reason is that this vlan and VTP information is actually kept in the VLAN.DAT file
in Flash memory, and the contents of Flash are kept on a reload. The file has to be
deleted manually.

There's a little trick to deleting this file. The switch will prompt you twice to ask if you
really want to get rid of this file. Don't type "y" or "yes" just accept the defaults by
hitting the return key. If you type "y", the router attempts to delete a file named "y",
as shown here:

------!
Cat2950# delete vlan.dat
Delete filename [vlan.dat]? y
Delete flash:y? [confirm]
%Error deleting flash:y (No such file or directory)

Cat2950# delete vlan.dat
Delete filename [vlan.dat]?
Delete flash:vlan.dat? [confirm]

Cat2950# reload


Another way to delete Vlan :

So simple:
Cat2950(config)#no vlan 2-1000

Verify that VLANs (2-1000) are gone:
Cat2950(config)#do sh vlan br

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/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Fa0/25, Fa0/26, Fa0/27
Fa0/28, Fa0/29, Fa0/30, Fa0/31
Fa0/32, Fa0/33, Fa0/34, Fa0/35
Fa0/36, Fa0/37, Fa0/38, Fa0/39
Fa0/40, Fa0/41, Fa0/42, Fa0/43
Fa0/44, Fa0/45, Fa0/46, Fa0/47
Fa0/48, Gi0/1, Gi0/2, Gi0/3
Gi0/4
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup




Reference::
http://www.cisco.com/en/US/products/hw/switches/ps607/products_tech_note09186a00800c4546.shtml
http://www.mcmcse.com/cisco/guides/vlandat.shtml
http://cciepursuit.wordpress.com/2007/06/16/easy-way-to-quickly-remove-vlans/







No comments: