241 - Lab4 - Vlan and Trunks
241 - Lab4 - Vlan and Trunks
Overview
VLANs are an integral part of most networks, used for both wired and wireless topologies and
to address server or application security as well as provide logical flexibility in creating routed
network topologies. This lab explores two different VLAN topologies and the network traffic
flows between and within VLANS.
Activity 0 – Setup
Start a Lab report and make sure to take a screenshot of ALL steps and answer ALL
questions.
Activity 1 – Basic VLAN Topology Configuration and Experiments
Using Packet Tracer, setup the topology below. We will configure two VLANs using a single
switch and a single router. VLAN 101 will run on switch ports 1-6 and VLAN 102 will run on
switch ports 7-12.
2238 Page 1
NSSA 241- Lab 4 VLANs and Trunks – Summer 2024
Configure ports 1-6 on VLAN 101 and ports 7-12 on VLAN 102.
5. Run the <show vlan> command and analyze the output to confirm your vlan settings.
6. Run the <show run> command and analyze the output to confirm your vlan settings.
7. Run the <show mac address-table> command and analyze the output.
8. Test your network by pinging from PC 1 on the 101 VLAN to 192.168.2.1 on VLAN 102.
!!!!!!!!
NOTE: For the rest of this activity, you will design and conduct additional experiments to
answer the questions for the report. This is a new experience for you in lab, and the goal is for
you to think through how to prove or disprove network activity in a topology and how to test
your experiments. In designing your experiments, (1) think about what you expect the results
to be before conducting the experiment and then (2) compare to your actual results. In
particular consider traffic flows, arp tables, routing tables and SATs.
You will need to carefully consider your experiments in order to demonstrate the concepts.
Be sure to:
** Draw topologies
2238 Page 2
NSSA 241- Lab 4 VLANs and Trunks – Summer 2024
In explaining your experiments, you must include a diagram if you made topology changes.
Read the following questions for the lab to consider how both broadcast and unicast traffic
flows across VLANs.
As an alternative to the table, insert the network topology diagram and clearly label the
order of decisions and network traffic flow.
b. (5 pts)Explain the experiment you conducted to answer this question. (What traffic
did you send, where did you send it from what did you look for, etc. ???)
2238 Page 3
NSSA 241- Lab 4 VLANs and Trunks – Summer 2024
7. (3 pts)In the topology for Activity 1, does the router know about the VLANs? Explain why
or why not.
8. (5 pts)Draw a network diagram of what the Activity 1 topology would look like without
using VLANs (ie the logical topology per the videos). In other words, if VLANs were not
available and you could not logically configure different IP networks on the switch, what
would the topology look like? Think about this in terms of how we have configured our
topologies in previous weeks, using separate switches and routers for each network.
2238 Page 4
NSSA 241- Lab 4 VLANs and Trunks – Summer 2024
1. In the next VLAN topology, you will configure trunking across two switches. This enables
hosts on differing IP networks to communicate seamlessly across a single switch-to-
switch connection. Work with the other bench in your pod to implement the trunked
connected switches. Consider the topology diagram below before you begin this
configuration.
2. Connect the switch on one bench in the pod to the switch on the other bench. Use port
fastethernet 0/24 on both switches. This means both switches will have identical
VLANs defined.
As you see in the topology diagram, again only one router is needed as with the first
activity.
3. When the two topologies are connected there will be duplicate IP addresses. Change
only the IP addresses needed to eliminate any conflicts and check your default
gateways.
2238 Page 5
NSSA 241- Lab 4 VLANs and Trunks – Summer 2024
f. Confirm that all hosts can ping all other hosts both within their VLAN and across
VLANs. All pings should succeed.
As an alternative to the table, insert the network topology diagram and clearly label the
order of decisions and network traffic flow.
5. a. (5 pts)Identify the steps to trace the flow of a ping (full echo request and echo reply
exchange) from PC 1.1 to PC 2.X (across the trunk link on different vlans (routed)) when
2238 Page 6
NSSA 241- Lab 4 VLANs and Trunks – Summer 2024
all arp and switch tables are empty. Consider what you expect the traffic flow to be
before you run your experiment. Use the same table or topology diagram format as in
the previous question.
6. a. (5 pts)Identify the steps to trace the flow of a ping (full echo request and echo reply
exchange) from PC 1.1 to PC 2.1 (routed, but no trunking) when all arp and switch tables
are empty. Consider what you expect the traffic flow to be before you run your
experiment. Use the same table or topology diagram format as in the previous question.
7. (5 pts)Draw a network diagram of what the topology would look like for this experiment
without using VLANs and trunks? In other words, if VLANs and trunks were not available,
what would the topology look like? Think about this in terms of how we have configured
our topologies in previous weeks, using separate switches and routers for each network.
2238 Page 7
NSSA 241- Lab 4 VLANs and Trunks – Summer 2024
2621/2651
enable
configure terminal
shutdown / no shutdown
bridge 1 protocol ieee
bridge-group 1
no ip routing
show interface
ip route
spanning-tree
bridge
run
ctrl z
ctrl c
exit
?
tab
interface f0/0 / f0/1
ip route 0.0.0.0 0.0.0.0 <interface of default route >
ip address <ip address> <subnet mask>
3550
enable
configure terminal
shutdown / no shutdown
show interfaces f 0/2
spanning-tree
mac address-table or mac-address-table
run
switchport access
ctrl z
ctrl c
exit
?
tab
interface f 0/1
2238 Page 8
NSSA 241- Lab 4 VLANs and Trunks – Summer 2024
At this point the router or switch should be set to its default configuration settings and will be
returned to user EXEC mode indicated by the switch> or router> prompt.
2238 Page 9