Shiva's Blog

Virtual LANs

Virtual LANs and Subnets

Virtual LAN IDs and Membership

Types of VLAN tags or ports:

Access port:

Trunk port:

In a large network or a network with multiple VLANs, where the communication between the VLANs are needed. The trunk port allows the communication between the access VLANS, as the access VLANS are isolated and are unable to communicate with other VLANs.

Types of VLAN:

Default VLAN:

VLAN ID 1 is used as a default VLAN. This cannot be changed. Default VLAN must not be used for the data communications, but can be used only for inter-switch protocol traffic, where necessary. For example, spanning tree traffice would be permitted to run over the default VLAN.

Native VLAN:

A native VLAN is a vlan which is used for any traffic that doesn’t have the VLAN tags. When a switch receives an untagged frame over a trunk, it assigns the frame to the native VLAN.

Voice VLAN:

creating and assigning voice VLAN to interface gigabitEthernet 0/0:

#vlan 101 — create a vlan 101 for voice
#name voice — name vlan 101 as voice vlan
#interface gigabitEthernet 0/0
#switchport mode access — switchport mode access
#switchport access vlan 100 — access vlan for data
#switchport voice vlan 101 — access vlan for voice
note: The above command demonstrates both data and voice configured in the same interface.

VLAN encapsulation:

note: To view the VLANs data base #show vlan

VLAN is created from the global configuration mode by using the following command:

#vlan 12
#name VLAN 2

To assign the interface to the vlan:

Assign access mode VLAN 12 to interface range fastethernet 0/1 to fastethernet 0/13, the command below are entered in the global configuration mode, and VLAN 12 is already created:

#interface range fastethernet 0/1-13
#switchport mode access
#swtichport access VLAN 12

Assign gigabitEthernet 0/1 trunk mode and allow VLAN 12(commands entered in global configuration mode):

#interface gigabitEthernet 0/1
#swithport mode trunk
#switchport trunk allowed vlan 12

Assign IP address of 192.168.0.1/24 to VLAN 12 interface (commands entered in global configuration mode):

#interface VLAN 12
#IP address 192.168.0.1 255.255.255.0



ref: certMaster Network plus