ACN Microproject
ACN Microproject
ACN Microproject
1 Rational 1
2 Aims/benefits of Micro-project 1
3 Literature Review 1
2.0 Aims :
“configure VLAN and interVLAN Routing using Cisco Packet Tracer”
Benefits:
ii) We can logically group hosts even if they are physically located on
https://www.geeksforgeeks.org _
1.
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.
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
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
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.
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
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.