Clearing Ethernet Switch Configuratio... Log Out | Topics | Search
Moderators | Edit Profile

CN Discussion » Technical Guides and Frequently Asked Questions » Clearing Ethernet Switch Configuration (VLANs) « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Arseny Taranenko
Username: Admin

Registered: 12-2003
Posted on Wednesday, November 07, 2007 - 11:08 am:   

The procedure for deleting a switch configuration is similar to that of a router. The configuration file “startup-config” should be erased followed by the switch reload:

Switch#write erase
Switch#reload

These steps will remove all the previous user configuration and place all the switch ports in VLAN 1, however it will not delete the VLANs created by the user. The VLANs are not stored in the startup-config, but in a separate file – “vlan.dat”. Normally this is not a problem since after the reload all the ports are removed from their VLANs and placed in the VLAN 1, however if you want to delete the empty VLANs from the database execute the following commands:

Switch#configure terminal
Switch(config)#no vlan 24 78 //replace the range with the numbers corresponding to your VLANs

On some older switches, instead of executing “no vlan” command at the “config” prompt, you need to enter the VLAN database mode:

Switch#vlan database
Switch(vlan)#no vlan 24

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration