Virtual LANs within a switched local area network provide segmentation and effective network management as well as security. Network Engineers have the flexibility of segmenting their network into separate VLANs according to work groups, department differentiation or even application usage without worrying about the physical location of the hosts. What’s more, due to the fact that each host is applied to a single VLAN on the switch, added security is achieved.
Each VLAN consists of a separated broadcast domain. Which means that only ports belonging to a specific VLAN share broadcasts eliminating unnecessary traffic from flooding the entire network; hence improving the overall performance of the network.
By now, you’re probably thinking that your VLANs can spread through a couple of building infrastructures. Well get this … VLANs can also extend their existence across Wide Area Networks (WANs) using a layer 2 tunnel. This is why VLANs can be designed without regard of the physical location of the hosts. This is also why VLANs are virtually the coolest LANs out there.
In this article, I’ll explain some basic concepts behind VLAN operation on Cisco catalyst switches. I’ll also give you the steps to configuring, verifying and troubleshooting a VLAN.
VLAN Modes and VLAN Trunking
Cisco catalyst switches support Dynamic VLANs by using a VLAN Management Policy Server in order to assign specific VLAN IDs to corresponding MAC addresses. Usually, Static assignment of VLANs to switch ports is configured. To be able to do so, first, all different VLAN subnets need to be defined. Afterwards, VLAN IDs can be assigned to switch ports and a host that attaches on a given port automatically assumes the VLAN membership of that port.
Once a VLAN membership is granted, a host can communicate to other hosts within the same VLAN. If routing between different VLANs is required then a router needs to be incorporated in the network. A host link can have access to only one VLAN. A link that is able to carry more than one VLAN tagged frame is called a trunk and the method of identifying several different VLANS on a trunk is called tagging.
Cisco used to support its own proprietary trunking protocol for VLAN tagging – ISL, or InterSwitch Link Protocol. However, ISL is not supported anymore and Cisco suggests using IEEE 802.1Q protocol instead.
The IEEE 802.1Q header contains a 4-byte tag header containing a 2-byte protocol identifier (TPID) and 2-byte control information (TCI). The TPID has a fixed value of 0×8100 that indicates that the frame carries the 802.1Q/802.1p tag information.
The TCI contains the following elements:
- Three-bit user priority
- One-bit canonical format indicator (CFI)
- Twelve-bit VLAN identifier (VID) which uniquely identifies the VLAN to which the frame belongs
A schematic diagram of the 802.1Q frame is shown below:

Configuring a VLAN
Configuring VLANs is actually very easy. The difficulty is to decide which users should belong to which VLAN. Once you’ve decided this and visualized the VLAN enabled network, then you are ready to create your VLANs on the Cisco catalyst switch. Take a look at this example:

The following commands indicate how you can assign interface fastethernet 2 to vlan2 and fastethernet 3 to vlan 3: To set a Fast Ethernet port or even a Gigabit Ethernet port to trunk mode use the switchport mode interface configuration command: The switchport mode command can be configured using 4 different options: Use the show vlan command to verify your VLAN configuration. This command displays all switchports and their associated VLAN as well as the VLAN status and some extra parameters that relate to Token Ring and FDDI trunks. You can use the show vlan id [vlan#] command to see information about a particular VLAN. Below you can see a sample output of the show vlan command. You can also use the show interface [interface name-number] switchport command to display the VLAN A sample output of this command is presented below: Use the show ip interface vlan [vlan#] command to display ip related information on a particular VLAN as well as status and MAC address. Here is a sample output of this command: Three main steps need to be followed when troubleshooting VLAN problems: These errors are usually the result of physical problems such as bad cable or NIC but can also indicate duplex mismatch with the attached device. If you notice that collisions are increasing continuously, then look for a duplex mismatch problem or even for congestion on the link. It’s always a good habit to differentiate hosts in a network either based on departmental differentiation, expertise classification or anything else you think would work. What you end up with are groups that need isolation for better network performance and stronger security. VLANS are able to accomodate both: better network performace and improved security. VLANs will help you administer your network in a more efficient way, at the same time conserving network resources by preventing flooding of unnecessary traffic within the network.
Configuring 802.1Q Trunking

How to Verify a VLAN Configuration

information on the particular interface as well as the interfaces administrative and operational mode (access or trunk mode).

How to Troubleshoot a VLAN Configuration
Organize and Secure Your Network with a VLAN
More Related Posts







VLANs are the coolest LANs. It should be noted VLANs are not limited to just Cisco equipment, but all major vendors offer this capability. Over the past few years I’ve seen an increase in the utilization of VLANs with the popularity of VMware ESX.
- Koster
Can you tell me the best way to secure VLANs?
What about MPLS? how secure is? how do you compare that with protecting vlans?
Thanks,
VLANs by nature create separate logical networks. They are used to group different types of traffic flows and provide isolation between them (minimize broadcasts). Easier to apply filter and policy rules to them. Also, a firewall is a must when interfacing an untrusted network and not just a simple firewall but a sophisticated one which is able to monitor content traffic and investigate all the way up to the application layer.
MPLS is a different concept… It is a fast switching technology ( for switching IP datagrams without going into the process of routing table lookup) mainly used to forward IP datagrams in large IP networks where real time switching and fast error
recovery is of great importance.
how can I do this with a home network modem/router?