Search

How to create and name static VLAN and IOS commands to create VLAN

It is very easy to create and name a static VLAN. Refer our lab setup below, where two switches are connected using a trunk link.

create and name VLAN

To create and name a static VLAN, open console connection to Switch 1, and move to global configuration mode. Enter the following IOS commands to create VLAN 10 and name VLAN 10 as 'engineering'.

omnisecu.com.SW1>enable
omnisecu.com.SW1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
omnisecu.com.SW1(config)#vlan 10
omnisecu.com.SW1(config-vlan)#name engineering
omnisecu.com.SW1(config-vlan)#exit
omnisecu.com.SW1(config)#exit
omnisecu.com.SW1#

Enter the following IOS commands to create another VLAN, VLAN 20 and name VLAN 20 as 'planning'.

omnisecu.com.SW1>enable
omnisecu.com.SW1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
omnisecu.com.SW1(config)#vlan 20
omnisecu.com.SW1(config-vlan)#name planning
omnisecu.com.SW1(config-vlan)#exit
omnisecu.com.SW1(config)#exit
omnisecu.com.SW1#

To delete the VLAN, just use the no form of the above command.

omnisecu.com.SW1(config)#no vlan 10
Related Tutorials
• What is Virtual Local Area Network (VLAN)
• Advantages of VLAN
• VLAN Membership Types
• How to view VLAN information using "show vlan" command
• Types of VLAN connection links - Trunk Links and Access Links
• VLAN Frame Tagging
• Inter-Switch Link (ISL) VLAN Tagging
• IEEE 802.1Q VLAN Tagging
• What is Native VLAN
• How to configure VLAN trunk link and native VLAN
• How to configure and assign a switch access port to a VLAN
• What is VLAN Trunking Protocol (VTP)
• What is VLAN Trunking Protocol (VTP) Domain
• VLAN Trunking Protocol (VTP) Modes
• VLAN Trunking Protocol (VTP) Advertisement Messages
• How to configure VLAN Trunking Protocol (VTP)
• How to view VLAN Trunking Protocol (VTP) information
• What is VLAN Trunking Protocol (VTP) Pruning