0% found this document useful (0 votes)
28 views8 pages

20Cs2008L - Computer Networks: Intra and Inter Vlan

The document describes how to configure intra-VLAN and inter-VLAN routing. It defines VLANs as virtual LAN groups that communicate as if on the same wire, even if located on different physical LAN segments. It provides configuration commands to create VLANs 10, 20, and 30 on a switch, assign interfaces, and configure subinterfaces on a router to route between the VLANs. The topology is designed and tested in Packet Tracer to route traffic within and between VLANs and verify connectivity between all hosts.

Uploaded by

Alan Daniels
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views8 pages

20Cs2008L - Computer Networks: Intra and Inter Vlan

The document describes how to configure intra-VLAN and inter-VLAN routing. It defines VLANs as virtual LAN groups that communicate as if on the same wire, even if located on different physical LAN segments. It provides configuration commands to create VLANs 10, 20, and 30 on a switch, assign interfaces, and configure subinterfaces on a router to route between the VLANs. The topology is designed and tested in Packet Tracer to route traffic within and between VLANs and verify connectivity between all hosts.

Uploaded by

Alan Daniels
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

20CS2008L – COMPUTER NETWORKS URK20CS2065

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

Switch(config-if)#switchport trunk allowed vlan 10,20,30


To remove an access:
Switch(config-if)# no switchport access vlan 10
Configurations on Router:
Router1#config t
Router1(config)#int fa0/0
Router1(config-if)# no sh
Router1(config)#int fa0/0.10
Router1(config-subif)# encapsulation dot1Q 10
Router1(config-subif)# ip addr 172.17.10.1 255.255.255.0
Router1(config-subif)# no sh
Similarly for all sub interfaces(i.e., 20 and 30)

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

INTER VLAN USING SUBINTERFACING

ADDRESSING TABLE:

INTRA VLAN

DEFAULT
DEVICES INTERFACE IP ADDRESS SUBNET MASK
GATEWAY

PC7 NIC 10.0.0.1 10.0.0.1 -


PC8 NIC 50.0.0.1 10.0.0.2 -
PC9 NIC 50.0.0.1 10.0.0.3 -

48
20CS2008L – COMPUTER NETWORKS URK20CS2065

INTER VLAN

DEFAULT
DEVICES INTERFACE IP ADDRESS SUBNET MASK
GATEWAY

Fa0/0 10.0.0.1 255.0.0.0 NA


RO
Fa1/0 20.0.0.1 255.0.0.0 NA
PC0 NIC 10.0.0.2 255.0.0.0 10.0.0.1
PC1 NIC 20.0.0.2 255.0.0.0 20.0.0.1

INTER VLAN USING SUBINTERFACE METHOD

DEFAULT
DEVICES INTERFACE IP ADDRESS SUBNET MASK
GATEWAY

Fa0/0.1 10.0.0.1 255.0.0.0 NA


RO
Fa0/0.2 20.0.0.1 255.0.0.0 NA
PC0 NIC 10.0.0.2 255.0.0.0 10.0.0.1
PC1 NIC 20.0.0.2 255.0.0.0 20.0.0.1

49
20CS2008L – COMPUTER NETWORKS URK20CS2065

OUTPUT:

INTRA VLAN

INTER VLAN USING SUBINTERFACES

INTER VLAN

50
20CS2008L – COMPUTER NETWORKS URK20CS2065

sh vlan of Intra VLAN

sh vlan of Inter VLAN

sh vlan of Inter VLAN using subinterfaces

51
20CS2008L – COMPUTER NETWORKS URK20CS2065

sh int trunk of Inter VLAN using subinterfaces

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

You might also like