You are on page 1of 2

VLAN (Virtual Local Area Network)

==========================

1. Create the VLANs


- vlan VLAN_number (example: vlan 10)
- name VLAN_name (example: name studentIT)
2. Assign ports/interfaces to different VLANs
- switchport mode access/trunk
- switchport access vlan VLAN_number (example: switchport access vlan 10)

3. Connect the switches


- select the interface (example: int fa0/1)
- switchport mode trunk

4. Inter-VLAN communication
(talk to other VLANs)
- connect a router
- set the switch connecting interface to TRUNK (example: int fa0/2)
- switchport mode trunk

- go to the router
- select the interface (example: int fa0/0)
-int fa0/0.1 (subinterface)
- encapsulation dot1q 10

(set the interface to access VLAN-10 using dot1q protocol/rule)


- ip addr 192.68.10.1 255.255.255.0
- set the IP address (default gateway for VLAN-10)

You might also like