Resetting Switch Configuration Including VLAN Configuration Files: Difference between revisions

From ITCwiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 127: Line 127:


User configured VLAN's should all be gone.
User configured VLAN's should all be gone.
*[[Password Recovery and Device Reset Procedures]]

Latest revision as of 15:06, 9 December 2010

Resetting Switch Configuration Including VLAN Configuration Files

To reset a switch to factory default settings use the erase statup-config or write erase command. These commands will not clear config-register or boot system settings. Boot system parameters are modified by using the boot command.

Note: If you don't have access to priveleged EXEC mode you must use the Recover Cisco Catalyst 2960 Switch Password process first.


1. Enter the write erase command from priveleged EXEC mode.

S1# write erase
Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK]
Erase of nvram: complete

2. Reload the switch by entering the reload command.

S1# 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

When the reload is complete the switch has been reset to factory defaults except for the VLAN configuration.


Reset VLAN Configuration

1. Use the show VLAN command to verify the VLAN Information.

S1# 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
       

Despite the erase of the startup configuration file, these user-created VLANs remain.


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


2. To verify the VLAN.dat file enter the dir flash: command. Do not forget the colon.

S1# dir flash:
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)

3. Delete the VLAN.dat file from the flash using the delete command.

S1#delete flash:vlan.dat
Delete filename [vlan.dat]?
!--- Press Enter.
Delete flash:vlan.dat? [confirm]y

4. Reload the switch using the reload command.

S1# reload
Proceed with reload? [confirm]y
4w5d: %SYS-5-RELOAD: Reload requested

5. When the switch is up verify the VLAN information by entering the show VLAN command again.

Switch# 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#

User configured VLAN's should all be gone.