How to Configure Cisco VLANs


Cisco VLAN Config Commands

In this lesson we will learn How to Configure VLANs on Cisco devices. Here, we will see the necessary commands for Cisco VLAN Configuration. You can also check VLAN Configuration Example on Packet Tracer lesson to learn and practice more on VLAN Configurations.

Cisco VLAN Creation

To Configure Cisco VLAN, firstly create the VLAN with the VLAN ID and then give it a name;
(The standard VLAN number range is 1 to 1005. 1002 to 1005 is reserved for Token Ring and FDDI.And lastly 1006 to 4094 range is used by VTP transparent mode)

Switch A (config)# vlan 2
Switch A (config-vlan)# name SecondDepartment

h3>VLAN Port Assignment

In Cisco VLAN Config, to assign a port to a VLAN firstly make that port access(because it will be an access port) then assign it to the VLAN;

Switch A (config)# interface fa0/0
Switch A (config-if)# switchport mode access
Switch A (config-if)# switchport access vlan 2

VLAN Trunk Configuration

To configure a VLAN Trunk port manually (better than using DTP);

Switch A (config)# interface fa0/1
Switch A (config-if)# switchport mode trunk
Switch(config-if)# switchport nonegotiate

Now let’s check to configure a trunk by using DTP(Dynamic Trunking Protocol) on Cisco VLAN Config;
(to actively form a trunk by desirable and pasively wait the other end to form a trunk by auto)

Switch(config)# interface fa0/1
Switch(config-if)# switchport mode dynamic desirable
Switch(config-if)# switchport mode dynamic auto

To select frame tagging protocol (for VLAN transfer between swicthes):

Switch A (config-if)# switchport trunk encapsulation isl


Switch A (config-if)# switchport trunk encapsulation dot1.q

OR (using DTP)

To learn mode about VLAN(Virtual Local Area Network)s, continue with the following posts ;)

VLAN – Part 1
VLAN – Part 2 (VLAN Assignments and VLAN Port Types)
VLAN – Part 3 (VLAN Frame Tagging Protocols, ISL and Dot1.q)
VLAN – Part 4 (How to Configure Cisco VLANs)
VLAN – Part 5 (Packet Tracer VLAN Configuration Example)
VLAN Configuration on Huawei Switches

Private VLANs
Private VLAN Cisco Configuration

What is Protected Port?

Leave a Reply

Your email address will not be published. Required fields are marked *