You are on page 1of 7

Computer Communication & Networks (SWE-306) SSUET/QR/114

Lab # 04
VIRTUAL LAN

OBJECTIVE
Implementation of Virtual LAN (VLAN) Operation.

THEORY
VIRTUAL LAN (VLAN)
A virtual LAN, commonly known as a VLAN, is a group of hosts with a common set of requirements that
communicate as if they were attached to the Broadcast domain, regardless of their physical location. A VLAN has
the same attributes as a physical LAN, but it allows for end stations to be grouped together even if they are not
located on the same network switch. Network reconfiguration can be done through software instead of
physically relocating devices.

NETWORK SETUP:
Create two vlans on same switch0 :

VLAN 2 & VLAN 3.


Computer Communication & Networks (SWE-306) SSUET/QR/114

Switch0 # show vlan

Enable the switch to take commands from User. Show vlan command displays the whole information about vlan
through which user could be able to assign ports to its new LAN.

VLAN Name Status Ports


---- -------------------------------- --------- - ------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ---- ------- ------ ------- ---------- ------------- ----- ------------- ------- --------

1 enet 100001 1500 - - - - - 0 0

1002 enet 101002 1500 - - - - - 0 0

1003 enet 101003 1500 - - - - - 0 0

1004 enet 101004 1500 - - - - - 0 0

1005 enet 101005 1500 - - - - - 0 0

Steps for Creating & Assigning Ports in “VLAN 02”

Switch0 (config) # VLAN 2

Switch0 (config-vlan) # name soft1

Switch0 (config) # interface fastethernet 0/1

Switch0 (config-if) # switchport mode access

Switch0 (config-if) # switchport access VLAN 2

Switch0 (config) # interface fastethernet 0/2

Switch0 (config-if) # switchport mode access

Switch0 (config-if) # switchport access VLAN 2


Computer Communication & Networks (SWE-306) SSUET/QR/114

Switch0 # show vlan

VLAN Name Status Ports


---- -------------------------------- -------- -------------------------------
1 default active Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24

2 soft1 active Fa0/1 , Fa0/2

1002 fddi-default active


1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

Steps for Creating & Assigning Ports in “VLAN 03”

Switch0 (config) # VLAN 3

Switch0 (config-vlan) # name soft2

Switch0 (config) # interface fastethernet 0/3

Switch0 (config-if) # switchport mode access

Switch0 (config-if) # switchport access VLAN 3

Switch0 (config) # interface fastethernet 0/4

Switch0 (config-if) # switchport mode access

Switch0 (config-if) # switchport access VLAN 3

Switch0 # show vlan

VLAN Name Status Ports


---- -------------------------------- --------- - ------------------------------
1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Computer Communication & Networks (SWE-306) SSUET/QR/114

2 soft1 active Fa0/1, Fa0/2,


3 soft2 active Fa0/3, Fa0/4

1002 fddi-default active


1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

VLAN Trunking Protocol (VTP)


Trunk links are required to pass VLAN information between switches. A port on a Cisco switch is either an
access port or a trunk port. Access ports belong to a single VLAN and do not provide any identifying marks on
the frames that are passed between switches. Access ports also carry traffic that comes from only the VLAN
assigned to the port. A trunk port is by default a member of all the VLANs that exist on the switch and carry
traffic for all those VLANs between the switches. To distinguish between the traffic flows, a trunk port must mark
the frames with special tags as they pass between the switches. Trunking is a function that must be enabled on
both sides of a link. If two switches are connected together, for example, both switch ports must be configured for
trunking, and they must both be configured with the same tagging mechanism.

Make a VTP Domain CISCO on Switch0

Switch0 (config) # vtp domain CISCO

Make a VTP Domain CISCO on Switch1

Switch1 (config) # vtp domain CISCO

Make a VTP Server to Switch0

Switch0 (config) # vtp mode server


Computer Communication & Networks (SWE-306) SSUET/QR/114

Make a VTP Client to Switch1

Switch1 (config) # vtp mode client

Enable a Trunking on fastethernet 0/24 of Switch0

Switch0 (config) # int fastethernet 0/24

Switch0 (config-if) # Switchport mode trunk

Enable a Trunking on fastethernet 0/24 of Switch1

Switch1 (config) # int fastethernet 0/24

Switch1 (config-if) # Switchport mode trunk

Verifying the VTP Status ON Switch0

Switch0 # show vtp status

Verifying the VTP Status ON Switch1

Switch1 # show vtp status


Computer Communication & Networks (SWE-306) SSUET/QR/114

HOME ASSIGNMENTS

Q1: What are some primary benefits that an organization can receive through effective use of

VLANs?

Q2: What is Inter-VLAN routing, describe the purpose of Trunk and access port?

Q3: What is 802.1q and Native VLAN modes?

You might also like