Lab 11 1: VLANs in Packet Tracer Part 1 - Shadowsarespooky/TechJournal GitHub Wiki

Lab 11 1: VLANs in Packet Tracer Part 1 & 2

Objective

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

Goals

  • Demonstrate need and impact of VLANs on networks
  • Recognize the distinction between logical and physical switching
  • Determine the difference between Trunk and Access ports
  • Configure a switch to support multiple VLANs
  • Configure switch access ports
  • Configure switch trunk ports
  • 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

Summary

In this lab, I made three VLANs across three switches with devices connected to them, then configured a router on a stick to allow those VLANs to communicate with each other. Some instructions I found useful was configuring the VLANs on the switches, which I will details below, along with configuring a router on a stick. A few problems I encountered was when I was configuring the router on the stick, I misunderstood how to save the sub interfaces and how to make it so that the interface wouldn't auto shutdown. I had to configure each sub interface a few times a save it to memory in order for the VLANs to work and have no shutdown so that it would stay on.

Things to Consider:

  • Entry for creating VLANs on a switch

To create a VLAN on a switch, go to the VLAN database and enter a number and name for the VLAN. In this lab it was three different VLANS: ENG 10, MKT 20, ACT 30. Once these are in the database, you can configure an interface to contain all the VLANs or only specific VLANs.

  • Entry for configuring an interface as an Access port

After adding your VLANs, you can configure an interface to be an Access port for that interface. This is done by configuring an interface say FastEthernet0/0 and making sure it has Access selected, and then select only VLAN 10 (ENG) for the end device to be on this VLAN. Do the same for other interfaces like FastEthernet0/1 can be only VLAN 20 (MKT), and interface FastEthernet0/2 is VLAN 30 (ACT).

  • Entry for configuring an interface as a Trunk port

On a switch to make an interface a Trunk port, make sure in it's configuration is set to Trunk, and select what specific VLANs are on the this interface. In this case, it would be VLANs 10, 20, and 30.

  • Entry for configuring a router on a stick

To configure a router on a stick, you'll have a router and a switch that will be connected. The interface on the switch needs to be a trunk port, and this interface can be a Giga Ethernet or a Fast Ethernet. This will connect to the router. Then on the router, go to the VLAN database and add the VLANs that you have on the switches. Using the commands in the following order:

  • enable
  • config t
  • interface FastEthernet0/0.10
  • no encapsulation dot1Q 10 native (only for this VLAN, you can skip this step for the following VLANs)
  • encapsulation dot1Q 10
  • ip address 192.168.10.1 255.255.255.0
  • exit

Repeat these steps for the other VLANs

  • interface FastEthernet0/0.XX
  • encapsulation dot1Q XX
  • ip address 192.168.XX.XX 255.255.255.0
  • exit

To make sure that the router interface stays open:

  • interface FastEthernet0/0
  • no shutdown
  • exit

Once you are done, you'll want to

  • end
  • write to memory

This will save the configuration you made on the router.