ACN Microproject

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

INDEX

Sr.No Contents Pages

1 Rational 1

2 Aims/benefits of Micro-project 1

3 Literature Review 1

4 Actual Methodology Followed 1

5 Actual Resource used 2-3

6 Output of the micro-project 3-7

7 Application of the micro0-project 8


1.0 Rational :
One of the benefits of legacy inter-VLAN routing is ease of configuration. In this lab,
you will set up one router with two switches attached via the router Gigabit Ethernet
interfaces. Two separate VLANs will be configured on the switches, and you will set up
routing between the VLANs.

2.0 Aims :
“configure VLAN and interVLAN Routing using Cisco Packet Tracer”

Benefits:

a) VLANs enable logical grouping of end-stations that are physically dispersed on a


network.
b) VLANs reduce the need to have routers deployed on a network to contain broadcast
traffic
c) Confinement of broadcast domains on a network significantly reduces traffic.

2.0 Course outcomes addressed :

i)Choose relevant routing protocol for the given network situation.

ii) We can logically group hosts even if they are physically located on

separate LAN segments.

4.0 Literature Search :

Sr. No Name of website and book Author

https://www.geeksforgeeks.org _
1.

2. Advance computer network J.S.Katre


book Vaishali S.Joshi
5.0 Actual Methodology followed :

2.0 Resource Gathering:

1. Gather information from various websites, such as https://www.geeksforgeeks.org


2. We gather various type of videos and websites also reference books.

6.0 Actual Resource used :

Name of resource and material Specification


Sr.No
1. Computer system Any system with :
1. Minimum storage is 500MB
2. RAM minimum 2GB
2. Websites : https://myeducomm.com -
https://educationaltribe.in

7.0 Output of the Micro-project :


What is Inter-VLAN routing?
Virtual LANs (VLANS) are networks segments on a switched LAN.
Inter-VLAN routing refers to the movement of packets across the network
between hosts in different network segments.
VLANs make it easier for one to segment a network,
which in turn improves the performance of the network and makes it more flexible,
since they are logical connections.
VLANs act as separate subnet on the network.
To move packets from one VLAN to another and enable communications
among hosts, we have to configure the VLAN network.

Layer 3 switch using Switched Virtual Interface (SVI)

Currently, this method of inter-VLAN routing that uses layer 3/multilayer switch and
Switched Virtual Interfaces (SVI) is the most preferred.
SVIs are created for VLANs exists on the switch which performs the same function for the
VLANs as that of a router.
Layer 3 switches are expensive, which are primarily suitable for large organization networks.
Network configurations for Inter-VLAN communication using
Cisco Packet Tracer
In this article, we will learn how to configure inter-VLAN routing using the router-on-a-stick
method.

Consider a LAN with 4 PCs, 1 switch, and a router connected as shown in the image:

Now, we have to configure two VLANs 10 and 20, with PC0 and PC1 on VLAN10, and PC2
and PC3 are on VLAN20.

 IP Address of PC0 - 192.168.1.10


 IP Address of PC1 - 192.168.1.20
 IP Address of PC2 - 192.168.2.10
 IP Address of PC3 - 192.168.2.20
 The default gateway for VLAN10 - 192.168.1.1
 The default gateway for VLAN20 - 192.168.2.1
Step 1
For us to subdivide the network into two subnets, we have to create two VLANS on the
switch, VLAN10 and VLAN20. Give them custom names like VLAN 10 - student and VLAN 20 -
staff.
To create two VLANs, we enter the configuration mode using the config terminal command, and then
we enter the VLAN number like vlan 10 along with the name.

Switch>enable !moving from user exec mode to priviledge mode


Switch#config terminal !moving from priviledge mode to global configuration mode
Switch(config)#vlan 10 !assigning vlan number
Switch(config-vlan)#name student !assigns the vlan 10 the name student
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name staff !assigns vlan 20 the name staff
Switch(config-vlan)#exit

Step 2
Assign switch ports to the VLANS. Ports fa0/1 and fa0/2 acting as access ports for VLAN10, while
ports fa0/3 andfa0/4 for VLAN20.
We shall use fa0/5 port for the trunk port for carrying the traffic between the two VLANS via the
router.
NOTE: fa refers to fast ethernet ports used for connecting the network hosts to the switch or router.
Configurations for access ports fa0/1 and fa0/2

Switch>enable !moving from user exec mode to the priviledge mode


Switch#config terminal !moving from priviledge mode to the global configuration mode
Switch(config)#int fa 0/1 !entering the interface port
Switch(config-if)#switchport mode access !making the interface fa0/1 an access port
Switch(config-if)#switchport access vlan 10 !making interface access port for vlan 10
Switch(config-if)#exit !exiting from the interface

Switch(config)#int fa 0/2 !entering the interface port


Switch(config-if)#switchport mode access !making the interface fa0/2 an access port
Switch(config-if)#switchport access vlan 10 !making interface access port for vlan 10
Switch(config-if)#exit !exiting from the interface

In the configuration above, fa0/1 and fa0/2 are configured as access ports using the
command switchport mode access.
Since they belong to vlan10, the switchport access vlan 10 command is used to configure them as
access ports within vlan10.
Configurations for access ports fa0/3 and fa0/4

Switch(config)#int fa 0/3 !entering the interface port


Switch(config-if)#switchport mode access !making the interface fa0/3 an access port
Switch(config-if)#switchport access vlan 20 !making interface access port for vlan 10
Switch(config-if)#exit !exiting from the interface

Switch(config)#int fa 0/4 !entering the interface port


Switch(config-if)#switchport mode access !making the interface fa0/4 an access port
Switch(config-if)#switchport access vlan 20 !making interface access port for vlan 10
Switch(config-if)#exit

In the configuration above, fa0/3 and fa0/4 are configured as access ports using the
commnd switchport mode access.

Since they belong to vlan20, the switchport access vlan 20 command is used to configure them as
access ports within vlan20.

Configurations for trunk port fa0/5


Switch(config)#int fa 0/5 !entering the interface port
Switch(config-if)#switchport mode trunk !making interface a trunk port.
Switch(config-if)#do write !saving the running configurations to start-up file

From the above code interface, fa0/5 is serving as our trunk port. To configure it to serve as a trunk
port and not an access port, we use the command switchport mode trunk in the global interface mode.

Step 3

Using static IP addressing, set the IP addresses to static on each PC on the network.

Step 4
Configure the router to enable the traffic to move from VLAN10 to VLAN20. For the PCs to
communicate, we subdivide the single interface into many sub-interfaces, where each sub-interface
will act as the default gateways for each of the VLANs. This will allow two sub networks to
communicate using the single interface.
Router>enable !moving from user exec mode to the priviledge exec mode
Router#config terminal !moving from priviledge exec mode to the global configuration mode
Router(config)#int g0/0 !entering on our physical router interface gigabitEthernet 0/0
Router(config-if)#no shutdown !activating the interface
Router(config-if)#int g0/0.10 !first sub interface for vlan 10 on g0/0
Router(config-subif)#encapsulation dot1q 10 !configuring the sub interface to respond to traffic from vlan
10
Router(config-subif)#ip add 192.168.1.1 255.255.255.0 !configuring the IP address of the sub interface g0/0.10
Router(config-subif)#exit !exiting from the sub interface

Router(config)#int g0/0 !entering our physical router interface


Router(config-if)#no shutdown !activating our physical interface
Router(config-if)#int g0/0.20 !second sub interface for vlan 20 on g0/0
Router(config-subif)#encapsulation dot1q 20 !configuring the sub interface to respond to traffic from vlan
20
Router(config-subif)#ip add 192.168.2.1 255.255.255.0 !configuring the IP address of the sub interface g0/0.20
Router(config-subif)#exit
Router(config)#do write !saving our running configurations into the start-up configuration file
Router(config)#exit

From the configurations above, the interface g0/0 is subdivided into two sub
interfaces: g0/0.10 for VLAN10 and g0/0.20 for VLAN20.
Then, the two sub-interfaces are assigned IP addresses and serve as the trunk ports for carrying the
traffic.
Step 5
Test the inter-VLAN connectivity by trying to ping the different PCs.
For instance, if we ping PC2 in VLAN20 from PC0 in VLAN10, it should be successful as shown
below:
7.0 Output of the Micro-project :

This type of router configuration in which you are able to use a single physical
interface to route traffic between multiple VLANs.
The router interface is configured as a trunk link and is connected to a trunk
switch port.

8.0 Application of this Micro-project:

Inter-VLAN routing is the process of forwarding network traffic from one


VLAN to another VLAN

You might also like