VLANs with Packet Tracer (NET 330) - Chromosom3/TechNotes GitHub Wiki

VLANs with Packet Tracer

Lab 2-1

General Network Information

For this lab we used variable length subnetting to create four different subnets, each on its own VLAN. The subnets and VLANs are shown in the table below. Note not all networks were implemented in this specific lab.

VLAN VLAN_NAME Hosts Needed Network Netmask Router Address
1 Management 250 10.16.10.0/24 255.255.255.0 10.16.10.1
100 FacStaff 200 10.16.11.0/24 255.255.255.0 10.16.11.1
110 Student 450 10.16.8.0/23 255.255.254.0 10.16.8.1
130 StuLab1 35 10.16.12.0/26 255.255.255.192 10.16.12.1
140 StuLab2 35 10.16.12.64/26 255.255.255.192 10.16.12.65
200 StuWireless 900 10.16.0.0/22 255.255.252.0 10.16.0.1
210 FSWireless 650 10.16.4.0/22 255.255.252.0 10.16.4.1

The final network in packet tracer is shown below.

Network

Cisco Commands

During this lab I tried to use the command line interface (CLI) as much as possible. I also copied the commands I would need to run on multiple switches to pace them across the different devices. You can copy multiple commands on multiple lines. When you paste the multiple commands it will run them in order.

General CLI Info

The different CLI command modes are shown in the table below.

Prompt Mode
Router> User EXEC Mode
Router# Privileged EXEC Mode
Router(config)# Configuration Mode
Router(config-if)# Interface Config Mode
Router(config-router)# Router Config Mode
Router(config-line)# Line Level Config Mode

VLAN Setup

Below are the commands for setting up the VLANs that are universal across all the switches.

enable
config t
vlan 100 name FacStaff
vlan 110 Student
interface range fa 0/4-12
switchport access vlan 100
interface range fa 0/13-20
switchport access vlan 110
exit
exit
copy running-config startup-config

For the switches that required the lab VLANs the following commands would need to be run on the appropriate switch before the exit commands.

vlan 130 name SuLab1
interface range fa 0/21-24
switchport access vlan 130

or

vlan 140 name SuLab1
interface range fa 0/21-24
switchport access vlan 140

You will also need to run these commands to configure the trunk ports on the switches. Adapt this command as necessary for switches that connect to multiple other switches.

enable
config t
interface fa 0/1
switchport mode trunk
exit
exit
copy
copy running-config startup-config

Routing Setup

In this environment East-Core-Switch-01 was acting as a router. In addition to the VLAN configuration show above the following was run on the machine to setup routing.

interface vlan 100
ip address 10.16.11.1 255.255.255.0
interface vlan 110
ip address 10.16.8.1 255.255.254.0
interface vlan 130
ip address 10.16.12.1 255.255.255.192
interface vlan 140
ip address 10.16.12.65 255.255.255.192

Make sure to save the running config so you don't lose any settings.

Random Packet Tracer Info

  • If you get stuck in a Cisco terminal within packet tracer use Control + Shift + 6 to cancel. This is equivalent to Control + C.
  • You can you the envelope icon on the top bar to ping machines without opening command prompt on the machines
  • You can configure interface ranges by putting the first number dash the last number. Example: fa 0/1-12 will configure Fast Ethernet 1 through 12.