How does a CISCO switch delete a Vlan?

Source: Internet
Author: User
Tags cisco switch

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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.