Lab 11 2: VLANs in Packet Tracer Part 2 - Hsanokklis/2022-2023-Tech-journal GitHub Wiki

Objective: Demonstrate understanding of VLAN uses and limitations and simple configuration of routing between VLANs

Goals:

  • Configure inter-vlan routing on a multi-layer switch
  • Research what is router on a stick
  • How to implement router on a stick in Packet Tracer

Doc Link

At the end of Lab 11-1, PC's on the same VLAN should be able to ping each other. But, without a router acting as the default gateway for each of the VLANs/subnets - the PC's cannot ping PC's on different VLANs.

To fix that, you will need to configure the router. This concept is router on a stick. You will need to create sub-interfaces on a router for your VLANS. These are virtual interfaces and on each sub-interface you can configure an IP address.


1. On 3rd Floor Switch Only:

  • Go to Config Tab GigabitEthernet0/1 and change to Trunk

image

2. Connect Router interface FastEthernet0/0 to GigabitEthernet0/2 on 3rd Floor Switch using a straight-through cable

image

3. Define the VLANs on the Router as you did on the switches

image

4. configure the sub-interfaces on the router

image

I used the code from this link to configure the router https://www.packettracerlab.com/router-on-a-stick-configuration/

5. There is an error in the router configuration for the vlan 10 sub which is as follows. There should NOT be a native at the end of the encapsulation.

image

Successful pings across VLANs!

image