After VLAN planning is completed in a network system, you do not need to change the Vlan. In practice, Vlan planning may be re-implemented due to changes in the network structure, which involves Vlan deletion or reconstruction. Vlan deletion is very simple in cisco switches. You only need to perform operations on the core switch.
Configure on the core switch:
4506 en
Password: enter the password
4506 # vlandatabase:
% Warning: ItisrecommendedtoconfigureVLANfromconfigmode, asVLANdatabasemodeisbeingdeprecated. PleaseconsultuserdocumentationforconfiguringVTP/VLANinconfigmode.
4506 vlan) # novlan2
Delete vlan2In this command format, delete all VLANs to be deleted. Use the apply command to make all settings take effect.
4506 vlan) # apply
APPLYcompleted.
Exit
4506 vlan) # exit
APPLYcompleted.
Exiting.
4506 #
Go to the configuration status and delete all ip addresses configured for the vlan.
4506 # conft.com
4506 # conft.com
Enterconfigurationcommands, oneperline. EndwithCNTL/Z.
4506 config) # intvlan2
Ipv6config-if) # noipaddress10.XX. XX. xx1_255.255.0
Ipv6config-if) # exit
4506 config) # intvlan3
Delete all IP addresses in turn
Last use
4506 # shrun
To view the configuration
Use shvlan to view Vlan settings
4506 # shvlan
The last step is to save cisco settings.
4506 # copyrunstart
Destinationfilename [startup-config]?
Buildingconfiguration.
Compressedconfigurationfrom5469bytesto2088bytes [OK]
4506 #
Q: How can I delete a VLAN with a novlan that cannot be deleted?
A: Of course, the interface cannot be deleted because it has been configured during VLAN configuration.
Delete interface first
Switchconfig) # intraf0/1-5
Switchconfig-if) # noswitchportaccessvlan20
Switchconfig-if) # exit
Delete the configuration interface
Switchconfig) # nointvlan20
Delete a VLAN
Switchconfig) # NOvlan20
Edit recommendations]