Virtual LAN (VLAN) (original) (raw)

Last Updated : 9 Apr, 2026

A Virtual LAN (VLAN) is a logical grouping of devices within a network that allows them to communicate as if they are on the same local network, even if they are physically connected to different switches.

VLAN ID Ranges (Cisco Standard)

VLAN Configuration Example

router

VLAN Configuration

**Create VLANs
Switch(config) vlan 2

Switch(config-vlan) name Accounts

Switch(config) vlan 3

Switch(config-vlan) name HR

**Assign switch ports to VLANs
Switch(config) interface fa0/0

Switch(config-if) switchport mode access

Switch(config-if) switchport access vlan 2

Switch(config) interface fa0/1

Switch(config-if) switchport mode access

Switch(config-if) switchport access vlan 3

Here, port Fa0/0 is assigned to VLAN 2 and port Fa0/1 is assigned to VLAN 3. Since these VLANs are separate broadcast domains, devices in different VLANs require inter-VLAN routing to communicate with each other.

Features

Real-Time Applications

Advantages

Disadvantages