Skip to content

A simulated enterprise network demonstrating VLAN segmentation, inter-VLAN routing, and DHCP services using Cisco Packet Tracer.

License

Notifications You must be signed in to change notification settings

asmymhm/enterprise-vlan-intervlan-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿข Enterprise VLAN & Inter-VLAN Routing Setup

A Cisco Packet Tracer lab demonstrating VLAN segmentation, trunking, and router-on-a-stick inter-VLAN routing for enterprise networks.

Table of Contents

  1. ๐Ÿ“˜ Project Overview
  2. ๐ŸŽฏ Project Objectives
  3. ๐ŸŒ Network Topology
  4. ๐Ÿ“ IP Addressing Table
  5. ๐Ÿ› ๏ธ Lab Steps
  6. ๐Ÿ’ป Device Configuration
  7. โœ… Verification Commands
  8. โšก How to Run Lab
  9. ๐Ÿ“‚ Folder Structure
  10. ๐ŸŽ“ Learning Outcomes
  11. โ„น๏ธ Repository Info

๐Ÿ“˜ Project Overview

This lab simulates a realistic enterprise network with multiple VLANs and inter-VLAN routing implemented using router-on-a-stick.
The network includes a central switch, a router with subinterfaces, multiple PCs in different VLANs, and a server.
Key CCNA skills demonstrated include VLAN creation, trunk configuration, inter-VLAN routing, DHCP, and IP addressing.


๐ŸŽฏ Project Objectives

  • Configure VLANs and assign access ports.
  • Configure a trunk port between switch and router.
  • Configure router-on-a-stick subinterfaces for inter-VLAN routing.
  • Verify connectivity between VLANs and to a central server.
  • Demonstrate Layer 2 and Layer 3 network communication.

Real-world Scenario:

The company has three departments: HR, IT, and Sales. Each department needs its own VLAN for traffic segmentation. All PCs should communicate internally while maintaining proper gateway configuration, and DHCP automates IP assignment.

Important Note:

โ€œThe server resides in VLAN 10 (HR), while other VLANs access it via router-on-a-stick inter-VLAN routing, demonstrating proper Layer 3 communication in an enterprise network.โ€


๐ŸŒ Network Topology

Router: 1 (R1)

Switch: 1 Layer 3 Switch (SW1)

PCs: 6 (2 per department)

Server: 1 (DHCP & DNS)

Topology Layout: TOPOLOGY OVERVIEW

๐Ÿงฉ See topology/enterprise-vlan-intervlan-lab.png for network diagram.
Drawio design available at: drawio/enterprise-vlan-intervlan-lab.drawio

๐Ÿ—‚๏ธ Device Connection Table

Device Interface Connected To Notes
R1 G0/0 SW1 G0/1 Trunk link for router-on-a-stick
SW1 G0/1 R1 G0/0 Trunk link carrying VLANs 10, 20, 30
SW1 Fa0/1 PC1 HR VLAN 10
SW1 Fa0/2 PC2 HR VLAN 10
SW1 Fa0/3 PC3 IT VLAN 20
SW1 Fa0/4 PC4 IT VLAN 20
SW1 Fa0/5 PC5 Sales VLAN 30
SW1 Fa0/6 PC6 Sales VLAN 30
SW1 Fa0/7 Server DHCP/DNS Server, trunk or access depending on VLAN assignment

๐Ÿงฎ IP Addressing Table

Device / Interface IP Address Subnet Mask Default Gateway VLAN / Notes
Router R1 G0/0.10 192.168.10.1 255.255.255.0 - VLAN 10 HR (Router-on-a-stick)
Router R1 G0/0.20 192.168.20.1 255.255.255.0 - VLAN 20 IT
Router R1 G0/0.30 192.168.30.1 255.255.255.0 - VLAN 30 Sales
PC1 (HR) 192.168.10.10 255.255.255.0 192.168.10.1 VLAN 10
PC2 (HR) 192.168.10.11 255.255.255.0 192.168.10.1 VLAN 10
PC3 (IT) 192.168.20.10 255.255.255.0 192.168.20.1 VLAN 20
PC4 (IT) 192.168.20.11 255.255.255.0 192.168.20.1 VLAN 20
PC5 (Sales) 192.168.30.10 255.255.255.0 192.168.30.1 VLAN 30
PC6 (Sales) 192.168.30.11 255.255.255.0 192.168.30.1 VLAN 30
Server (DHCP/DNS) 192.168.10.100 255.255.255.0 192.168.10.1 Connected to SW1 trunk, serves all VLANs

๐Ÿ”ง Lab Steps

  1. Connect all devices as per topology diagram. โ†’ Connect all devices according to the topology diagram.

  2. Configure VLANs on the switch.

  3. Assign switch ports to VLANs.

  4. Configure router-on-a-stick with subinterfaces for each VLAN.

  5. Configure DHCP pools on the server or router.

  6. Assign PCs to VLANs and enable DHCP. โ†’ Assign PCs to their respective VLANs and configure DHCP.

  7. Test connectivity between PCs in same VLAN.

  8. Test connectivity between PCs in different VLANs (Inter-VLAN routing). โ†’ Test inter-VLAN connectivity between PCs in different VLANs.


๐Ÿ’ป Device Configuration

๐Ÿ”Œ Switch Configuration

SW1 (Layer 3 Switch)

Below is a snippet of the SW1 config. View the full file below:

SW1(config)#vlan 10
SW1(config-vlan)#name HR
SW1(config-vlan)#vlan 20
SW1(config-vlan)#name IT
SW1(config-vlan)#vlan 30
SW1(config-vlan)#name Sales

View Full Configuration File โ†’

๐Ÿšฆ Router Configuration

Router R1 (Router-on-a-Stick)

Below is a snippet of the R1 config. View the full file below:

R1(config)#interface g0/0
R1(config-if)#no shutdown

! Subinterfaces for VLANs
```text
R1(config)#interface g0/0.10
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 192.168.10.1 255.255.255.0
R1(config-subif)#no shutdown

View Full Configuration File โ†’

๐Ÿ“ก DHCP Server Configuration

ON ROUTER (R1)

Below is a snippet of the dhcp config. View the full file below:

R1(config)#
R1(config)#! VLAN 10 HR
R1(config)#ip dhcp pool HR
R1(dhcp-config)#network 192.168.10.0 255.255.255.0
R1(dhcp-config)#default-router 192.168.10.1
R1(dhcp-config)#dns-server 8.8.8.8

View Full Configuration File โ†’

๐Ÿ–ง PC and Server Configuration

Refer to full files:


๐Ÿงพ Verification Commands

1. ๐Ÿ—บ๏ธ Topology Screenshot

shows the full lab layout in Packet Tracer. TOPOLOGY OVERVIEW

2. ๐Ÿ” VLAN Verification

show vlan brief output on SW1 --> Vlan10,20,30

show vlan brief

show vlan

3. ๐Ÿ”— Trunk Verification

Shows show interfaces trunk output, proving the router-to-switch trunk works.

show interfaces trunk

Trunk ports

4. โš™๏ธ Router Subinterfaces / Inter-VLAN Routing

Shows show ip interface brief or show ip route to prove subinterfaces are configured.

show ip interface brief

Sub interface

show ip route

IP route

5. ๐ŸŒ Connectivity / Ping Test

  • Ping between PCs in same VLAN PC 2 to PC1 โ†’ โ€œPing between PCs in the same VLAN (PC2 โ†’ PC1)โ€

ping within same vlan

- Ping between PCs in different VLANs PC3 to PC6 โ†’ โ€œPing between PCs in different VLANs (PC3 โ†’ PC6)โ€

ping between vlans

- Ping server from router R1 to Server1 (VLAN 10)

- Ping server from PCs in different VLANs

Other vlan to server

Test Summary Table:

Test Status Notes
VLAN Configuration โœ… Success VLANs 10, 20, 30 configured on SW1
Trunk Port โœ… Success Trunk between SW1 G0/1 and R1 G0/0 verified
Router-on-a-Stick โœ… Success Subinterfaces configured for all VLANs
DHCP Assignment โœ… Success PCs received IP addresses automatically
Ping Tests (Intra-VLAN) โœ… Success PCs in the same VLAN can communicate
Ping Tests (Inter-VLAN) โœ… Success PCs across VLANs can communicate via router
Server Connectivity โœ… Success All VLANs can reach the server

โšก How to Run Lab

  1. Open Cisco Packet Tracer 8.x (recommended).

  2. Open the lab file: labs/enterprise-vlan-intervlan-lab.pkt.

  3. Follow Lab Steps section above.

  4. Verify VLANs, trunking, router-on-a-stick, DHCP and inter-VLAN connectivity.

  5. Use the Verification Commands section to confirm correct operation.

  6. Optional: Enable Simulation Mode to observe packet flow between VLANS and the Server.


๐Ÿ“ Folder Structure

enterprise-vlan-intervlan-lab/ โ”‚โ”€โ”€ README.md โ”‚โ”€โ”€ verification.md โ”‚โ”€โ”€ LICENSE โ”‚โ”€โ”€ Learning Outcomes โ”‚โ”€โ”€ Repository Info โ”‚ โ”œโ”€โ”€ config/ โ”‚ โ”œโ”€โ”€ router-configs/ โ”‚ โ”‚ โ”œโ”€โ”€ r1.cfg โ”‚ โ”‚ โ””โ”€โ”€ dhcp.cfg โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ switch-configs/ โ”‚ โ”‚ โ””โ”€โ”€ sw1.cfg โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ pc-configs/ โ”‚ โ”‚ โ””โ”€โ”€ pc.txt โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ server-configs/ โ”‚ โ””โ”€โ”€ server.txt โ”‚ โ”œโ”€โ”€ screenshots/ โ”‚ โ”œโ”€โ”€ ping_different_vlan.png โ”‚ โ”œโ”€โ”€ ping_same_vlan.png โ”‚ โ”œโ”€โ”€ router_ip_route.png โ”‚ โ”œโ”€โ”€ router_subinterfaces.png โ”‚ โ”œโ”€โ”€ trunk_port_status.png โ”‚ โ”œโ”€โ”€ vlan_10_ping_server.png โ”‚ โ”œโ”€โ”€ vlan_30_ping_server.png โ”‚ โ””โ”€โ”€ vlan_table_verification.png โ”‚ โ”œโ”€โ”€ topology/ โ”‚ โ”œโ”€โ”€ topology_overview.png โ”‚ โ”œโ”€โ”€ enterprise-vlan-intervlan-lab.png โ”‚ โ””โ”€โ”€ labs/ โ””โ”€โ”€ enterprise-vlan-intervlan-lab.pkt

๐Ÿง  Learning Outcomes

After completing this lab, you will be able to:

  • Configure VLANs, trunk ports, and router-on-a-stick inter-VLAN routing.

  • Assign and verify DHCP-assigned IP addresses across VLANs.โ€

  • Interpret show commands (show vlan brief, show ip interface brief, show ip route, show interfaces trunk) to troubleshoot and verify network configuration.

  • Demonstrate network connectivity testing using ping across VLANs and to the server.

  • Apply layer 2 and layer 3 network reasoning to solve network issues.

  • Develop practical skills relevant to CCNA certification and enterprise network management.


๐Ÿ“‚ Repository Info

This project is part of my CCNA Lab Portfolio.
Explore more labs here ๐Ÿ‘‰ @asmymhm


About

A simulated enterprise network demonstrating VLAN segmentation, inter-VLAN routing, and DHCP services using Cisco Packet Tracer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published