0% found this document useful (0 votes)
19 views6 pages

VLAN Configuration and Routing Lab

The document outlines a lab exercise for configuring VLANs and inter-VLAN routing using Packet Tracer. It includes steps for building a network topology, creating VLANs, assigning switch ports, and testing connectivity between devices within and across VLANs. The final goal is to enable inter-VLAN routing on a router to facilitate communication between different VLANs.

Uploaded by

Sal 's Man
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views6 pages

VLAN Configuration and Routing Lab

The document outlines a lab exercise for configuring VLANs and inter-VLAN routing using Packet Tracer. It includes steps for building a network topology, creating VLANs, assigning switch ports, and testing connectivity between devices within and across VLANs. The final goal is to enable inter-VLAN routing on a router to facilitate communication between different VLANs.

Uploaded by

Sal 's Man
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Week 2 Lab: VLAN Configuration and Inter-VLAN Routing

1. Build the Topology in Your Simulator

 Open Packet Tracer.

 Drag in 2 switches, 1 router, and 4 PCs.

 Connect:

1. PC1 → Switch1 Fa0/1

2. PC2 → Switch1 Fa0/2

3. PC3 → Switch1 Fa0/3

4. PC4 → Switch1 Fa0/4

5. Switch1 Fa0/24 → Switch2 Fa0/24 (trunk link)

6. Switch1 Fa0/23 → Router Gi0/0 (trunk link)


2. On the switch, create the VLANs 10 and [Link] can give them unique 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.

 A single VLAN is assigned an access port. These ports are set up for switch ports that

link to devices, like a PC in a network, that have a standard network card.

 Conversely, a trunk port is one that can be linked to an additional switch or router.

Multiple VLANs' worth of traffic can pass through this port.

So in our case, we’ll configure switch interfaces fa 0/1 through fa 0/4 as access ports to

connect to our PCs. Here, interfaces fa 0/1 and fa 0/2 are assigned to VLAN 10 while

interfaces fa 0/3 and fa 0/4 are assigned to VLAN 20.


As seen below, all of the aforementioned interfaces were set up as access ports using the

interface range command.

In the above commands, we have specified an interface range and then proceeded to

configure all the ports specified as access ports.

Interface fa0/5 is configured as trunk and will be used to for inter-VLAN communication.
To test communication between hosts in the same VLAN:

 Ping PC2 from PC1 both in VLAN 10. Ping test should be successful.

To test connectivity between hosts in different VLANs:

 Ping PC3 in VLAN 20 from PC1 in VLAN 10. Ping here will definitely fail. Why?

Because inter-VLAN routing is not yet enabled. Hope you can see how we’ve used

VLANs to place the hosts into two logical networks which can be viewed as separate

broadcast domains.

5. Configure inter-VLAN routing on the router


6. Test inter-VLAN connectivity.

 we’ll test connectivity between computers in different VLANs . Don’t forget that its the

router that enables inter-VLAN routing.

 Ping PC3 in VLAN 20 from PC1 in VLAN 10. If everything is well configured, then

ping should work perfectly.


Reference:
ITExamAnswers. (2024, March 9). 4.5.2 Lab - Implement Inter-VLAN routing
(Answers). [Link]. [Link]
[Link]

Adhikari, M. (2024, February 13). How to configure VLAN and inter-VLAN


Routing in Packet Tracer. Medium.
[Link]
routing-in-packet-tracer-427e7fdf6bb5

Cisco Networking Academy. (n.d.). Router-on-a-Stick Inter-VLAN Routing (4.2)


> Inter-VLAN Routing | Cisco Press.
[Link]
p=3089357&seqNum=5

Common questions

Powered by AI

To configure inter-VLAN routing, assign a sub-interface on the physical interface of the router for each VLAN and configure IP routing. This allows the router to handle packets between VLANs, making it possible for one VLAN to communicate with another .

A successful ping test verifies that devices within the same VLAN can communicate (indicating proper VLAN configuration) and that inter-VLAN routing is correctly set up to allow communication across different VLANs .

Verify inter-VLAN routing by checking router configuration for correct sub-interface settings, ensuring IP reachability by performing ping tests between devices on different VLANs, and reviewing logs or status messages for indications of connectivity issues .

To build the topology in a simulator: open Packet Tracer, drag in 2 switches, 1 router, and 4 PCs. Connect PC1 to Switch1 Fa0/1, PC2 to Switch1 Fa0/2, PC3 to Switch1 Fa0/3, PC4 to Switch1 Fa0/4, Switch1 Fa0/24 to Switch2 Fa0/24 (trunk link), and Switch1 Fa0/23 to Router Gi0/0 (trunk link).

A trunk link carries traffic for multiple VLANs between switches or from a switch to a router. It allows a single physical connection to serve several VLANs, facilitating efficient communication across the network's logical divisions .

Each VLAN represents a separate broadcast domain that limits broadcast traffic to its members. This segmentation enhances network performance and security by reducing collision domains and isolating groups of devices .

To ensure proper support for multi-VLAN traffic, configure the trunk link on the interfaces connecting Switch1 and Switch2 using the appropriate encapsulation (like dot1q) and ensure the trunk allows all necessary VLAN IDs to pass through .

A ping test fails between devices on different VLANs before configuring inter-VLAN routing because VLANs act as separate broadcast domains. Without routing enabled, traffic cannot cross these domains, preventing communication between VLANs .

VLANs 10 and 20 are configured by assigning interfaces fa 0/1 and fa 0/2 to VLAN 10, and interfaces fa 0/3 and fa 0/4 to VLAN 20. Access ports connect devices to a specific VLAN, while trunk ports can carry traffic from multiple VLANs and are used between switches or to a router .

Misconfiguring an interface range command might lead to incorrect VLAN assignments or switchport modes, potentially isolating devices or disrupting VLAN-specific traffic flow. Such errors effectively break network segmentation, causing wider network inefficiencies or failures .

You might also like