This repository contains the full logical design, network topology, and device configurations for a corporate multi-VLAN network simulated inside Cisco Packet Tracer. The architecture implements secure remote access, automated IP allocation, high-availability link aggregation, and resilient spanning-tree path selection.
The infrastructure connects three primary departments across a Router-on-a-Stick (RoaS) topology:
| Department / VLAN | Subnet Range | Default Gateway | Primary Switch Assignment |
|---|---|---|---|
| VLAN 2: Engineering (Eng) | 192.168.1.0/24 |
192.168.1.1 |
Left_Switch |
| VLAN 3: Finance (Fin) | 192.168.2.0/24 |
192.168.2.1 |
Right_Switch |
| VLAN 4: Information Technology (IT) | 192.168.3.0/24 |
192.168.3.1 |
Both Switches / Server Pool |
- Local Authentication: A local user database is established with the username
adminand an encrypted password (calm). - Cryptographic Keys: A 3000-bit RSA key pair (
://admin.com) encrypts all administrative traffic across the network. - VTY Management Restriction: Standard Access List 1 permits traffic from the IT network (
192.168.3.0/24). This is actively bound to virtual teletype lines (line vty 0 15) with theaccess-class 1 incommand, ensuring only users within the IT department can establish an SSH connection. - Session Security: Lines are forced to use SSH exclusively (
transport input ssh), dropping unencrypted Telnet connections. An inactivity timer of 5 minutes prevents idle terminal exposures.
The core router (r1) acts as the central DHCP server for the corporate ecosystem:
- Address Exclusions: The ranges
192.168.1.1to192.168.1.5and192.168.2.1to192.168.2.5are withheld from dynamic allocation. This reserves static IPs for gateways, switches, and network printers. - Dynamic Scopes: Three address pools (
Engi,Fin,IT) lease dynamic IP parameters to endpoint workstations, automatically passing down default gateway addresses and pointing traffic to the central DNS Server at192.168.3.6.
Physical interface Gig0/0 on the router acts as an 802.1Q trunk gateway:
- The interface is divided into virtual logical sub-interfaces (
gig0/0.2,gig0/0.3, andgig0/0.4). - Each sub-interface terminates a specific VLAN tag (
dot1Q 2,dot1Q 3,dot1Q 4) and binds it to its corresponding subnet gateway IP. This setup allows hosts across separate VLANs to route packets through the router layer.
- VLAN Trunking Protocol (VTP):
Mainswitchis established as the central VTP Server under the domain nameflame. This server dynamically propagates the global VLAN database down to client switches across trunk connections. - EtherChannel Link Aggregation:
- Channel Group 1: Bundles links
Fa0/2andFa0/3betweenMainswitch(Active) andLeft_Switch(Passive). - Channel Group 2: Bundles links
Fa0/4andFa0/5betweenMainswitch(Active) andRight_Switch(Passive). - This grouping bundles available trunk bandwidth and protects against single physical link failures.
- Channel Group 1: Bundles links
- Rapid PVST+: The network uses Rapid Per-VLAN Spanning Tree Plus (
rapid-pvst) to ensure rapid convergence during link topology changes. - Root Bridge Optimization:
Mainswitchis declared the primary root bridge forVLAN 2andVLAN 3, forcing data paths to flow through the high-capacity core.Mainswitchis the secondary backup root bridge forVLAN 4.
- Edge Port Fastening: End-user access ports (Engineering on
Left_Switch fa0/3-4, Finance onRight_Switch fa0/3-4, and IT hosts) utilizespanning-tree portfastto bypass forwarding delays and bring workstations online immediately. - BPDU Guard Protection: Access ports are protected with
bpduguard enable. If an unauthorized switch is plugged into an edge port, the port goes down automatically to stop loop exploits.