How to delete Vlans on cisco 2900 XL series?

Sam Winchester

Reputable
Jan 21, 2015
9
0
4,510
I set up vlan 50 my on switch, now I don't know how to delete it. I tried delete vlan.dat command but vlan 50 still shows up under show vlan brief command.

Any ideas?
 
Solution
First I will assume you do not have this hooked to a network the vlan.dat file will be relearned from other switches. You could put the switch into transparent mode and then the vlans are kept in the config rather than the vlan.dat.

Most times you must reboot the switch after you delete the vlan.dat. Now if you have the vlan definced on any port it will just recreate it on boot when it reads the config.
First I will assume you do not have this hooked to a network the vlan.dat file will be relearned from other switches. You could put the switch into transparent mode and then the vlans are kept in the config rather than the vlan.dat.

Most times you must reboot the switch after you delete the vlan.dat. Now if you have the vlan definced on any port it will just recreate it on boot when it reads the config.
 
Solution
Go to privileged mode and type vlan database. enter.

(vlan)# delete vlan.dat

press enter twice and from privileged mode type reload

#: reload. enter
save the configs and switch will restart.

And type show vlan brief and it will be gone!!