You are on page 1of 9

Name & ID: Anas, Daniyal, Sumaira, Owais, Ahmed Ali Date: 3rd October 2023

EE-424L Data Communication & Networking


Fall 2022

Habib University

Dhanani School of Science & Engineering

LAB 7: Inter-VLAN Routing on Cisco Layer 3 Switch & Router

Lab #7 Marks distribution:

LR1=10 LR5=15 LR8=05 AR4=20


In-Lab 10 15 05 20
Task 1
Tasks
Total 50
Marks

Lab #7 Marks Obtained:

LR1=10 LR5=15 LR8=05 AR4=20


In-Lab
Task 1
Tasks
Total
Marks

The objective of this lab is to configure inter-VLAN routing on Layer 3 Switch & Cisco
objectives
Router

In-Lab Tasks:

1
Task 1: Configure Inter-VLAN Routing using Router on a Stick

Steps:
Note: All commands, configuration steps and testing screenshots should be reported in Lab Report
with Network Topology diagram.
1. You have to build and configure below network topology in Lab using Cisco Router, Switch and
your laptops.

2. Create 2 VLANs on the switch: VLAN 10 and VLAN 20. You can give them custom names.
3. Assign switch ports to the VLANs. Remember each VLAN is viewed as separate broadcast domain and
just before you configure, have in mind that switch ports could be either access or trunk.

 An access port is assigned to a single VLAN. These ports are configured for switch ports that
connect to devices with a normal network card, for example a PC in a network.
 A trunk port on the other hand is a port that can be connected to another switch or router. This
port can carry traffic of multiple VLANs.Switch Interface fa0/5 will be configured as trunk port, as it will
be used to carry traffic between the two VLANs via the router. Interface fa0/5 is configured as trunk and
will be used to for inter-VLAN communication.

Switch(config)#int fa 0/5

Switch(config-if)#switchport mode trunk

4. Unplug the ethernet cable of your workstation from the D-Line in the Floor-Box and connect the cable

2
to the Virtual line to the socket in your laptop.

Connect the patch cord cable from the respective virtual line (to which your laptop is connected)
available in patch panel to your assigned switch. You can use any available port of Switch.

5. Disable your Laptop Wifi. Open Windows control panel and go to Network Connections.

Open ethernet properties and select IPv4 settings. Manually assign static IP address to your PC in a
common IP class as per your group and mentioned in Table below.

6. Assign static IP addresses to your Laptops which are located in the separate VLANs and highlighted by
pink and green colors in topology. Laptop 0, 2 and 5 fall in VLAN 10 while Laptop 1,3 & 4 fall in VLAN 20.
Remember to assign below gateways for respective laptops in both VLANs.

VLAN 10: default gateway IP (192.168.10.1)

VLAN 20: default gateway IP (192.168.20.1)

3
Note: Switch-off all the Firewall on laptop before Ping.
Ping here in different VLAN will definitely fail. Why? Because inter-VLAN routing is not yet enabled.
Now, in order to allow the hosts in the two VLANs to communicate. We’ll configure the router to
permit inter-VLAN communication.

Note: Remember to use two different networks for assigning of IPs in the group so that we can do
inter-VLAN routing.

Laptop 1 to Laptop2 – the ping was succesful since they’re


both in the same VLAN

4
Laptop 1 to PC2 – the host was unreachable since they are both in
different VLANs

Our code switch


configuration.

Device Student Name IP Address Switch Interface V-Line

5
Laptop1 Anas 192.168.10.3 VLAN 10 V13
Laptop2 Daniyal 192.168.10.2 VLAN 10 V14
PC1 Owais 169.254.149.172 VLAN 20 V15
PC2 Sumaira 169.254.7.17 VLAN 20 V16
Switch/Router Ahmed Ali - - -

7. Configure inter-VLAN routing on the router

We’ll divide the single physical interface on the router into logical interfaces (sub interfaces). Each sub-
interface will then serve as a default gateway for each of the VLANs. This scenario is called router on a
stick (R.O.A.S) and will allow the VLANs to communicate through the single physical interface.

Note: Remember to plug a network cable from router interface to switch port. We can’t assign an IP
address to the router’s physical interface that we have subdivided into logical sub-interfaces. We’ll
instead assign IP addresses to the sub interfaces.

Router(config)#int Gi 0/0/0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#int Gi 0/0/0.10
Router(config-if)#encapsulation dot1q 10
Router(config-if)#ip add 192.168.10.1 255.255.255.0
Router(config)#int Gi 0/0/0.20
Router(config-if)#encapsulation dot1q 20
Router(config-if)#ip add 192.168.20.1 255.255.255.0

As you can notice from above, the routers physical interface Gi 0/0 is subdivided into two sub-interfaces
(Gi 0/0/0.10 and Gi0/0/0.20), which are then configured as trunk interfaces and given IP addresses.

Finally, Test inter-VLAN connectivity.

Pinging Laptop 2 in VLAN 10 from PC in VLAN 20


Snippet of our router configuration.

6
Ping the laptop of the peer in your VLAN and then of the peer in the other VLAN. Check this to RA

Discuss and show results (attach screenshots):

Pinging LAPTOP 1 (VLAN10) from a PC (VLAN20), we can see that our switch, router and
configuration is correct since now inter – VLAN communication is possible

8. Draw and attach the final network topology for your associated group:.

7
This is what our network looks like on cisco (note: the ips on the laptop 1 and
laptop two were actually 192.168.10.3 and 192.168.10.2 respectfully)

9. Remove the patch cord cable from the switch and insert Ethernet cable back to Lab PC.

Make sure to check on “obtain an IP address automatically” in LAN Ethernet connection settings.

8
Lab Evaluation Assessment Rubric

EE-424 Lab 7
# Assessment Elements Level 1: Level 2: Developing Level 3: Good Level 4: Exemplary
Unsatisfactory Points 2 Points 3 Points 4
Points 0-1

LR1 Circuit Layout Connections between Few of the Circuit layout and Neat, clean and
circuit components connections made connections are correct connections
are mostly wrong. between circuit correct but not all of all the circuit
Circuit layout is components are connections are neat components/
cluttered. Needs wrong. Circuit layout and clean as per equipment are made
guidance to make is not neat and clean standards. as per standard
correct equipment/ as per standards. circuit diagram
component
connections.

LR5 Results & Plots Figures/ graphs / Figures, graphs and All figures, graphs, Figures / graphs /
tables are not tables are drawn but tables are correctly tables are correctly
developed or are contain errors. Titles, drawn but contain drawn and
poorly constructed captions, units are minor errors or some appropriate
with erroneous not accurate. Data of the details are titles/captions and
results. Titles, presentation is not missing. proper units are
captions, units are too clear. mentioned. Data
not mentioned. Data presentation is
is presented in an systematic.
obscure manner.

LR8 Equipment Inappropriate Appropriate Appropriate Appropriate


Handling handling of the handling of some of handling of most of handling of all the
tools and the tools and the tools and tools and
equipment with equipment equipment. equipment.
minimal accuracy.

Late submission after Late submission after Late submission after Timely submission of
1 week and in 2 days and within a the lab timing and the report and in the
AR4 *Report Submission
between 2 weeks. week. within 2 days of the lab time.
due date.

*Report: Report will not be accepted after 1 week of due date

You might also like