Networking guides, explanations and reader checklists on whilenetworking.com

Packet Tracer Lab: Design a Multi-VLAN Architecture with Inter-VLAN Routing for Segmented Office Traffic

In modern enterprise environments, network segmentation is not just a best practice; it is a security requirement. A flat network where all devices share the…

In modern enterprise environments, network segmentation is not just a best practice; it is a security requirement. A flat network where all devices share the same broadcast domain is a single point of failure and a massive security risk if one device is compromised. This lab guides you through designing a robust multi-VLAN architecture using Cisco Packet Tracer. You will learn to segment office traffic, implement inter-VLAN routing via a Layer 3 switch, configure DHCP services, and verify connectivity using Wireshark principles. By the end of this guide, you will have built a scalable network that isolates departments while allowing controlled communication between them.

Prerequisites and Topology Design

Before launching Packet Tracer, ensure you understand the core concepts: VLANs (Virtual Local Area Networks) logically separate devices at Layer 2, while routing allows traffic to pass between these segments at Layer 3. In this scenario, we will simulate a small office with three distinct departments: Sales, Engineering, and Guest Wi-Fi.

Lab Objectives:
1. Create VLANs for Sales (VLAN 10), Engineering (VLAN 20), and Guests (VLAN 99).
2. Configure a Layer 3 Switch to act as the default gateway for all VLANs.
3. Implement Inter-VLAN routing using SVI (Switch Virtual Interfaces).
4. Set up DHCP to automatically assign IP addresses.
5. Verify connectivity and troubleshoot using simulation mode.

Required Components in Packet Tracer:
* One Catalyst 9300 or 2960-X Layer 3 Switch (configured for routing).
* Three PCs representing end-user workstations.
* One Wireless Router or Access Point for the Guest network (optional, but recommended for realism).
* Console cables for initial configuration.

Step-by-Step Configuration: Creating VLANs and SVIs

The foundation of this architecture is the Layer 3 switch. Unlike a standard Layer 2 switch that only forwards frames based on MAC addresses, a Layer 3 switch can route packets between subnets. We will start by creating the VLANs and assigning interfaces to them.

  1. Connect three PCs to different ports on the Layer 3 switch.
  2. Access the CLI of the switch via the Console cable.
  3. Enter global configuration mode and create the necessary VLANs:
enable
configure terminal
vlan 10
 name SALES
vlan 20
 name ENGINEERING
vlan 99
 name GUESTS
exit
  1. Assign specific switch ports to these VLANs. For example, connect PC-A (Sales) to port Fa0/1 and assign it to VLAN 10:
interface range fa0/1 - 5
 description Department Ports
 no shutdown
switchport mode access
switchport access vlan 10
exit

Note: Repeat this process for Engineering ports (assigning them to VLAN 20) and Guest ports (VLAN 99).

The next critical step is configuring the Switch Virtual Interfaces (SVIs). These act as the default gateway for each VLAN. Without an SVI, devices within a VLAN cannot communicate with the outside world or other VLANs.

interface vlan 10
 ip address 192.168.10.1 255.255.255.0
 no shutdown
description Gateway for Sales Dept
exit
interface vlan 20
 ip address 192.168.20.1 255.255.255.0
 no shutdown
description Gateway for Engineering Dept
exit
interface vlan 99
 ip address 192.168.99.1 255.255.255.0
 no shutdown
description Gateway for Guest Network
exit

Implementing Inter-VLAN Routing and DHCP

With the VLANs created and gateways assigned, the switch is now capable of routing traffic between the Sales, Engineering, and Guest subnets. However, manually configuring IP addresses on every PC is impractical in a real-world scenario. We will enable the DHCP server feature on the Layer 3 switch to automate this process.

  1. Enable the DHCP service globally:
ip dhcp pool SALES-Pool
 network 192.168.10.0 255.255.255.0
 default-router 192.168.10.1
 dns-server 8.8.8.8
 exit
  1. Repeat the pool configuration for Engineering and Guest networks, adjusting the network ranges and default routers accordingly. Ensure that the ip dhcp excluded-address command is used if you have reserved specific IPs (like your gateway) to prevent them from being handed out dynamically.

  2. On each PC, open the terminal and run ipconfig /release followed by ipconfig /renew (Windows) or dhclient -v <interface> (Linux/Mac simulation). You should see the PCs receiving IP addresses in the correct subnets with the switch’s SVI as their default gateway.

Verification and Troubleshooting with Simulation Mode

Once configuration is complete, verification is essential. In Packet Tracer, use the Simulation Mode (not PDU mode) to visualize packet flow. This helps understand how routing decisions are made and where packets might drop.

Testing Connectivity

  • Open the command prompt on PC-A (Sales) and ping PC-B (Engineering): ping 192.168.20.2.
  • Expected Result: You should receive replies. If you get “Request timed out,” check the routing table using show ip route on the switch. Ensure that directly connected networks are listed.

Using Wireshark Principles (Simulation)

While Packet Tracer does not install actual Wireshark, it allows packet analysis in Simulation mode. Click on a PC and select “Wireshark” from the top menu to analyze traffic.
* Look for ICMP Echo Request/Reply packets between subnets.
* Inspect TCP handshake packets if you configure web servers.
* If no traffic appears, enable “Promiscuous Mode” in simulation settings to capture all traffic regardless of VLAN tags.

Common Errors and Fixes

  • Error: “Destination Host Unreachable.”
    • Cause: Often caused by a mismatched subnet mask or an SVI that is administratively down (shutdown).
    • Fix: Verify show ip interface brief to ensure all VLAN interfaces are “up/up”.
  • Error: DHCP fails to assign addresses.
    • Cause: The IP pool might be exhausted, or the excluded range overlaps with the pool network.
    • Fix: Check show ip dhcp binding and show ip dhcp pool.
  • Error: Cannot ping between VLANs despite correct IPs.
    • Cause: Missing routing protocols or ACLs (Access Control Lists) blocking traffic.
    • Fix: Ensure no ACLs are applied to the SVIs unless explicitly designed for security segmentation.

Industry Application: Security and Scalability

This lab scenario mirrors real-world enterprise requirements. In a production environment, you would likely use Access Control Lists (ACLs) to restrict Guest VLAN access to the internet only, while blocking access to internal servers in the Engineering VLAN. This prevents “lateral movement” attacks where an attacker compromises a guest device and tries to pivot into the corporate network.

Furthermore, scalability is inherent in this design. If the company grows, you can simply add new VLANs (e.g., VLAN 30 for HR) and configure the Layer 3 switch without changing the underlying infrastructure’s physical cabling. This modularity reduces downtime during network upgrades.

Student Practice Task

To reinforce these concepts, attempt the following challenge:
1. Set up the topology described above.
2. Configure the switch as a DHCP server for all three VLANs.
3. Apply an extended ACL on the SVI for VLAN 10 (Sales) that denies ICMP traffic to VLAN 20 (Engineering) but allows HTTP (port 80).
4. Document your configuration commands and explain why you chose specific subnet masks (e.g., /24 vs /29) based on host count requirements.

By mastering this architecture, you gain the skills needed to design secure, segmented networks that protect organizational data while maintaining necessary connectivity between departments. Always remember to verify your work with simulation tools before deploying changes to a live production network.

Educational-use notice: This tutorial is for learning and controlled lab use only. Test carefully, use backups, and obtain authorization before making changes. Do not run unfamiliar commands on production systems. We accept no responsibility for misuse, damage, data loss, or production issues.