Create A VLAN in Cisco Packet Tracer

Create A VLAN in Cisco Packet Tracer

INTRODUCTION

VLAN stands for Virtual LAN or Virtual Local Area Network. In a Network you can create two or more virtual network. VLAN will offer you to communicate between all devices in same network. You can also create a VLAN in different network. That is called Inter VLAN Routing. VLAN is for dividing a network in some parts that will work on same purpose.

CREATING VLAN

To create a VLAN in a network follow the instructions below.

  1. Build a network using Switch and PC only. Take at least 3 PC and at least 1 Switch (i.e. 2 Switches, 4 PC).
  1. Set IP Addresses to all PC. IP addresses must be of same network.
  2. Set up both switch as the instructions below.

Setting Up a Switch For VLAN

  1. Click on the Switch. A popup window will be opened.
  2. Go to CLI tab in the popup window.
  3. Click in command box.
  4. Press “Enter”.
  5. To enable the switch give give following command:
enable
  1. To enable configuration mode give following command:
configure terminal
  1. To access a specific port give following command:
interface fastethernet <PORT NUMBER>

For example for first port:

interface fastethernet 0/1
  1. Convert the port mode to trunk (Consider it is connected to another switch):
switchport mode trunk
  1. To exit the port give the following command:
exit
  1. To access second port give following command:
interface fastethernet 0/2
  1. To configuration it to VLAN-101 give following command (Consider it is connected to a PC):
switchport access vlan 101
  1. To exit the port give the following command:
exit
  1. To access third port give following command:
interface fastethernet 0/3
  1. To configuration it to VLAN-102 give following command (Consider it is connected to a PC):
switchport access vlan 102
  1. To exit the port give the following command:
exit
  1. To exit configuration mode give following command:
exit
  1. To exit enable mode give following command:
exit

Do the same actions for both switches.

Congratulations! You have created a VLAN like the photo.

Leave a Reply

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