Networking guides, explanations and reader checklists on whilenetworking.com

Packet Tracer Project: Design and Verify OSPF Multi-Area Routing with Inter-VLAN Gateway Redundancy

Building a robust enterprise network requires more than just connecting cables; it demands a strategic design that ensures high availability, scalability,…

Building a robust enterprise network requires more than just connecting cables; it demands a strategic design that ensures high availability, scalability, and efficient traffic management. This project guide walks you through creating a simulated enterprise environment in Cisco Packet Tracer where multiple VLANs are segmented, routing is handled via Open Shortest Path First (OSPF) across multi-area topologies, and gateway redundancy is achieved using Hot Standby Router Protocol (HSRP). By the end of this exercise, you will have constructed a network that mimics real-world corporate infrastructure, complete with DHCP services, DNS resolution, and comprehensive troubleshooting capabilities.

Prerequisites and Topology Design

Before launching Packet Tracer, ensure your environment is set up to support the simulation. While no specific software version is required beyond the standard installation, familiarity with Cisco IOS commands and subnetting logic is essential. This project assumes a topology consisting of two Layer 3 switches acting as distribution layers, connected via a core switch or directly, and terminating at access switches for end-user devices.

The design philosophy here follows the hierarchical network model: Access, Distribution, and Core. We will utilize VLANs to segment traffic (e.g., Management, Sales, Engineering) and assign them to specific subnets. The Layer 3 switches will run OSPF to exchange routing information dynamically. To ensure redundancy, we will configure HSRP on the VLAN interfaces of both distribution switches. This creates a virtual IP address; if the active router fails, the standby router assumes the role seamlessly.

Step-by-Step Configuration: VLANs and Subnetting

The foundation of any segmented network is proper VLAN assignment and IP addressing. Start by creating your VLANs on the access switches and propagating them to the distribution switches using Inter-VLAN trunking (802.1Q).

Configure a default gateway for each VLAN interface on the distribution switches. For example, if you have a Sales VLAN with subnet 192.168.10.0/24, assign an IP address like 192.168.10.1 to the SVI (Switch Virtual Interface) on both switches.

interface Vlan10
 description Sales_VLAN
 ip address 192.168.10.1 255.255.255.0
 no shutdown

Expected Result: The show ip interface brief command should display the VLAN interfaces as “up/up”. This confirms that Layer 3 connectivity is established locally before dynamic routing protocols take over.

Implementing OSPF Multi-Area Routing

Static routes are not scalable for enterprise networks. We will now implement OSPF to dynamically learn paths between different subnets. To prevent routing loops and ensure proper hierarchy, we divide the network into areas. Area 0 is the backbone area; all other areas must connect directly to it. Assign the core link or the direct connection between distribution switches to Area 0, while assigning the local VLAN interfaces of the distribution switches to a non-backbone area (e.g., Area 1).

Enter OSPF configuration mode and define the network ranges. Use wildcard masks to match specific subnets to areas.

router ospf 1
 router-id 2.2.2.2
 network 192.168.10.0 0.0.0.255 area 1
 network 192.168.20.0 0.0.0.255 area 1
 network 10.0.0.0 0.255.255.255 area 0

Verification: Use the command show ip ospf neighbor to confirm that adjacency is formed between routers in Area 0 and their neighbors in Area 1. If neighbors are not showing, check interface IP addresses, subnet masks, and ensure the OSPF process ID and network statements match.

Configuring HSRP for Gateway Redundancy

Redundancy is critical for business continuity. We will configure HSRP to provide a virtual gateway for each VLAN. Assign a higher priority (e.g., 110) to the primary distribution switch and a lower priority (e.g., 100) to the secondary switch. Both must share the same pre-shared key string for authentication.

interface Vlan10
 standby 10 ip 192.168.10.254
 standby 10 priority 110
 standby 10 preempt
 standby 10 authentication message-digest
 standby 10 md5 1 key-string SecureKey123

On the secondary switch, omit the priority or set it lower and ensure the preempt command is also enabled so that if the primary fails and recovers, it can reclaim the active role.

Expected Result: The show standby brief command will display one router as “Active” and the other as “Standby.” Traffic will flow to the virtual IP 192.168.10.254. Simulate a failure by shutting down the interface on the active switch; the standby should take over within seconds, visible in the HSRP state change.

Integrating DHCP and DNS Services

A functional network requires dynamic IP assignment and name resolution. Configure a DHCP pool that references the VLAN subnet, excluding the first few IPs for static assignments (like servers). In Packet Tracer, you can use the router’s built-in DHCP service or an external server image.

For DNS, configure the DHCP option 150 or 6 to point client devices to an internal DNS server IP. This allows users to type “webserver.local” instead of raw IP addresses. Ensure the Layer 3 switches have a default route pointing to your ISP or upstream router so that internet-bound traffic is forwarded correctly.

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

Troubleshooting and Verification with Wireshark

Even with perfect configuration, issues arise. Use Packet Tracer’s built-in Wireshark or the command-line interface to diagnose problems. Common errors include OSPF neighbor states stuck in “Init” (usually due to mismatched hello/dead timers or authentication failures) or HSRP states failing to transition.

To troubleshoot:
1. Check Routing Tables: Run show ip route to ensure the destination networks appear under the ‘O’ (OSPF) code.
2. Inspect OSPF Packets: Use Wireshark to filter for OSPF packets (udp.port == 67 or specific OSPF protocol filters if using a packet capture tool). Look for Hello packets and Database Description (DBD) exchanges.
3. Verify HSRP State: Ensure the virtual MAC address is being advertised correctly on the switchports.

Common Mistake: Forgetting to enable no shutdown on VLAN interfaces after configuration often leads to “down/down” status, breaking routing paths. Always verify physical and data-link layer connectivity before diving into Layer 3 protocols.

Student Practice Task and Industry Application

For students, try modifying the topology by adding a new department (e.g., HR) with its own VLAN and subnet. Challenge yourself to calculate the correct subnet mask for a /24 network and configure OSPF without errors. In an industry setting, this skill translates to designing multi-site WANs where OSPF areas separate branch offices from data centers, ensuring that sensitive data center traffic remains isolated while maintaining efficient routing tables.

This project encapsulates the core competencies of modern network engineering: segmentation for security, dynamic routing for scalability, and redundancy for reliability. By mastering these concepts in a safe simulation environment, you build a foundation applicable to real-world CCNA/CCNP level deployments. Remember that while Packet Tracer simplifies hardware, the underlying logic of OSPF areas, HSRP priorities, and DHCP scopes remains consistent across enterprise-grade equipment like Cisco Catalyst switches and routers.

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.