20Cs2008L - Computer Networks: Intra and Inter Vlan
20Cs2008L - Computer Networks: Intra and Inter Vlan
Ex No: 8
INTRA AND INTER VLAN
Date: 27/02/2022
AIM: To design a network topology and configure Intra and Inter VLAN using packet tracer and
test the connectivity between all the hosts in every VLANs.
DESCRIPTION:
VLAN: VLAN short form for Virtual LAN. A VLAN is a group of devices on one or more LANs
that are configured to communicate as if they were attached to the same wire, when in fact they
are located on a number of different LAN segments. Because VLANs are based on logical instead
of physical connections, they are extremely flexible.
There are two types of VLAN:-
1) Intra VLAN: When traffic is routed within the same VLAN then it is called as Intra VLAN.
2) Inter VLAN: When traffic is routed across the different VLANs then it is called as Inter VLAN.
CONFIGURATION COMMANDS:
To configure VLAN on Switch
Switch# config t
Switch(config)# vlan 10
Switch(config-vlan)# name Faculty
Switch(config)# vlan 20
Switch(config-vlan)# name Student
Switch(config)# vlan 30
Switch(config-vlan)# name Guest
To see VLAN information:
Switch#sh vlan
Switch#sh vlan brief
To assign interfaces with corresponding VLAN:
45
20CS2008L – COMPUTER NETWORKS URK20CS2065
Switch#config t
Switch(config)# int fa0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
For trunk mode:
Switch(config-if)#switchport mode trunk
PROCEDUE:
1. Configure IP Addressing on the Host PCs.
2. Configure Routers Interfaces.
3. Configure the routers to install the VLAN configuration in the switch and router.
4. Test and Verify the Configurations.
46
20CS2008L – COMPUTER NETWORKS URK20CS2065
TOPOPLOGY DIAGRAM:
INTRA VLAN
INTER VLAN
47
20CS2008L – COMPUTER NETWORKS URK20CS2065
ADDRESSING TABLE:
INTRA VLAN
DEFAULT
DEVICES INTERFACE IP ADDRESS SUBNET MASK
GATEWAY
48
20CS2008L – COMPUTER NETWORKS URK20CS2065
INTER VLAN
DEFAULT
DEVICES INTERFACE IP ADDRESS SUBNET MASK
GATEWAY
DEFAULT
DEVICES INTERFACE IP ADDRESS SUBNET MASK
GATEWAY
49
20CS2008L – COMPUTER NETWORKS URK20CS2065
OUTPUT:
INTRA VLAN
INTER VLAN
50
20CS2008L – COMPUTER NETWORKS URK20CS2065
51
20CS2008L – COMPUTER NETWORKS URK20CS2065
VIDEO: https://youtu.be/UdOdsrWc-sY
RESULT: Network topology to configure Intra and Inter VLAN was designed and using the
packet tracer, connectivity between all the hosts in every VLANs is tested and intended output is
obtained.
52