Note: These lab files require Cisco Packet Tracer to open. Download the latest version from Cisco NetAcad.
💡 Tip: Start with the "CCNA Complete Lab" for comprehensive practice, or choose specific scenarios based on your learning goals.
📂 View all files on GitHub: CCNA-LAB Repository
Welcome to my hands-on network engineering lab series! This repository documents my journey to solidify foundational networking skills using Cisco Packet Tracer. This approach prioritizes rapid prototyping and concept verification to maintain motivation and efficient study flow. The core idea is to progressively build and transform a network topology across three common architectural models:
For each architecture, I will configure, verify, and troubleshoot a comprehensive set of networking protocols and services. This approach allows me to not only learn the "how" but also the "why" – understanding which protocols are essential for each design.
This comprehensive lab series aims for proficiency in designing, implementing, and troubleshooting a realistic enterprise network topology within Packet Tracer. Through hands-on configuration and verification, learners will achieve mastery in the following critical networking areas and technologies:
Network Infrastructure Foundations:
Routing & Connectivity:
Network Security & Access Control:
Essential Network Services & Management (Planned):
Network Operations & Troubleshooting:
show commands for real-time verification, monitoring, and effective troubleshooting of network operations.Wireless LAN (WLAN) (Optional - if desired):
This initial phase focuses on building a robust, traditional three-tier enterprise network. All the specified wired-network protocols and services will be implemented in this architecture, serving as our baseline. Wireless components and a dedicated WAN router are excluded for this initial build phase.
The classic three-tier design organizes network devices into distinct logical layers:
In this architecture, Layer 2 protocols like STP and EtherChannel are critical to prevent loops and provide redundancy. Redundancy at every layer, from access uplinks to core interconnects, is paramount for high availability.
(Screenshot of your Packet Tracer Lab for Three-Tier Architecture will go here)
The interface names for the PT-Router with added modules typically follow a pattern like GigabitEthernetX/Y (e.g., Gi0/0, Gi0/1 for default ports, and then Gi1/0, Gi2/0, etc., for ports on modules in different slots). For simplicity and consistency in the README.md, I will map the required ports to the GiX/Y format, assuming you arrange them logically when adding modules.
(This section remains the same, confirming the device types you are using)
Core Layer Devices (Use "PT-Router" or "Generic Router" in Packet Tracer):
Router 1 (R1): Primary Core RouterRouter 2 (R2): Secondary/Redundant Core RouterISP Router (ISP-R1): Simulates an Internet Service ProviderDistribution Layer Devices (Use "Multilayer Switch" or "3560 Switch" in Packet Tracer):
Router 3 (R3): Primary Distribution SwitchRouter 4 (R4): Secondary Distribution SwitchAccess Layer Devices (Use "2960 Switch" in Packet Tracer):
Switch 1 (SW1): Access Switch for PC1 and ServerSwitch 2 (SW2): Access Switch for PC2Switch 3 (SW3): Access Switch for PC3Switch 4 (SW4): Access Switch for PC4Specialized Devices & Clients (Standard Packet Tracer devices):
DNS/TFTP/NTP/Syslog Server (Server1): A "Server" device (will reside in VLAN 99 - Management)Client PC 1 (PC1): A "PC" device (will reside in VLAN 10 - Sales)Client PC 2 (PC2): A "PC" device (will reside in VLAN 10 - Sales)Client PC 3 (PC3): A "PC" device (will reside in VLAN 20 - HR)Client PC 4 (PC4): A "PC" device (will reside in VLAN 20 - HR)Client PC 5 (PC5): A "PC" device (will reside in VLAN 99 - Management)Client PC 6 (PC6): A "PC" device (will reside in VLAN 99 - Management)Client PC 7 (PC7): A "PC" device (will reside in VLAN 99 - Management)Cloud Object (Internet): Packet Tracer's "Cloud" device (for external connectivity simulation)Important Note on Interface Naming & Packet Tracer Limitations:
For R1, R2, and ISP-R1 (PT-Routers), you will need to add PT-ROUTER-NM-1FGE modules to get enough Gigabit Ethernet ports. Their interfaces will typically be named GigabitEthernetX/Y.
For R3 and R4 (Cisco Catalyst 3560 Multilayer Switches), these switches have only two Gigabit Ethernet ports (Gi0/1, Gi0/2) and the rest are FastEthernet (Fa0/X). The GigE ports will be used for Core uplinks. All other Distribution Layer links (to Access and peer Distribution) will use FastEthernet.
For SW1-SW4 (2960 Switches), these also have only two Gigabit Ethernet uplinks (Gi0/1, Gi0/2) and the rest are FastEthernet. All links to the Distribution layer will use FastEthernet to match the 3560's ports.
A. Core Layer Connections (PT-Routers):
R1 Gi0/0 : ISP-R1 Gi0/0 (Primary Internet Uplink)R2 Gi0/0 : ISP-R1 Gi0/1 (Secondary/Redundant Internet Uplink)R1 Gi0/1 : R2 Gi0/1 (Core Router Interconnect - Link 1)R1 Gi0/2 : R2 Gi0/2 (Core Router Interconnect - Link 2)B. Core to Distribution Layer Connections (PT-Routers to Multilayer Switches):
R1 Gi0/3 : R3 Gi0/1 (R1 to R3 - Primary Link)R1 Gi0/4 : R4 Gi0/1 (R1 to R4 - Primary Link)R2 Gi0/3 : R3 Gi0/2 (R2 to R3 - Secondary Link)R2 Gi0/4 : R4 Gi0/2 (R2 to R4 - Secondary Link)C. Distribution to Access Layer Connections (3560 Multilayer Switches to 2960 Switches - EtherChannel Bundles / Routed Links): * Each Access Layer switch (SW1-SW4) will connect to both Distribution Layer switches (R3 and R4) with two redundant FastEthernet links each. * The Access Switch side will form an EtherChannel bundle (Port-Channel) using these FastEthernet ports. The Distribution Switch will use separate routed interfaces (e.g., SVIs) as peers to that Port-Channel.
R3 (3560 Multilayer Switch) to Access Switches (2960 Switches):
R3 Fa0/1 : SW1 Fa0/1 (R3 to SW1 - Link 1 for Port-Channel)R3 Fa0/2 : SW1 Fa0/2 (R3 to SW1 - Link 2 for Port-Channel)R3 Fa0/3 : SW2 Fa0/1 (R3 to SW2 - Link 1 for Port-Channel)R3 Fa0/4 : SW2 Fa0/2 (R3 to SW2 - Link 2 for Port-Channel)R3 Fa0/5 : SW3 Fa0/1 (R3 to SW3 - Link 1 for Port-Channel)R3 Fa0/6 : SW3 Fa0/2 (R3 to SW3 - Link 2 for Port-Channel)R3 Fa0/7 : SW4 Fa0/1 (R3 to SW4 - Link 1 for Port-Channel)R3 Fa0/8 : SW4 Fa0/2 (R3 to SW4 - Link 2 for Port-Channel)R4 (3560 Multilayer Switch) to Access Switches (2960 Switches):
R4 Fa0/1 : SW1 Fa0/3 (R4 to SW1 - Link 1 for Port-Channel)R4 Fa0/2 : SW1 Fa0/4 (R4 to SW1 - Link 2 for Port-Channel)R4 Fa0/3 : SW2 Fa0/3 (R4 to SW2 - Link 1 for Port-Channel)R4 Fa0/4 : SW2 Fa0/4 (R4 to SW2 - Link 2 for Port-Channel)R4 Fa0/5 : SW3 Fa0/3 (R4 to SW3 - Link 1 for Port-Channel)R4 Fa0/6 : SW3 Fa0/4 (R4 to SW3 - Link 2 for Port-Channel)R4 Fa0/7 : SW4 Fa0/3 (R4 to SW4 - Link 1 for Port-Channel)R4 Fa0/8 : SW4 Fa0/4 (R4 to SW4 - Link 2 for Port-Channel)D. Distribution Layer Interconnect (3560 Multilayer Switches): * These links will also utilize FastEthernet ports due to GigE port limitations on the 3560s.
R3 Fa0/9 : R4 Fa0/9 (R3 to R4 - Link 1)R3 Fa0/10 : R4 Fa0/10 (R3 to R4 - Link 2)E. Access Layer to Client/Service Connections (2960 Switches):
SW1 Fa0/5 : PC1 (VLAN 10 - Sales)SW1 Fa0/6 : Server1 (VLAN 99 - Management)SW1 Fa0/7 : PC5 (VLAN 99 - Management)SW2 Fa0/5 : PC2 (VLAN 10 - Sales)SW2 Fa0/6 : PC6 (VLAN 99 - Management)SW3 Fa0/5 : PC3 (VLAN 20 - HR)SW3 Fa0/6 : PC7 (VLAN 99 - Management)SW4 Fa0/5 : PC4 (VLAN 20 - HR)F. ISP-R1 to Internet Cloud (PT-Router to Cloud):
ISP-R1 Gi0/2 : Cloud0 (Packet Tracer Cloud Object, connect via "DSL Modem" or "Cable Modem" if available in PT and desired for realism, then to Cloud's "Ethernet" port).This IP addressing plan is tailored to the Packet Tracer lab topology, meticulously mapping IP addresses to the specific GigabitEthernet and FastEthernet interfaces as per our finalized connectivity details.
Core Layer Subnets (PT-Routers):
ISP Uplinks (Primary/Secondary):
203.0.113.0/30:
203.0.113.1 on R1 GigabitEthernet0/0203.0.113.2 on ISP-R1 GigabitEthernet1/0203.0.113.4/30:
203.0.113.5 on R2 GigabitEthernet0/0203.0.113.6 on ISP-R1 GigabitEthernet2/0Core Interconnect (R1-R2):
10.0.0.0/30 (Link 1):
10.0.0.1 on R1 GigabitEthernet1/010.0.0.2 on R2 GigabitEthernet1/010.0.0.4/30 (Link 2):
10.0.0.5 on R1 GigabitEthernet2/010.0.0.6 on R2 GigabitEthernet2/0Core to Distribution Subnets (PT-Routers to 3560 Multilayer Switches):
R1 to Distribution:
10.0.1.0/30 (R1-R3 Link):
10.0.1.1 on R1 GigabitEthernet3/010.0.1.2 on R3 GigabitEthernet0/110.0.1.4/30 (R1-R4 Link):
10.0.1.5 on R1 GigabitEthernet4/010.0.1.6 on R4 GigabitEthernet0/1R2 to Distribution:
10.0.1.8/30 (R2-R3 Link):
10.0.1.9 on R2 GigabitEthernet3/010.0.1.10 on R3 GigabitEthernet0/210.0.1.12/30 (R2-R4 Link):
10.0.1.13 on R2 GigabitEthernet4/010.0.1.14 on R4 GigabitEthernet0/2Distribution to Access Subnets (Routed FastEthernet EtherChannel Links):
Each pair of links between a Distribution Switch (R3/R4) and an Access Switch (SW1-SW4) will form an EtherChannel bundle on both sides. The IP address for the routed link will be assigned to the Port-Channel interface on both the Distribution and Access switches.
R3 (3560) to Access Switches (2960):
10.0.2.0/30 (R3 Po30 to SW1 Po10):
10.0.2.1 on R3 Port-channel 30 (grouping Fa0/1 and Fa0/2)10.0.2.2 on SW1 Port-channel 10 (grouping Fa0/1 and Fa0/2)10.0.2.4/30 (R3 Po31 to SW2 Po11):
10.0.2.5 on R3 Port-channel 31 (grouping Fa0/3 and Fa0/4)10.0.2.6 on SW2 Port-channel 11 (grouping Fa0/1 and Fa0/2)10.0.2.8/30 (R3 Po32 to SW3 Po12):
10.0.2.9 on R3 Port-channel 32 (grouping Fa0/5 and Fa0/6)10.0.2.10 on SW3 Port-channel 12 (grouping Fa0/1 and Fa0/2)10.0.2.12/30 (R3 Po33 to SW4 Po13):
10.0.2.13 on R3 Port-channel 33 (grouping Fa0/7 and Fa0/8)10.0.2.14 on SW4 Port-channel 13 (grouping Fa0/1 and Fa0/2)R4 (3560) to Access Switches (2960):
10.0.2.16/30 (R4 Po40 to SW1 Po20):
10.0.2.17 on R4 Port-channel 40 (grouping Fa0/1 and Fa0/2)10.0.2.18 on SW1 Port-channel 20 (grouping Fa0/3 and Fa0/4)10.0.2.20/30 (R4 Po41 to SW2 Po21):
10.0.2.21 on R4 Port-channel 41 (grouping Fa0/3 and Fa0/4)10.0.2.22 on SW2 Port-channel 21 (grouping Fa0/3 and Fa0/4)10.0.2.24/30 (R4 Po42 to SW3 Po22):
10.0.2.25 on R4 Port-channel 42 (grouping Fa0/5 and Fa0/6)10.0.2.26 on SW3 Port-channel 22 (grouping Fa0/3 and Fa0/4)10.0.2.28/30 (R4 Po43 to SW4 Po23):
10.0.2.29 on R4 Port-channel 43 (grouping Fa0/7 and Fa0/8)10.0.2.30 on SW4 Port-channel 23 (grouping Fa0/3 and Fa0/4)Distribution Interconnect (R3-R4 - Separate FastEthernet Links):
10.0.3.0/30 (Link 1):
10.0.3.1 on R3 FastEthernet0/910.0.3.2 on R4 FastEthernet0/910.0.3.4/30 (Link 2):
10.0.3.5 on R3 FastEthernet0/1010.0.3.6 on R4 FastEthernet0/10VLAN Subnets (Managed at Distribution Layer via HSRP for First-Hop Redundancy):
192.168.10.0/24
192.168.10.254192.168.10.1 on R3 Interface VLAN 10192.168.10.2 on R4 Interface VLAN 10192.168.20.0/24
192.168.20.254192.168.20.1 on R3 Interface VLAN 20192.168.20.2 on R4 Interface VLAN 20192.168.99.0/24
192.168.99.254192.168.99.1 on R3 Interface VLAN 99192.168.99.2 on R4 Interface VLAN 99192.168.99.3 for SW1, 192.168.99.4 for SW2, etc., and 192.168.99.10 for Server1).Loopback Interfaces (for Routing Protocol advertisement and Router IDs):
R1 Loopback0: 172.16.1.1/32R2 Loopback0: 172.16.2.1/32R3 Loopback0: 172.16.3.1/32R4 Loopback0: 172.16.4.1/32ISP-R1 Loopback0: 172.16.6.1/32Always be mindful of the specific capabilities of each device model.
This lab utilizes Cisco Catalyst 2960 switches at the Access Layer (ASW-1 to ASW-4). These are Layer 2-ONLY switches. They DO NOT SUPPORT Layer 3 routing features such as ip routing, no switchport on physical interfaces/Port-Channels, or direct IP addressing on data plane interfaces.
All configurations for ASWs in this document are tailored to their Layer 2 capabilities. Attempting to configure Layer 3 features on a 2960 will result in errors and a non-functional lab. A detailed explanation of this distinction and what would be configured on a multilayer switch is provided at the end of the configuration section for learning purposes.
Open Cisco Packet Tracer.
Drag and drop the necessary devices into your workspace as described in Section 1.3:
Generic Router (PT-Router) for R1 (core-r1), R2 (core-r2), and ISP-R1.Cisco Catalyst 3560 Multilayer Switch for R3 (DSW-R3) and R4 (DSW-R4).2960 Switch for SW1 (ASW-1), SW2 (ASW-2), SW3 (ASW-3), SW4 (ASW-4).PC devices for PC1-PC4, and a Server device for Server1.Cloud object for Internet simulation.Add any required modules to the PT-Routers (core-r1, core-r2, ISP-R1):
PT-Router device, go to its Physical tab and drag and drop PT-ROUTER-NM-1FGE modules into their available slots. Ensure you add enough modules to get all the Gigabit Ethernet ports as specified in Section 1.3.PT-Router's built-in Gigabit Ethernet ports are typically GigabitEthernet0/0 and GigabitEthernet0/1. Modules added in slot 1 will be GigabitEthernet1/0, slot 2 will be GigabitEthernet2/0, and so on.Connect all cables exactly as specified in the "Detailed Connectivity" (Section 1.3):
GigabitEthernet0/0, GigabitEthernet1/0, GigabitEthernet2/0, etc., interface names for R1 (core-r1), R2 (core-r2), and ISP-R1.GigabitEthernet0/X (e.g., Gi0/1, Gi0/2) and FastEthernet0/X (e.g., Fa0/1, Fa0/2, etc.) interface names.DSW-R3 Fa0/1 to ASW-1 Fa0/1, etc.), as this was a critical correction to match Packet Tracer's device limitations.Take NEWEST, FINAL Screenshot for Phase 1: Capture a fresh, clear screenshot of your complete Three-Tier topology within Packet Tracer once all devices are placed and cabled. This will be your definitive topology diagram.
Update README.md: Replace the placeholder text in Section 1.2 "Lab Topology Diagram" with your newest screenshot.
Confirm Hostnames: Access the CLI of each device and configure its hostname (core-r1, core-r2, DSW-R3, DSW-R4, ASW-1, ASW-2, ASW-3, ASW-4, ISP-R1, PC1, PC2, PC3, PC4, Server1).
Assign IP Addresses and Configure Basic Layer 2/3 Services (Step-by-Step Configuration): Proceed to configure the IP addresses on all relevant Layer 3 interfaces and set up Layer 2 elements precisely according to the FINALIZED Section 1.4 "IP Addressing Scheme" and the corrected design.
A. Enable IP Routing on Distribution Switches (DSW-R3, DSW-R4):
* Access global configuration mode (conf t).
* Enter the command: ip routing
* Explanation for Learners: This command is fundamental for Cisco multilayer switches. By default, they only perform Layer 2 switching. ip routing enables their Layer 3 forwarding capabilities, allowing them to route traffic between different IP subnets, which is essential for their role in the Distribution layer.
\* For `core-r1`, `core-r2`, and `ISP-R1`, go to global configuration mode (`conf t`).
\* For each active GigabitEthernet interface that connects to another router (Core-Core, Core-Distro, ISP-Uplinks), navigate to its interface configuration mode (e.g., `interface GigabitEthernet0/0`).
\* Assign the IP address and subnet mask: `ip address <address> <subnet-mask>`
\* Activate the interface: `no shutdown`
\* For Loopback interfaces (e.g., `interface Loopback0`):
\* Assign the IP address: `ip address <address> 255.255.255.255` (for a /32 mask).
\* Activate the interface: `no shutdown`
C. Configure Distribution Layer Switches (DSW-R3, DSW-R4) - Loopback and Interconnect Links:
\* For `DSW-R3` and `DSW-R4`, go to global configuration mode (`conf t`).
\* For Loopback interfaces (e.g., `interface Loopback0`):
\* Assign the IP address: `ip address <address> 255.255.255.255`
\* Activate the interface: `no shutdown`
\* For the DSW-R3 to DSW-R4 Interconnect FastEthernet links (`Fa0/9` and `Fa0/10` on both DSW-R3 and DSW-R4):
\* Navigate to the interface configuration mode (e.g., `interface FastEthernet0/9`).
\* Convert the Layer 2 switchport to a Layer 3 routed port: `no switchport`
\* *Explanation for Learners:* Physical interfaces on multilayer switches are Layer 2 by default. The `no switchport` command changes the interface's mode, allowing it to directly participate in Layer 3 routing and accept an IP address, rather than just forwarding frames based on MAC addresses.
\* Assign the IP address: `ip address <address> <subnet-mask>`
\* Activate the interface: `no shutdown`
\* These will be `Port-channel 30` to `33` on `DSW-R3` and `Port-channel 40` to `43` on `DSW-R4`.
\* *Explanation for Learners:* Since the Access Switches (2960s) are Layer 2 only, the uplinks from the DSWs to the ASWs must be Layer 2 Trunking EtherChannels. This means they will carry traffic for multiple VLANs without directly participating in Layer 3 routing on these specific Port-Channels. The `no switchport` command and IP address will NOT be applied to these Port-Channels.
```
* For DSW-R3's Port-Channels (Po30-33) - Using PAgP (Cisco Proprietary):
* *Explanation for Learners:* PAgP (Port Aggregation Protocol) is a Cisco-proprietary protocol used to negotiate EtherChannel formation. `mode desirable` actively attempts to form a channel, while `mode auto` passively waits.
* For each Port-Channel bundle (e.g., for DSW-R3 to ASW-1 - Po30):
1. Configure Physical Member Interfaces (Layer 2 for Bundling):
* Go to interface range configuration mode (e.g., `conf t` then `interface range FastEthernet0/1 - 2`).
* Add the interfaces to the channel-group: `channel-group <ID> mode desirable` (replace `<ID>` with the correct Port-Channel ID like `30`).
* Activate the interfaces: `no shutdown`
* *Note:* These individual physical interfaces remain Layer 2 switchports and will NOT have `no switchport` or an IP address directly configured on them. They solely serve to aggregate into the logical Port-Channel.
2. Configure the Logical Port-Channel Interface (Layer 2 Trunking):
* Exit interface range mode.
* Navigate to the Port-Channel interface: `interface Port-channel <ID>` (e.g., `interface Port-channel 30`).
* Set the Port-Channel to trunking mode: `switchport mode trunk`
* Activate the Port-Channel: `no shutdown`
* *Important:* No `no switchport` or `ip address` will be configured here.
* For DSW-R4's Port-Channels (Po40-43) - Using LACP (IEEE Standard):
* *Explanation for Learners:* LACP (Link Aggregation Control Protocol) is an open-standard protocol (IEEE 802.3ad) for negotiating EtherChannel formation. `mode active` actively attempts to form a channel, while `mode passive` passively waits.
* For each Port-Channel bundle (e.g., for DSW-R4 to ASW-1 - Po40):
1. Configure Physical Member Interfaces (Layer 2 for Bundling):
* Go to interface range configuration mode (e.g., `conf t` then `interface range FastEthernet0/1 - 2`).
* Add the interfaces to the channel-group: `channel-group <ID> mode active` (replace `<ID>` with the correct Port-Channel ID like `40`).
* Activate the interfaces: `no shutdown`
* *Note:* These individual physical interfaces remain Layer 2 switchports and will NOT have `no switchport` or an IP address directly configured on them. They solely serve to aggregate into the logical Port-Channel.
2. Configure the Logical Port-Channel Interface (Layer 2 Trunking):
* Exit interface range mode.
* Navigate to the Port-Channel interface: `interface Port-channel <ID>` (e.g., `interface Port-channel 40`).
* Set the Port-Channel to trunking mode: `switchport mode trunk`
* Activate the Port-Channel: `no shutdown`
* *Important:* No `no switchport` or `ip address` will be configured here.
```
```
Explanation for Learners:* The Access Switches (2960s) operate purely at Layer 2. Their uplinks to the Distribution Layer must be configured as Layer 2 Trunking EtherChannels to carry VLAN traffic from end devices up to the DSWs for routing. `ip routing` will NOT be enabled on these switches.
* Crucial Pointer for Channel-Group IDs on 2960s: In Packet Tracer, 2960 switches typically support channel-group IDs only within the range of 1-6. Therefore, we will use Port-channel 1 for the PAgP uplink and Port-channel 2 for the LACP uplink on each Access Switch. The channel-group ID does not need to match on both ends of the EtherChannel (DSW and ASW).
* For ASW's Port-Channels connecting to DSW-R3 (using PAgP):
* *This will be `Port-channel 1` on each ASW (ASW-1, ASW-2, ASW-3, ASW-4).*
* *Explanation for Learners:* Since DSW-R3 is configured with `mode desirable` for PAgP, the ASW side should be configured with `mode auto` to passively respond and form the EtherChannel.
* For each ASW (e.g., ASW-1 to DSW-R3):
1. Configure Physical Member Interfaces (Layer 2 for Bundling):
* Go to interface range configuration mode (e.g., `conf t` then `interface range FastEthernet0/1 - 2` on `ASW-1`).
* Add the interfaces to the channel-group: `channel-group 1 mode auto`
* Activate the interfaces: `no shutdown`
* *Note:* These individual physical interfaces remain Layer 2 switchports and will NOT have `no switchport` or an IP address directly configured on them. They aggregate into the logical Port-Channel.
2. Configure the Logical Port-Channel Interface (Layer 2 Trunking):
* Exit interface range mode.
* Navigate to the Port-Channel interface: `interface Port-channel 1`
* Set the Port-Channel to trunking mode: `switchport mode trunk`
* Activate the Port-Channel: `no shutdown`
* *Important:* No `no switchport` or `ip address` will be configured here.
* For ASW's Port-Channels connecting to DSW-R4 (using LACP):
* *This will be `Port-channel 2` on each ASW (ASW-1, ASW-2, ASW-3, ASW-4).*
* *Explanation for Learners:* Since DSW-R4 is configured with `mode active` for LACP, the ASW side should be configured with `mode passive` to passively respond and form the EtherChannel.
* For each ASW (e.g., ASW-1 to DSW-R4):
1. Configure Physical Member Interfaces (Layer 2 for Bundling):
* Go to interface range configuration mode (e.g., `conf t` then `interface range FastEthernet0/3 - 4` on `ASW-1`).
* Add the interfaces to the channel-group: `channel-group 2 mode passive`
* Activate the interfaces: `no shutdown`
* *Note:* These individual physical interfaces remain Layer 2 switchports and will NOT have `no switchport` or an IP address directly configured on them. They aggregate into the logical Port-Channel.
2. Configure the Logical Port-Channel Interface (Layer 2 Trunking):
* Exit interface range mode.
* Navigate to the Port-Channel interface: `interface Port-channel 2`
* Set the Port-Channel to trunking mode: `switchport mode trunk`
* Activate the Port-Channel: `no shutdown`
* *Important:* No `no switchport` or `ip address` will be configured here.
```
It's crucial to distinguish between Layer 2-only switches (like the Catalyst 2960s used for our ASWs) and multilayer (Layer 3 capable) switches (like our Catalyst 3560s used for DSWs). This distinction fundamentally impacts how EtherChannels are configured and whether IP addresses can be assigned directly to bundled interfaces.
Scenario A: Layer 2 Access Switches (Our Current Lab Design with 2960s)
As configured in this lab (Steps 8.d and 8.f), when your Access Switches are Layer 2-only (2960s):
ip routing is NOT enabled on the ASWs.switchport mode trunk).Scenario B: Multilayer Access Switches (Hypothetical for Learning Contrast)
If the Access Switches (ASWs) in your topology were also multilayer switches (e.g., Cisco Catalyst 3560s or higher models capable of Layer 3 routing), you would configure their uplinks to the Distribution Layer as Layer 3 Routed EtherChannels. This would involve:
ip routing on the ASWs in global configuration mode:
ASW(config)# ip routing
ASW(config)# interface Port-channel <ID>
ASW(config-if)# no switchport
ASW(config-if)# ip address <address> <subnet-mask>
ASW(config-if)# no shutdown
/30 networks we initially discussed for these links) would be assigned to both ends of the Port-Channel. The VLAN SVIs could then potentially be placed on the ASWs themselves (if they were routing locally), or routing would occur directly on the L3 EtherChannel.This lab explicitly uses 2960s at the Access Layer to demonstrate the common Layer 2-only Access / Layer 3 Distribution design pattern, which relies on the DSWs for all inter-VLAN routing via SVIs.
If you did configure the the Distribution Switches Port-Channel interfaces with IP address. Yes, you must remove the IP addresses from the Port-channel interfaces (Port-channel 30-33 on DSW-R3 and Port-channel 40-43 on DSW-R4) before converting them to Layer 2 trunks. Leaving the IP addresses on a Port-channel that is intended to be a Layer 2 trunk would cause a conflict and prevent the trunk from forming correctly, as it would still be trying to act as a Layer 3 interface. Here's how you would correct the configuration on DSW-R3 and DSW-R4 for those specific Port-Channels: For DSW-R3's Port-Channels (Po30-33) and DSW-R4's Port-Channels (Po40-43):
Access the Port-Channel Interface: DSW-R3(config)# interface Port-channel 30
(Repeat for Po31, Po32, Po33 on DSW-R3, and Po40, Po41, Po42, Po43 on DSW-R4)
Remove the IP Address: DSW-R3(config-if)# no ip address
Explanation for Learners: This command removes any previously configured IP address from the interface, ensuring it no longer attempts to function as a Layer 3 routed port.
Ensure it's a switchport (if no switchport was applied): DSW-R3(config-if)# switchport
Explanation for Learners: If you previously applied no switchport to the logical Port-Channel interface, this command reverts it to a Layer 2 switchport, which is necessary for it to operate as a trunk.
Set the Port-Channel to Trunking Encapsulation: DSW-R3(config-if)# switchport trunk encapsulation dot1q
Set the Port-Channel to Trunking Mode: DSW-R3(config-if)# switchport mode trunk
Explanation for Learners: This command explicitly configures the Port-Channel to operate as a trunk, allowing it to carry traffic for multiple VLANs between the Distribution and Access layers.
Exit Interface Configuration: DSW-R3(config-if)# exit
You would perform these steps for all the Port-Channels connecting the DSWs to the ASWs. This ensures they are properly configured as Layer 2 trunks, aligning with the 2960's capabilities.
Purpose: Before you can assign interfaces to a VLAN or create a Switched Virtual Interface (SVI) for a VLAN, the VLAN itself must exist in the switch's VLAN database.
Action: Go to global configuration mode (conf t) on ALL of your Distribution Switches (DSW-R3, DSW-R4) and ALL of your Access Switches (ASW-1, ASW-2, ASW-3, ASW-4). Create VLANs 10, 20, and 99 with their respective names:
Switch# configure terminal
Switch(config)# vlan 10
Switch(config-vlan)# name Sales
Switch(config-vlan)# exit
Switch(config)# vlan 20
Switch(config-vlan)# name HR
Switch(config-vlan)# exit
Switch(config)# vlan 99
Switch(config-vlan)# name Management
Switch(config-vlan)# exit
G. Configure Access Layer Switches (ASW-1 to ASW-4) - Access Ports for End Devices:
Explanation for Learners: These ports connect directly to end-user devices (PCs, Servers) and are assigned to a specific VLAN. They do not carry traffic for multiple VLANs (unlike trunk ports). This step assigns the ports to the VLANs you just created.
Action: For each ASW, identify the FastEthernet ports connected to PCs and the Server. Go to interface configuration mode for each port (e.g., interface FastEthernet0/5). Set the port to access mode: switchport mode access. Assign the port to its respective VLAN: switchport access vlan <VLAN_ID>. Activate the interface: no shutdown.
ASW-1:
interface FastEthernet0/5: switchport access vlan 10 (for PC1)interface FastEthernet0/6: switchport access vlan 20 (for PC4)ASW-2:
interface FastEthernet0/5: switchport access vlan 10 (for PC2)interface FastEthernet0/6: switchport access vlan 20 (for PC5)ASW-3:
interface FastEthernet0/5: switchport access vlan 10 (for PC3)interface FastEthernet0/6: switchport access vlan 99 (for PC7)ASW-4:
interface FastEthernet0/5: switchport access vlan 20 (for PC6)interface FastEthernet0/6: switchport access vlan 99 (for PC8)interface FastEthernet0/7: switchport access vlan 99 (for Server1)DSW-R3 VLAN SVIs & HSRP:
VLAN 10 (Sales): 192.168.10.1 (Active for 10)
HSRP Virtual IP: 192.168.10.254
VLAN 20 (HR): 192.168.20.1 (Standby for 20)
HSRP Virtual IP: 192.168.20.254
VLAN 99 (Management): 192.168.99.1 (Active for 99)
HSRP Virtual IP: 192.168.99.254
Note for DSW-R4:
DSW-R4 VLAN SVIs & HSRP:
VLAN 10 (Sales): 192.168.10.2 (Standby for 10)
HSRP Virtual IP: 192.168.10.254
VLAN 20 (HR): 192.168.20.2 (Active for 20)
HSRP Virtual IP: 192.168.20.254
VLAN 99 (Management): 192.168.99.2 (Standby for 99)
HSRP Virtual IP: 192.168.99.254
* For SW1-SW4, Server1 management IPs (e.g., `192.168.99.3` for SW1, `192.168.99.4` for SW2, etc., and `192.168.99.10` for Server1).
Understanding Hot Standby Router Protocol (HSRP):
DSW-R3 and DSW-R4 both have SVIs for VLANs 10, 20, and 99. HSRP will allow us to make 192.168.X.254 the default gateway for PCs and Server, providing seamless failover between DSW-R3 and DSW-R4 if one path or device becomes unavailable.Action for VLAN SVIs and HSRP Configuration: For each VLAN (10, 20, 99):
interface Vlan 10).ip address <address> <subnet-mask>.no shutdown.DSW-R3 as active for VLANs 10 and 99, and DSW-R4 as active for VLAN 20, for basic load balancing. We'll use the VLAN ID as the HSRP group number for clarity.Configuration on DSW-R3 (Active for VLANs 10 & 99, Standby for VLAN 20):
DSW-R3(config)# interface Vlan10
DSW-R3(config-if)# ip address 192.168.10.1 255.255.255.0
DSW-R3(config-if)# standby 10 ip 192.168.10.254
DSW-R3(config-if)# standby 10 priority 110
DSW-R3(config-if)# standby 10 preempt
DSW-R3(config-if)# standby 10 authentication text CiscoPW ! Optional, but good practice
DSW-R3(config-if)# no shutdown
DSW-R3(config-if)# exit
DSW-R3(config)# interface Vlan20
DSW-R3(config-if)# ip address 192.168.20.1 255.255.255.0
DSW-R3(config-if)# standby 20 ip 192.168.20.254
DSW-R3(config-if)# standby 20 authentication text CiscoPW ! Optional, but good practice
DSW-R3(config-if)# no shutdown
DSW-R3(config-if)# exit
DSW-R3(config)# interface Vlan99
DSW-R3(config-if)# ip address 192.168.99.1 255.255.255.0
DSW-R3(config-if)# standby 99 ip 192.168.99.254
DSW-R3(config-if)# standby 99 priority 110
DSW-R3(config-if)# standby 99 preempt
DSW-R3(config-if)# standby 99 authentication text CiscoPW ! Optional, but good practice
DSW-R3(config-if)# no shutdown
DSW-R3(config-if)# exit
Configuration on DSW-R4 (Active for VLAN 20, Standby for VLANs 10 & 99):
DSW-R4(config)# interface Vlan10
DSW-R4(config-if)# ip address 192.168.10.2 255.255.255.0
DSW-R4(config-if)# standby 10 ip 192.168.10.254
DSW-R4(config-if)# standby 10 authentication text CiscoPW ! Optional, but good practice
DSW-R4(config-if)# no shutdown
DSW-R4(config-if)# exit
DSW-R4(config)# interface Vlan20
DSW-R4(config-if)# ip address 192.168.20.2 255.255.255.0
DSW-R4(config-if)# standby 20 ip 192.168.20.254
DSW-R4(config-if)# standby 20 priority 110
DSW-R4(config-if)# standby 20 preempt
DSW-R4(config-if)# standby 20 authentication text CiscoPW ! Optional, but good practice
DSW-R4(config-if)# no shutdown
DSW-R4(config-if)# exit
DSW-R4(config)# interface Vlan99
DSW-R4(config-if)# ip address 192.168.99.2 255.255.255.0
DSW-R4(config-if)# standby 99 ip 192.168.99.254
DSW-R4(config-if)# standby 99 authentication text CiscoPW ! Optional, but good practice
DSW-R4(config-if)# no shutdown
DSW-R4(config-if)# exit
Action: For each PC and the Server, go to its Desktop tab -> IP Configuration.
Configure the Static IP Address, Subnet Mask (255.255.255.0 for /24), and Default Gateway according to the scheme below:
192.168.10.10, DG: 192.168.10.254192.168.10.11, DG: 192.168.10.254192.168.10.12, DG: 192.168.10.254192.168.20.10, DG: 192.168.20.254192.168.20.11, DG: 192.168.20.254192.168.20.12, DG: 192.168.20.254192.168.99.11, DG: 192.168.99.254192.168.99.12, DG: 192.168.99.254192.168.99.10, DG: 192.168.99.254Important Note for Learners: Verify Layer 2 Connectivity!
Before proceeding to configure Layer 3 routing, it is crucial to verify that your Layer 2 VLAN segmentation is working as expected. This test confirms that devices within the same VLAN can communicate, and devices in different VLANs (on the same or different Access Switches) cannot yet communicate.
How to Test:
Ping PCs within the SAME VLAN:
PC1 (VLAN 10), try to ping PC2 (VLAN 10) and PC3 (VLAN 10).PC4 (VLAN 20), try to ping PC5 (VLAN 20) and PC6 (VLAN 20).PC7 (VLAN 99), try to ping PC8 (VLAN 99) and Server1 (VLAN 99).Attempt to Ping PCs between DIFFERENT VLANs:
PC1 (VLAN 10), try to ping PC4 (VLAN 20) or PC7 (VLAN 99).PC4 (VLAN 20), try to ping PC1 (VLAN 10) or PC7 (VLAN 99).If your tests match these expected results, you have successfully completed the Layer 2 configuration and are ready to move on to the next phase: configuring Layer 3 routing.
This section will guide you through enabling IP routing on your Distribution Layer switches and configuring OSPF across all your Layer 3 devices (Core Routers and Distribution Switches). We will operate all internal OSPF routing within a single Area 0 for simplicity in this lab.
Goal: Allow all VLANs to communicate with each other and for all internal devices to learn routes to each other.
9.1 Enable IP Routing on Distribution Switches
By default, Cisco multilayer switches act primarily as Layer 2 devices. To enable their Layer 3 routing capabilities (which is necessary for SVIs to function as gateways and to participate in routing protocols), you must explicitly enable IP routing.
Action: Go to global configuration mode (conf t) on DSW-R3 and DSW-R4.
On DSW-R3 and DSW-R4:
Switch(config)# ip routing
As per our finalized IP Addressing Scheme (Section 1.4), the physical interfaces between your Distribution Switches (DSW-R3 and DSW-R4) and between the Distribution and Core Layers were already configured with their IP addresses and set as Layer 3 routed ports.
Action: For these interfaces, simply ensure they are in no switchport mode and are no shutdown. (You would have already applied the ip address commands during the initial setup in Section 1.4).
On DSW-R3:
DSW-R3(config)# interface FastEthernet0/9
DSW-R3(config-if)# no switchport ! Confirm no switchport is applied
DSW-R3(config-if)# no shutdown
DSW-R3(config-if)# exit
DSW-R3(config)# interface FastEthernet0/10
DSW-R3(config-if)# no switchport ! Confirm no switchport is applied
DSW-R3(config-if)# no shutdown
DSW-R3(config-if)# exit
DSW-R3(config)# interface GigabitEthernet0/1
DSW-R3(config-if)# no switchport ! Confirm no switchport is applied
DSW-R3(config-if)# no shutdown
DSW-R3(config-if)# exit
DSW-R3(config)# interface GigabitEthernet0/2
DSW-R3(config-if)# no switchport ! Confirm no switchport is applied
DSW-R3(config-if)# no shutdown
DSW-R3(config-if)# exit
On DSW-R4:
DSW-R4(config)# interface FastEthernet0/9
DSW-R4(config-if)# no switchport ! Confirm no switchport is applied
DSW-R4(config-if)# no shutdown
DSW-R4(config-if)# exit
DSW-R4(config)# interface FastEthernet0/10
DSW-R4(config-if)# no switchport ! Confirm no switchport is applied
DSW-R4(config-if)# no shutdown
DSW-R4(config-if)# exit
DSW-R4(config)# interface GigabitEthernet0/1
DSW-R4(config-if)# no switchport ! Confirm no switchport is applied
DSW-R4(config-if)# no shutdown
DSW-R4(config-if)# exit
DSW-R4(config)# interface GigabitEthernet0/2
DSW-R4(config-if)# no switchport ! Confirm no switchport is applied
DSW-R4(config-if)# no shutdown
DSW-R4(config-if)# exit
Now, we will configure OSPF on all Layer 3 devices to allow them to dynamically learn routes to all connected networks, including your VLANs.
A. Global OSPF Configuration:
router ospf 1 command starts the OSPF routing process (where 1 is the process ID, arbitrary but unique per router).router-id command explicitly sets the OSPF Router ID. It's best practice to use the Loopback 0 IP address as defined in Section 1.4.auto-cost reference-bandwidth 1000 sets the reference bandwidth for OSPF cost calculation. For Gigabit Ethernet links, this should be set to 1000 (meaning 1000 Mbps). Ensure this is configured on all OSPF-enabled devices for consistent cost calculation.On R1 (core-r1), R2 (core-r2), DSW-R3, DSW-R4, and ISP-R1:
Router(config)# router ospf 1
Router(config-router)# router-id <Loopback0_IP_Address_from_Section_1.4> ! e.g., 172.16.1.1 for R1
Router(config-router)# auto-cost reference-bandwidth 1000
Router(config-router)# exit
B. Configure OSPF Networks on Core Routers (R1, R2, ISP-R1):
network command specifies the networks to include in OSPF, along with their wildcard masks and the area ID. We are using area 0 for all internal routing.On R1 (core-r1):
R1(config)# router ospf 1
R1(config-router)# network 172.16.1.1 0.0.0.0 area 0 ! Loopback0
R1(config-router)# network 10.0.0.0 0.0.0.3 area 0 ! R1-R2 Link 1
R1(config-router)# network 10.0.0.4 0.0.0.3 area 0 ! R1-R2 Link 2
R1(config-router)# network 10.0.1.0 0.0.0.3 area 0 ! R1-DSW-R3 link
R1(config-router)# network 10.0.1.4 0.0.0.3 area 0 ! R1-DSW-R4 link
R1(config-router)# network 203.0.113.0 0.0.0.3 area 0 ! R1-ISP-R1 link (Gi0/0)
R1(config-router)# exit
On R2 (core-r2):
R2(config)# router ospf 1
R2(config-router)# network 172.16.2.1 0.0.0.0 area 0 ! Loopback0
R2(config-router)# network 10.0.0.0 0.0.0.3 area 0 ! R2-R1 Link 1
R2(config-router)# network 10.0.0.4 0.0.0.3 area 0 ! R2-R1 Link 2
R2(config-router)# network 10.0.1.8 0.0.0.3 area 0 ! R2-DSW-R3 link
R2(config-router)# network 10.0.1.12 0.0.0.3 area 0 ! R2-DSW-R4 link
R2(config-router)# network 203.0.113.4 0.0.0.3 area 0 ! R2-ISP-R1 link (Gi0/0 on R2)
R2(config-router)# exit
On ISP-R1:
ISP-R1, we'll include its loopback and the links to R1 and R2. If you later configure it to simulate an Internet gateway, you'd add default routes or external routing.ISP-R1(config)# router ospf 1
ISP-R1(config-router)# network 172.16.6.1 0.0.0.0 area 0 ! Loopback0
ISP-R1(config-router)# network 203.0.113.0 0.0.0.3 area 0 ! ISP-R1-R1 link (Gi1/0)
ISP-R1(config-router)# network 203.0.113.4 0.0.0.3 area 0 ! ISP-R1-R2 link (Gi2/0)
ISP-R1(config-router)# exit
C. Configure OSPF Networks on Distribution Switches (DSW-R3, DSW-R4):
passive-interface. This prevents OSPF hello packets from being sent into your end-user VLANs, which is a security and efficiency best practice.On DSW-R3:
DSW-R3(config)# router ospf 1
DSW-R3(config-router)# network 172.16.3.1 0.0.0.0 area 0 ! Loopback0
DSW-R3(config-router)# network 10.0.1.0 0.0.0.3 area 0 ! DSW-R3 to R1 Core
DSW-R3(config-router)# network 10.0.1.8 0.0.0.3 area 0 ! DSW-R3 to R2 Core
DSW-R3(config-router)# network 10.0.3.0 0.0.0.3 area 0 ! DSW-DSW Interconnect (Fa0/9)
DSW-R3(config-router)# network 10.0.3.4 0.0.0.3 area 0 ! DSW-DSW Backup (Fa0/10)
DSW-R3(config-router)# network 192.168.10.0 0.0.0.255 area 0 ! VLAN 10 (Sales)
DSW-R3(config-router)# network 192.168.20.0 0.0.0.255 area 0 ! VLAN 20 (HR)
DSW-R3(config-router)# network 192.168.99.0 0.0.0.255 area 0 ! VLAN 99 (Management)
DSW-R3(config-router)# passive-interface Vlan10
DSW-R3(config-router)# passive-interface Vlan20
DSW-R3(config-router)# passive-interface Vlan99
DSW-R3(config-router)# exit
On DSW-R4:
DSW-R4(config)# router ospf 1
DSW-R4(config-router)# network 172.16.4.1 0.0.0.0 area 0 ! Loopback0
DSW-R4(config-router)# network 10.0.1.4 0.0.0.3 area 0 ! DSW-R4 to R1 Core
DSW-R4(config-router)# network 10.0.1.12 0.0.0.3 area 0 ! DSW-R4 to R2 Core
DSW-R4(config-router)# network 10.0.3.0 0.0.0.3 area 0 ! DSW-DSW Interconnect (Fa0/9)
DSW-R4(config-router)# network 10.0.3.4 0.0.0.3 area 0 ! DSW-DSW Backup (Fa0/10)
DSW-R4(config-router)# network 192.168.10.0 0.0.0.255 area 0 ! VLAN 10 (Sales)
DSW-R4(config-router)# network 192.168.20.0 0.0.0.255 area 0 ! VLAN 20 (HR)
DSW-R4(config-router)# network 192.168.99.0 0.0.0.255 area 0 ! VLAN 99 (Management)
DSW-R4(config-router)# passive-interface Vlan10
DSW-R4(config-router)# passive-interface Vlan20
DSW-R4(config-router)# passive-interface Vlan99
DSW-R4(config-router)# exit
After configuring OSPF, verify that adjacency is established and routes are learned.
Check OSPF Neighbor Adjacencies:
R1, R2, DSW-R3, DSW-R4, ISP-R1:
Router# show ip ospf neighbor
Check OSPF Database:
R1 or DSW-R3):
Router# show ip ospf database
Check Routing Table:
R1 or DSW-R3):
Router# show ip route ospf
Test End-to-End Connectivity:
PC1 in VLAN 10), try to ping a PC in a different VLAN (e.g., PC4 in VLAN 20, or PC7 in VLAN 99).ping 172.16.1.1 from a PC).Goal: Confirm that HSRP is providing resilient first-hop redundancy for your VLANs by verifying its initial state and then observing its failover capabilities.
10.1 Verify HSRP Initial State
First, let's check the current HSRP state on both DSW-R3 and DSW-R4 to confirm they are in their intended Active/Standby roles.
Action: On DSW-R3 and DSW-R4, go to privileged EXEC mode and use the show standby or show standby brief command. The brief option provides a concise summary, which is often sufficient for a quick check.
On DSW-R3 and DSW-R4:
Switch# show standby brief
Expected Output:
DSW-R3 should show its state as Active.DSW-R4 should show its state as Standby.DSW-R4 should show its state as Active.DSW-R3 should show its state as Standby.192.168.X.254.110 for the Active router and 100 for the Standby router.standby preempt command you configured.10.2 Test HSRP Failover (Scenario 1: Primary Active SVI Failure)
This test simulates a failure on the currently Active HSRP router for a specific VLAN. Since your Packet Tracer does not support standby track, we'll simulate the most direct form of failure affecting HSRP: the SVI itself going down.
Scenario: We will test failover for VLAN 10, where DSW-R3 is initially Active.
Action:
On a PC in VLAN 10 (e.g., PC1):
traceroute to a destination beyond your local VLAN, such as a Core router's Loopback IP (e.g., traceroute 172.16.1.1).traceroute output should be 192.168.10.1 (the IP address of DSW-R3's VLAN 10 SVI). This confirms DSW-R3 is the active gateway.On DSW-R3: Go to interface configuration mode for Vlan10 and shut it down. This simulates a critical failure of that SVI.
DSW-R3(config)# interface Vlan10
DSW-R3(config-if)# shutdown
Observe: Immediately check the console of DSW-R4. You should see syslog messages indicating HSRP state changes, specifically DSW-R4 transitioning to the Active state for VLAN 10.
Verify New State:
DSW-R3: Run show standby brief for Vlan10. It should now show Vlan10 as Init or Disabled.DSW-R4: Run show standby brief for Vlan10. It should now clearly show Vlan10 as Active.Test Connectivity & Path Change:
PC1), try to ping a PC in a different VLAN (e.g., PC4 in VLAN 20) or the Core router loopback (e.g., 172.16.1.1).traceroute to the same destination (e.g., traceroute 172.16.1.1).traceroute output should now be 192.168.10.2 (the IP address of DSW-R4's VLAN 10 SVI). This vividly demonstrates that DSW-R4 has taken over the active gateway role.Action (Restore Primary):
DSW-R3: Re-enable Vlan10 by bringing the interface back up.
DSW-R3(config)# interface Vlan10
DSW-R3(config-if)# no shutdown
DSW-R3 (due to its higher priority and the preempt command) should quickly regain the Active role for VLAN 10.DSW-R3: show standby brief for Vlan10 should show Active.DSW-R4: show standby brief for Vlan10 should show Standby.PC1, perform a final traceroute to 172.16.1.1. The first hop should revert back to 192.168.10.1.PC1 to other VLANs/Core is still working.10.3 Test HSRP Failover (Scenario 2: Primary Standby SVI Failure)
This test ensures that if the Standby router's SVI fails, it simply goes offline without affecting the Active router's role, and no unwanted failover occurs.
Scenario: We will test failover for VLAN 20, where DSW-R4 is initially Active and DSW-R3 is Standby.
Action:
DSW-R3: Go to interface configuration mode for Vlan20 and shut it down.
DSW-R3(config)# interface Vlan20
DSW-R3(config-if)# shutdown
DSW-R4. There should be no change in DSW-R4's HSRP state for VLAN 20 (it should remain Active).DSW-R4: show standby brief for Vlan20 should still show Active.DSW-R3: show standby brief for Vlan20 should show Init or Disabled.PC4), ping a PC in a different VLAN or a Core router loopback.
Action (Restore Standby):
DSW-R3: Re-enable Vlan20.
DSW-R3(config)# interface Vlan20
DSW-R3(config-if)# no shutdown
DSW-R3 should quickly return to the Standby state for VLAN 20.Goal: To enhance network security by controlling communication between VLANs and limiting management access to network devices.
11.1 Introduction to Access Control Lists (ACLs)
ACLs are ordered sets of rules that control network traffic. They work by filtering packets based on criteria such as source IP address, destination IP address, protocol, port numbers, and more.
deny any statement at the very end. This means if a packet does not match any permit statement in the ACL, it will be dropped. This is why it's crucial to explicitly permit any traffic you do want to allow, especially after deny statements.This is a common security requirement: preventing direct communication between specific departments while allowing others to function normally.
Goal: PCs in VLAN 20 (HR) should NOT be able to communicate with PCs in VLAN 10 (Sales) for common services like web (HTTP/HTTPS), FTP, Telnet, SSH, and basic ping (ICMP). All other inter-VLAN communication (e.g., HR to Management, Sales to Management, Sales to HR) should remain permitted.
ACL Type: Named Extended ACL.
Placement: We will apply this ACL inbound on the Vlan20 interface of both DSW-R3 and DSW-R4. Traffic originating from VLAN 20 attempting to reach other VLANs enters the DSWs via this SVI. Applying it here ensures filtering happens early.
ACL Name: NO_HR_TO_SALES
Action: Configure the named extended ACL on DSW-R3 and DSW-R4.
On DSW-R3:
DSW-R3(config)# ip access-list extended NO_HR_TO_SALES
DSW-R3(config-ext-nacl)# deny icmp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 ! Deny Ping
DSW-R3(config-ext-nacl)# deny tcp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 eq www ! Deny HTTP (Port 80)
DSW-R3(config-ext-nacl)# deny tcp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 eq 443 ! Deny HTTPS (Port 443)
DSW-R3(config-ext-nacl)# deny tcp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 eq ftp ! Deny FTP Control (Port 21)
DSW-R3(config-ext-nacl)# deny tcp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 eq ftp-data ! Deny FTP Data (Port 20)
DSW-R3(config-ext-nacl)# deny tcp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 eq telnet ! Deny Telnet (Port 23)
DSW-R3(config-ext-nacl)# deny tcp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 eq ssh ! Deny SSH (Port 22)
DSW-R3(config-ext-nacl)# deny ip 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 ! Deny any other IP traffic from HR to Sales
DSW-R3(config-ext-nacl)# permit ip any any ! Explicitly permit all other traffic
DSW-R3(config-ext-nacl)# exit
DSW-R3(config)# interface Vlan20
DSW-R3(config-if)# ip access-group NO_HR_TO_SALES in ! Apply the ACL inbound on Vlan20
DSW-R3(config-if)# exit
On DSW-R4:
DSW-R4(config)# ip access-list extended NO_HR_TO_SALES
DSW-R4(config-ext-nacl)# deny icmp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 ! Deny Ping
DSW-R4(config-ext-nacl)# deny tcp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 eq www ! Deny HTTP (Port 80)
DSW-R4(config-ext-nacl)# deny tcp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 eq 443 ! Deny HTTPS (Port 443)
DSW-R4(config-ext-nacl)# deny tcp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 eq ftp ! Deny FTP Control (Port 21)
DSW-R4(config-ext-nacl)# deny tcp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 eq ftp-data ! Deny FTP Data (Port 20)
DSW-R4(config-ext-nacl)# deny tcp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 eq telnet ! Deny Telnet (Port 23)
DSW-R4(config-ext-nacl)# deny tcp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 eq ssh ! Deny SSH (Port 22)
DSW-R4(config-ext-nacl)# deny ip 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 ! Deny any other IP traffic from HR to Sales
DSW-R4(config-ext-nacl)# permit ip any any ! Explicitly permit all other traffic
DSW-R4(config-ext-nacl)# exit
DSW-R4(config)# interface Vlan20
DSW-R4(config-if)# ip access-group NO_HR_TO_SALES in ! Apply the ACL inbound on Vlan20
DSW-R4(config-if)# exit
Verification for Scenario 1 (Revised):
PC4 (VLAN 20) to PC1 (VLAN 10):
ping 192.168.10.10 (PC1).deny icmp).PC1 (VLAN 10) to PC4 (VLAN 20):
192.168.20.10 (PC4).PC4 (VLAN 20) to PC7 (VLAN 99):
192.168.99.11 (PC7).Important Observation for Ping from Sales (VLAN 10) to HR (VLAN 20):
When PC1 (VLAN 10) attempts to ping PC4 (VLAN 20), you will observe a "Request timed out" message. Your suspicion is correct: this is because the ACL on Vlan20 is blocking the ICMP Echo Reply packet from PC4 back to PC1.
Even though the rule deny icmp 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255 is intended to prevent traffic from HR to Sales, it also matches the return traffic (source: VLAN 20, destination: VLAN 10, protocol: ICMP). This highlights a critical aspect of ACL placement: an in ACL on an interface filters all traffic entering that interface, including return traffic from hosts in that segment.
11.3 Scenario 2: Limit Telnet/SSH Access to Management VLAN (VLAN 99)
This scenario ensures that only authorized devices (those in the management VLAN) can remotely access your network devices for configuration.
Goal: Only devices in VLAN 99 (network 192.168.99.0/24) should be able to Telnet or SSH to the Core Routers (R1, R2, ISP-R1) and Distribution Switches (DSW-R3, DSW-R4).
ACL Type: Named Standard ACL, as we only need to filter based on the source IP address.
Placement: Applied inbound to the vty (Virtual Terminal) lines on each device.
ACL Name: MGMT_ACCESS
Action: Configure the named standard ACL and apply it to the VTY lines on each specified device.
On DSW-R3, DSW-R4, R1, R2, and ISP-R1:
Router(config)# ip access-list standard MGMT_ACCESS
Router(config-std-nacl)# permit 192.168.99.0 0.0.0.255 ! Permit devices from Management VLAN
Router(config-std-nacl)# exit
Router(config)# line vty 0 15 ! Apply to all virtual terminal lines
Router(config-line)# access-class MGMT_ACCESS in ! Apply the ACL inbound
Router(config-line)# login local ! Ensure local authentication is configured
Router(config-line)# transport input telnet ssh ! Allow both Telnet and SSH (or specific if preferred)
Router(config-line)# exit
login local to work (e.g., username admin privilege 15 secret cisco).Verification for Scenario 2:
PC7 (VLAN 99):
telnet 172.16.1.1 (R1's Loopback0) or telnet 172.16.3.1 (DSW-R3's Loopback0).PC1 (VLAN 10) or PC4 (VLAN 20):
telnet 172.16.1.1 or telnet 172.16.3.1.11.4 General ACL Verification Commands:
Use these commands to inspect your ACLs and their application:
show ip access-lists: Shows all configured IP ACLs.show running-config | section access-list: Shows ACLs from the running configuration.show running-config | include access-group: Shows where access-group commands are applied on interfaces.show running-config | section line vty: Shows ACL application on VTY lines.Goal: To allow hosts in your internal private VLANs (192.168.10.0/24, 192.168.20.0/24, 192.168.99.0/24) to communicate with the simulated external network (represented by ISP-R1's Loopback0 172.16.6.1). We will use Dynamic NAT with Port Address Translation (PAT), also known as "overload," which allows many private IP addresses to share a single public IP address.
Mechanism:
When an internal host initiates traffic to an external destination, the NAT router (R1 or R2 in this case) will:
Key Steps:
Identify Inside and Outside Interfaces:
R1: GigabitEthernet0/0 (IP: 203.0.113.1)R2: GigabitEthernet0/0 (IP: 203.0.113.5)R1: GigabitEthernet1/0 (to R2), GigabitEthernet3/0 (to DSW-R3), GigabitEthernet4/0 (to DSW-R4), Loopback0R2: GigabitEthernet1/0 (to R1), GigabitEthernet3/0 (to DSW-R3), GigabitEthernet4/0 (to DSW-R4), Loopback0Define "Interesting" Traffic with a Standard ACL:
Configure Dynamic PAT (Overload):
12.1 Configure NAT on R1
Action: First, define the inside/outside interfaces, then create the ACL, and finally link them together for PAT.
On R1:
R1(config)# interface GigabitEthernet0/0
R1(config-if)# ip nat outside
R1(config-if)# exit
R1(config)# interface GigabitEthernet1/0
R1(config-if)# ip nat inside
R1(config-if)# exit
R1(config)# interface GigabitEthernet3/0
R1(config-if)# ip nat inside
R1(config-if)# exit
R1(config)# interface GigabitEthernet4/0
R1(config-if)# ip nat inside
R1(config-if)# exit
R1(config)# interface Loopback0
R1(config-if)# ip nat inside
R1(config-if)# exit
R1(config)# ip access-list standard NAT_INTERNAL_TRAFFIC
R1(config-std-nacl)# permit 192.168.10.0 0.0.0.255 ! Sales VLAN
R1(config-std-nacl)# permit 192.168.20.0 0.0.0.255 ! HR VLAN
R1(config-std-nacl)# permit 192.168.99.0 0.0.0.255 ! Management VLAN
R1(config-std-nacl)# exit
R1(config)# ip nat inside source list NAT_INTERNAL_TRAFFIC interface GigabitEthernet0/0 overload
12.2 Configure NAT on R2
Action: Repeat the configuration steps for R2.
On R2:
R2(config)# interface GigabitEthernet0/0
R2(config-if)# ip nat outside
R2(config-if)# exit
R2(config)# interface GigabitEthernet1/0
R2(config-if)# ip nat inside
R2(config-if)# exit
R2(config)# interface GigabitEthernet3/0
R2(config-if)# ip nat inside
R2(config-if)# exit
R2(config)# interface GigabitEthernet4/0
R2(config-if)# ip nat inside
R2(config-if)# exit
R2(config)# interface Loopback0
R2(config-if)# ip nat inside
R2(config-if)# exit
R2(config)# ip access-list standard NAT_INTERNAL_TRAFFIC
R2(config-std-nacl)# permit 192.168.10.0 0.0.0.255 ! Sales VLAN
R2(config-std-nacl)# permit 192.168.20.0 0.0.0.255 ! HR VLAN
R2(config-std-nacl)# permit 192.168.99.0 0.0.0.255 ! Management VLAN
R2(config-std-nacl)# exit
R2(config)# ip nat inside source list NAT_INTERNAL_TRAFFIC interface GigabitEthernet0/0 overload
12.3 Verify NAT Functionality
Now, let's confirm that NAT is correctly translating your private IP addresses. We'll use ISP-R1's Loopback0 (172.16.6.1) as our "Internet" destination.
PC1 in VLAN 10):
172.16.6.1.R1 or R2 (the router that PC1's traffic egresses through, which will depend on OSPF routing):
Router# show ip nat translations
Router# show ip nat statistics
Expected Observation (show ip nat translations): You should see an entry showing your PC's private IP address (192.168.10.10) being translated to the public IP address of R1's or R2's GigabitEthernet0/0 interface (e.g., 203.0.113.1 or 203.0.113.5) with a unique port number.
Expected Observation (show ip nat statistics): This command will show the number of active translations, hits, misses, and other relevant NAT statistics.
Goal: To improve the responsiveness, security, and stability of your access layer by configuring PortFast, BPDU Guard, Root Guard, and Loop Guard on your Access Switches (SW1 to SW4).
13.1 Understanding Enhanced STP Features
To ensure your Layer 2 network is stable, secure, and responsive, it's essential to configure several enhancements to Spanning Tree Protocol (STP).
PortFast:
BPDU Guard:
err-disabled state).Root Guard:
root-inconsistent (blocking) state.Fa0/5-24) that connect to end devices, as you don't want a PC or a rogue hub/switch trying to become the STP root.Loop Guard:
loop-inconsistent (blocking) state, preventing it from transitioning to forwarding and creating a loop.Port-channel10, Port-channel20, etc.) from your Access Switches to the Distribution Switches, where redundant paths exist.13.2 Configure STP Enhancements on Access Switches (SW1 - SW4)
We will apply PortFast and BPDU Guard to your end-device facing ports, and Root Guard and Loop Guard where appropriate for stability.
Action: Go to global configuration mode on each Access Switch (SW1, SW2, SW3, SW4) and apply the commands.
On SW1, SW2, SW3, and SW4:
Configure PortFast, BPDU Guard, and Root Guard (on End-Device Access Ports):
Switch(config)# interface range FastEthernet0/5 - 24
Switch(config-if-range)# spanning-tree portfast ! Enable PortFast
Switch(config-if-range)# spanning-tree bpduguard enable ! Enable BPDU Guard
Switch(config-if-range)# spanning-tree guard root ! Enable Root Guard
Switch(config-if-range)# exit
y or hit Enter.Configure Loop Guard (on Uplink Port-Channels):
SW1: Port-channel1 (to DSW-R3) and Port-channel2 (to DSW-R4)SW2: Port-channel1 (to DSW-R3) and Port-channel2 (to DSW-R4)SW3: Port-channel1 (to DSW-R3) and Port-channel2 (to DSW-R4)SW4: Port-channel1 (to DSW-R3) and Port-channel2 (to DSW-R4)Switch(config)# interface Port-channel1
Switch(config-if)# spanning-tree guard loop
Switch(config-if)# exit
Switch(config)# interface Port-channel2
Switch(config-if)# spanning-tree guard loop
Switch(config-if)# exit
! Repeat for the respective Port-Channels on SW2, SW3, SW4:
! For SW2: Port-channel1, Port-channel2
! For SW3: Port-channel1, Port-channel2
! For SW4: Port-channel1, Port-channel2
Unfortunately Packet tracer does not afford users room to enable loopGuard.
13.3 Verify STP Enhancements
Action: Use show commands to confirm that these features are enabled on your desired interfaces.
On SW1 (or any Access Switch):
Switch# show spanning-tree interface FastEthernet0/5 detail
Switch# show spanning-tree interface Port-channel10 detail
You can also see a summary with:
Switch# show spanning-tree summary totals
Testing err-disabled states (Conceptual/Advanced for Packet Tracer):
BPDU Guard: Connect another switch (that sends BPDUs) to an Fa0/5-24 port. The port should immediately go into an err-disabled state. Check with show interface status err-disabled. To recover, remove the rogue device, then use shutdown followed by no shutdown on the affected interface.Root Guard: This is more complex in Packet Tracer, as it involves configuring another simulated switch with a very low STP priority and connecting it to an Fa0/5-24 port. The port should then enter a root-inconsistent blocking state.Loop Guard: This is very challenging to simulate directly in Packet Tracer as it requires a specific unidirectional link failure scenario. Conceptually, if a Port-channel stopped receiving BPDUs but the line protocol remained up, Loop Guard would prevent it from forwarding and creating a loop.Goal: To configure DSW-R3 and DSW-R4 as DHCP servers for your internal VLANs (Sales, HR, Management), allowing client PCs and other devices to automatically obtain their IP addresses, default gateway, and DNS server information.
Key Concepts for DHCP Server:
Server1 for this, so we'll assign it a static IP first.We will configure identical DHCP pools on both DSW-R3 and DSW-R4 for redundancy.
Here's a breakdown of why this approach (DHCP on DSWs, other services on a dedicated server) is considered a good practice:
DHCP Redundancy and Proximity (DSWs as DHCP Servers):
DSW-R3 and DSW-R4, you achieve DHCP redundancy. Since these are also your HSRP active/standby gateways for each VLAN, if one DSW fails, the other seamlessly takes over both the routing (HSRP) and DHCP server responsibilities. Clients will continue to receive IP addresses without interruption.ip helper-address Needed: Because the router acting as the VLAN's default gateway (the SVI on the DSW) is also the DHCP server for that VLAN, there's no need to configure ip helper-address (DHCP relay) on the SVI. This simplifies the configuration and reduces potential points of failure by not having to forward DHCP requests to another device.Separation of Services and Specialization (DNS, TFTP, NTP, Syslog on Server1):
Server1 in our case) is typically built with more CPU, RAM, and storage than a network device. These resources are better suited for running application-layer services like DNS, TFTP, NTP, and Syslog, which can consume significant resources, especially in larger networks.Security through Segmentation (Management VLAN 99):
Server1 and other management-related devices (like PC5, PC6, PC7 for admin access) within a dedicated VLAN 99 (Management VLAN) is a strong security practice. This allows you to apply strict Access Control Lists (ACLs) to control who can access these sensitive management services, effectively isolating management traffic from general user traffic. (As we've done with ACLs already!)In essence, this design balances the need for high availability and localized responsiveness for fundamental services (like DHCP) with the benefits of centralization, specialization, and robust management for other essential network services. It's a clean, efficient, and resilient architecture.
14.1 Configure Static IP for Server1 (DNS/TFTP/NTP/Syslog Server)
Before setting up DHCP, it's essential to assign a static IP address to your server so that clients can consistently find it. Server1 will reside in VLAN 99 (Management).
Server1 in Packet Tracer.
Server1.Desktop tab.IP Configuration.Static.192.168.99.10255.255.255.0192.168.99.254 (HSRP Virtual IP for VLAN 99)192.168.99.10 (Server1 itself will act as the DNS server later)14.2 Configure DHCP Server on DSW-R3
Action: Go to global configuration mode on DSW-R3.
On DSW-R3:
DSW-R3(config)# ip dhcp excluded-address 192.168.10.254 ! HSRP VIP for VLAN 10
DSW-R3(config)# ip dhcp excluded-address 192.168.20.254 ! HSRP VIP for VLAN 20
DSW-R3(config)# ip dhcp excluded-address 192.168.99.254 ! HSRP VIP for VLAN 99
DSW-R3(config)# ip dhcp excluded-address 192.168.99.10 ! Server1's static IP
DSW-R3(config)# ip dhcp pool SALES_VLAN_POOL
DSW-R3(dhcp-config)# network 192.168.10.0 255.255.255.0
DSW-R3(dhcp-config)# default-router 192.168.10.254
DSW-R3(dhcp-config)# dns-server 192.168.99.10
DSW-R3(dhcp-config)# domain-name MaverickAcademy.com ! Optional: A local domain name
DSW-R3(dhcp-config)# exit
DSW-R3(config)# ip dhcp pool HR_VLAN_POOL
DSW-R3(dhcp-config)# network 192.168.20.0 255.255.255.0
DSW-R3(dhcp-config)# default-router 192.168.20.254
DSW-R3(dhcp-config)# dns-server 192.168.99.10
DSW-R3(dhcp-config)# domain-name MaverickAcademy.com
DSW-R3(dhcp-config)# exit
DSW-R3(config)# ip dhcp pool MANAGEMENT_VLAN_POOL
DSW-R3(dhcp-config)# network 192.168.99.0 255.255.255.0
DSW-R3(dhcp-config)# default-router 192.168.99.254
DSW-R3(dhcp-config)# dns-server 192.168.99.10
DSW-R3(dhcp-config)# domain-name MaverickAcademy.com
DSW-R3(dhcp-config)# exit
14.3 Configure DHCP Server on DSW-R4
Action: Repeat the exact same DHCP configuration steps on DSW-R4 for redundancy.
On DSW-R4:
DSW-R4(config)# ip dhcp excluded-address 192.168.10.254
DSW-R4(config)# ip dhcp excluded-address 192.168.20.254
DSW-R4(config)# ip dhcp excluded-address 192.168.99.254
DSW-R4(config)# ip dhcp excluded-address 192.168.99.10
DSW-R4(config)# ip dhcp pool SALES_VLAN_POOL
DSW-R4(dhcp-config)# network 192.168.10.0 255.255.255.0
DSW-R4(dhcp-config)# default-router 192.168.10.254
DSW-R4(dhcp-config)# dns-server 192.168.99.10
DSW-R4(dhcp-config)# domain-name MaverickAcademy.com
DSW-R4(dhcp-config)# exit
DSW-R4(config)# ip dhcp pool HR_VLAN_POOL
DSW-R4(dhcp-config)# network 192.168.20.0 255.255.255.0
DSW-R4(dhcp-config)# default-router 192.168.20.254
DSW-R4(dhcp-config)# dns-server 192.168.99.10
DSW-R4(dhcp-config)# domain-name MaverickAcademy.com
DSW-R4(dhcp-config)# exit
DSW-R4(config)# ip dhcp pool MANAGEMENT_VLAN_POOL
DSW-R4(dhcp-config)# network 192.168.99.0 255.255.255.0
DSW-R4(dhcp-config)# default-router 192.168.99.254
DSW-R4(dhcp-config)# dns-server 192.168.99.10
DSW-R4(dhcp-config)# domain-name MaverickAcademy.com
DSW-R4(dhcp-config)# exit
14.4 Configure Client PCs for DHCP
PC1 through PC7), switch its IP configuration method to DHCP.
Desktop tab.IP Configuration.DHCP.Static then DHCP again.14.5 Verify DHCP Functionality
Action: Confirm that clients have received IP addresses from the correct pools and check DHCP server statistics.
On any Client PC (e.g., PC1):
Desktop tab, then Command Prompt.ipconfig /allPC1 has an IP address in the 192.168.10.0/24 range, with default gateway 192.168.10.254 and DNS server 192.168.99.10. Repeat for other PCs (PC3 in 192.168.20.0/24, PC5 in 192.168.99.0/24).On DSW-R3 or DSW-R4:
DSW-R3# show ip dhcp binding
DSW-R3# show ip dhcp pool
Goal: To enable the DNS service on Server1 and create a record that resolves maverickacademy.com to Server1's own IP address (192.168.99.10).
Action: Go to Server1 in Packet Tracer and configure its DNS service.
Server1.Services tab.DNS.DNS Service is toggled On.DNS Records, enter the following:
maverickacademy.comA Record (This stands for "Address Record" and maps a domain name to an IPv4 address).192.168.99.10 (This is Server1's static IP address)Add button.15.1 Verify DNS Resolution
Action: From any of your client PCs (e.g., PC1, PC3, PC5), open the Command Prompt and test DNS resolution.
PC1).Desktop tab.Command Prompt.ping maverickacademy.com
192.168.99.10. This confirms that your PCs are correctly querying Server1 for DNS, and Server1 is resolving maverickacademy.com as expected.(Optional verification): You can also use nslookup (if available on the Packet Tracer PC's command line, though ping usually uses DNS first).
nslookup maverickacademy.com
maverickacademy.com as 192.168.99.10.Goal: To configure security features on the access layer switches (SW1, SW2, SW3, SW4) to mitigate common Layer 2 threats and ensure the integrity of your network's IP address and ARP information.
Order of Implementation (Important for Dependencies):
16.1 Configure DHCP Snooping
DHCP Snooping is a Layer 2 security feature that helps prevent rogue DHCP servers from operating on the network and builds a binding table of legitimate IP-MAC address pairs.
Action: Go to global configuration mode on each Access Switch (SW1, SW2, SW3, SW4).
On SW1:
SW1(config)# ip dhcp snooping
SW1(config)# ip dhcp snooping vlan 10,20,99 ! Enable DHCP snooping for all user VLANs
!
! IMPORTANT: In Packet Tracer, 'ip dhcp snooping trust' must be applied to the physical
! interfaces that are part of the EtherChannel, not directly to the Port-Channel interface.
SW1(config)# interface range FastEthernet0/1 - 4 ! Physical interfaces for Po1 (Fa0/1-2) and Po2 (Fa0/3-4)
SW1(config-if-range)# ip dhcp snooping trust
SW1(config-if-range)# exit
!
! All other access ports (Fa0/5-24) are untrusted by default.
! Limit the rate of DHCP messages on untrusted ports to prevent DoS attacks.
SW1(config)# interface range FastEthernet0/5 - 24 ! Assuming these are your user-facing ports
SW1(config-if-range)# ip dhcp snooping limit rate 10 ! Limit to 10 DHCP packets per second
SW1(config-if-range)# exit
On SW2:
SW2(config)# ip dhcp snooping
SW2(config)# ip dhcp snooping vlan 10,20,99
!
SW2(config)# interface range FastEthernet0/1 - 4
SW2(config-if-range)# ip dhcp snooping trust
SW2(config-if-range)# exit
!
SW2(config)# interface range FastEthernet0/5 - 24
SW2(config-if-range)# ip dhcp snooping limit rate 10
SW2(config-if-range)# exit
On SW3:
SW3(config)# ip dhcp snooping
SW3(config)# ip dhcp snooping vlan 10,20,99
!
SW3(config)# interface range FastEthernet0/1 - 4
SW3(config-if-range)# ip dhcp snooping trust
SW3(config-if-range)# exit
!
SW3(config)# interface range FastEthernet0/5 - 24
SW3(config-if-range)# ip dhcp snooping limit rate 10
SW3(config-if-range)# exit
On SW4:
SW4(config)# ip dhcp snooping
SW4(config)# ip dhcp snooping vlan 10,20,99
!
SW4(config)# interface range FastEthernet0/1 - 4
SW4(config-if-range)# ip dhcp snooping trust
SW4(config-if-range)# exit
!
SW4(config)# interface range FastEthernet0/5 - 24
SW4(config-if-range)# ip dhcp snooping limit rate 10
SW4(config-if-range)# exit
16.2 Configure Dynamic ARP Inspection (DAI)
DAI works by intercepting ARP packets on untrusted ports and validating them against the DHCP snooping binding table (or static ARP entries). Invalid ARP packets are dropped.
Action: Go to global configuration mode on each Access Switch (SW1, SW2, SW3, SW4).
On SW1:
SW1(config)# ip arp inspection vlan 10,20,99 ! Enable DAI for all user VLANs
!
! IMPORTANT: In Packet Tracer, 'ip arp inspection trust' must be applied to the physical
! interfaces that are part of the EtherChannel, not directly to the Port-Channel interface.
SW1(config)# interface range FastEthernet0/1 - 4
SW1(config-if-range)# ip arp inspection trust
SW1(config-if-range)# exit
!
! For untrusted interfaces, specify validation checks.
! 'src-mac' validates the source MAC address.
! 'ip' validates the IP-MAC binding against the DHCP snooping table.
! 'dst-mac' validates the destination MAC address for ARP replies.
SW1(config)# interface range FastEthernet0/5 - 24
SW1(config-if-range)# ip arp inspection validate src-mac ip dst-mac ! Recommended validation
SW1(config-if-range)# exit
On SW2:
SW2(config)# ip arp inspection vlan 10,20,99
!
SW2(config)# interface range FastEthernet0/1 - 4
SW2(config-if-range)# ip arp inspection trust
SW2(config-if-range)# exit
!
SW2(config)# interface range FastEthernet0/5 - 24
SW2(config-if-range)# ip arp inspection validate src-mac ip dst-mac
SW2(config-if-range)# exit
On SW3:
SW3(config)# ip arp inspection vlan 10,20,99
!
SW3(config)# interface range FastEthernet0/1 - 4
SW3(config-if-range)# ip arp inspection trust
SW3(config-if-range)# exit
!
SW3(config)# interface range FastEthernet0/5 - 24
SW3(config-if-range)# ip arp inspection validate src-mac ip dst-mac
SW3(config-if-range)# exit
On SW4:
SW4(config)# ip arp inspection vlan 10,20,99
!
SW4(config)# interface range FastEthernet0/1 - 4
SW4(config-if-range)# ip arp inspection trust
SW4(config-if-range)# exit
!
SW4(config)# interface range FastEthernet0/5 - 24
SW4(config-if-range)# ip arp inspection validate src-mac ip dst-mac
SW4(config-if-range)# exit
16.3 Configure Port Security
Port Security allows you to limit the number of MAC addresses learned on an interface and restrict access to specific MAC addresses. This prevents unauthorized devices from connecting to a port.
mac-address sticky to dynamically learn and then secure addresses.shutdown: The port is immediately put into an err-disabled state, requiring manual intervention (shutdown then no shutdown). This is the most secure.restrict: Frames from unknown source MAC addresses are dropped, but the port remains up and a log message/SNMP trap is generated. This is your preferred mode for this lab, as it avoids manual port recovery.protect: Frames from unknown source MAC addresses are simply dropped silently, with no logging. Least secure.Action: Go to interface configuration mode for your user-facing access ports (Fa0/5 to Fa0/24) on each Access Switch (SW1, SW2, SW3, SW4).
On SW1:
SW1(config)# interface range FastEthernet0/5 - 24
SW1(config-if-range)# switchport mode access ! Ensure ports are in access mode
SW1(config-if-range)# switchport port-security ! Enable port security
SW1(config-if-range)# switchport port-security maximum 1 ! Allow only 1 MAC address
SW1(config-if-range)# switchport port-security mac-address sticky ! Dynamically learn and stick
SW1(config-if-range)# switchport port-security violation restrict ! Changed to restrict
SW1(config-if-range)# end
SW1# write memory
On SW2:
SW2(config)# interface range FastEthernet0/5 - 24
SW2(config-if-range)# switchport mode access
SW2(config-if-range)# switchport port-security
SW2(config-if-range)# switchport port-security maximum 1
SW2(config-if-range)# switchport port-security mac-address sticky
SW2(config-if-range)# switchport port-security violation restrict
SW2(config-if-range)# end
SW2# write memory
On SW3:
SW3(config)# interface range FastEthernet0/5 - 24
SW3(config-if-range)# switchport mode access
SW3(config-if-range)# switchport port-security
SW3(config-if-range)# switchport port-security maximum 1
SW3(config-if-range)# switchport port-security mac-address sticky
SW3(config-if-range)# switchport port-security violation restrict
SW3(config-if-range)# end
SW3# write memory
On SW4:
SW4(config)# interface range FastEthernet0/5 - 24
SW4(config-if-range)# switchport mode access
SW4(config-if-range)# switchport port-security
SW4(config-if-range)# switchport port-security maximum 1
SW4(config-if-range)# switchport port-security mac-address sticky
SW4(config-if-range)# switchport port-security violation restrict
SW4(config-if-range)# end
SW4# write memory
16.4 Verification of Access Layer Security
After configuring, it's crucial to verify that these features are working correctly.
Verify DHCP Snooping:
SW1):
SW1# show ip dhcp snooping
SW1# show ip dhcp snooping binding
SW1# show ip dhcp snooping status
Fa0/1-4) should be listed as trusted.Verify Dynamic ARP Inspection (DAI):
SW1):
SW1# show ip arp inspection vlan 10,20,99
SW1# show ip arp inspection interfaces
Fa0/1-4) should be listed as trusted.Verify Port Security:
SW1):
SW1# show port-security
SW1# show port-security interface FastEthernet0/5
restrict violation mode. The show port-security interface command should show that 1 MAC address has been learned.Test Security Features (Optional but Recommended):
restrict mode):
Fa0/5 on SW1), try connecting a second PC to the same Fa0/5 port.show port-security interface Fa0/5 - you should see "Last Source Address Violate" and "Security Violation Count" increment. The port should remain up/up.Goal: To configure Server1 as an NTP server and synchronize all your network devices (DSW-R3, DSW-R4, SW1, SW2, SW3, SW4) to it, incorporating NTP source interface configuration and NTP authentication commands.
17.1 Configure NTP Service on Server1
Action: Go to Server1 in Packet Tracer and enable its NTP service.
Server1.Services tab.NTP.NTP Service is toggled On. (No further configuration is typically needed on the Packet Tracer server side for basic NTP, and authentication isn't supported here).Let's enhance our NTP configuration to include a couple of best practices:
Important Note for Packet Tracer: While we will configure NTP authentication commands on your Cisco devices, Packet Tracer's generic Server1 NTP service does not support NTP authentication keys. This means your Cisco devices will attempt to authenticate, but Server1 won't enforce it, and synchronization will still occur. In a real environment with a Cisco device or dedicated NTP server supporting authentication, the keys would need to match on both sides. We're doing this to demonstrate the commands and their purpose.
17.2 Configure Network Devices for NTP with Source Interface and Authentication
Action: Go to global configuration mode on each network device. We will define an NTP authentication key, enable NTP authentication, specify the key as trusted, and set the source interface (Loopback0 for DSWs).
1md5NTP_AUTH_KEY (You can choose your own secret key, but keep it consistent across devices).On DSW-R3:
DSW-R3(config)# ntp authentication-key 1 md5 NTP_AUTH_KEY
DSW-R3(config)# ntp authenticate
DSW-R3(config)# ntp trusted-key 1
DSW-R3(config)# ntp server 192.168.99.10 key 1 source Loopback0 ! Use key ID 1 and Loopback0 as source
DSW-R3(config)# end
DSW-R3# write memory
On DSW-R4:
DSW-R4(config)# ntp authentication-key 1 md5 NTP_AUTH_KEY
DSW-R4(config)# ntp authenticate
DSW-R4(config)# ntp trusted-key 1
DSW-R4(config)# ntp server 192.168.99.10 key 1 source Loopback0
DSW-R4(config)# end
DSW-R4# write memory
On SW1:
(Note: Access switches in Packet Tracer typically don't have Loopback interfaces. The ntp source command is generally more relevant for routers with multiple interfaces. The switch will automatically source from one of its active SVIs capable of reaching the NTP server.)
SW1(config)# ntp authentication-key 1 md5 NTP_AUTH_KEY
SW1(config)# ntp authenticate
SW1(config)# ntp trusted-key 1
SW1(config)# ntp server 192.168.99.10 key 1
SW1(config)# end
SW1# write memory
On SW2:
SW2(config)# ntp authentication-key 1 md5 NTP_AUTH_KEY
SW2(config)# ntp authenticate
SW2(config)# ntp trusted-key 1
SW2(config)# ntp server 192.168.99.10 key 1
SW2(config)# end
SW2# write memory
On SW3:
SW3(config)# ntp authentication-key 1 md5 NTP_AUTH_KEY
SW3(config)# ntp authenticate
SW3(config)# ntp trusted-key 1
SW3(config)# ntp server 192.168.99.10 key 1
SW3(config)# end
SW3# write memory
On SW4:
SW4(config)# ntp authentication-key 1 md5 NTP_AUTH_KEY
SW4(config)# ntp authenticate
SW4(config)# ntp trusted-key 1
SW4(config)# ntp server 192.168.99.10 key 1
SW4(config)# end
SW4# write memory
17.3 Verify NTP Synchronization
Action: Check the NTP status on your network devices. It might take a few seconds or a minute for synchronization to occur.
On any network device (e.g., DSW-R3):
DSW-R3# show ntp status
DSW-R3# show ntp associations
DSW-R3# show ntp associations detail
show ntp status output: Look for "Clock is synchronized" and a stratum value (usually 2 or 3 if syncing from a server).show ntp associations / detail output: You should see 192.168.99.10 listed. The asterisk * next to the IP address indicates that it's the synchronized peer. For detail, you'll see information about authentication and source interface. Due to Packet Tracer's limitation with Server1's NTP authentication, you might see "unauthenticated" in the detail, but synchronization will still occur.Goal: To establish a comprehensive logging strategy across your network devices, including centralized logging to Server1, local buffering, console/VTY line display, consistent message formatting, and sequence numbering.
18.1 Configure Syslog Service on Server1
Action: Go to Server1 in Packet Tracer and ensure its Syslog service is enabled.
Server1.Services tab.Syslog.Syslog Service is toggled On.18.2 Configure Enhanced Syslog on Network Devices
Action: Go to global configuration mode on each network device and apply the following enhanced Syslog configurations.
service timestamps log datetime msec: Adds precise timestamps (with milliseconds, based on NTP) to all log messages. Crucial for accurate event correlation.service sequence-numbers: Adds sequence numbers to log messages, making it easier to track the order of events, especially if logs are lost or delayed.logging synchronous (on line config): Prevents log messages from interrupting your command-line input on console and VTY sessions.logging console informational: Displays log messages of "informational" severity (level 6) and higher to console users.logging monitor informational: Displays log messages of "informational" severity (level 6) and higher to users connected via Telnet/SSH (VTY lines). Users must also issue terminal monitor in their EXEC session to see these.logging buffered 8192 informational: Stores log messages in the device's RAM buffer (8192 bytes here) up to "informational" severity. These can be viewed later using show logging.logging host 192.168.99.10: Sends log messages to Server1.logging trap informational: Sets the minimum severity level for messages sent to the external Syslog server.logging source-interface: Specifies the source IP address for syslog messages sent to the external server (Loopback0 for DSWs, Vlan99 for ASWs for consistency and stability).On DSW-R3:
DSW-R3(config)# service timestamps log datetime msec
DSW-R3(config)# logging host 192.168.99.10
DSW-R3(config)# line console 0
DSW-R3(config-line)# logging synchronous
DSW-R3(config-line)# exit
DSW-R3(config)# line vty 0 15
DSW-R3(config-line)# logging synchronous
DSW-R3(config-line)# exit
DSW-R3(config)# end
DSW-R3# write memory
On DSW-R4:
DSW-R4(config)# service timestamps log datetime msec
DSW-R4(config)# logging host 192.168.99.10
DSW-R4(config)# line console 0
DSW-R4(config-line)# logging synchronous
DSW-R4(config-line)# exit
DSW-R4(config)# line vty 0 15
DSW-R4(config-line)# logging synchronous
DSW-R4(config-line)# exit
DSW-R4(config)# end
DSW-R4# write memory
On SW1 (and repeat for SW2, SW3, SW4):
SW1(config)# service timestamps log datetime msec
SW1(config)# logging host 192.168.99.10
SW1(config)# line console 0
SW1(config-line)# logging synchronous
SW1(config-line)# exit
SW1(config)# line vty 0 15
SW1(config-line)# logging synchronous
SW1(config-line)# exit
SW1(config)# end
SW1# write memory
(Remember to apply the same service and logging commands, and line console/vty configs to SW2, SW3, and SW4.)
18.3 Verify Enhanced Syslog Functionality
Action: Generate some log messages on your network devices and check various logging destinations.
DSW-R3), perform an action that generates a log message. A simple way is to enter and exit an interface configuration mode, or intentionally cause an error.
DSW-R3(config)# interface FastEthernet0/0
DSW-R3(config-if)# shutdown
DSW-R3(config-if)# no shutdown
DSW-R3(config-if)# exit
DSW-R3 in EXEC mode):
DSW-R3# show logging
terminal monitor in the EXEC mode of your VTY session, then generate a log message. You should then see it appear.Server1, navigate to the Services tab, and click on Syslog.Excellent! That's another major section complete. You now have robust logging in place, with accurate timestamps, sequence numbers, and centralized collection.
Having configured NTP and Syslog, the final core network management service we need to implement is SNMP (Simple Network Management Protocol). This will allow you to monitor your network devices from Server1 or any other designated management station.
Goal: To enable SNMP on your network devices (DSW-R3, DSW-R4, SW1, SW2, SW3, SW4) and configure Server1 as an SNMP manager, allowing for network monitoring.
19.1 Configure SNMP Service on Server1
Action: Go to Server1 in Packet Tracer and enable its SNMP service.
Server1.Services tab.SNMP.SNMP Service is toggled On.Community String and Trap Receiver. For now, just ensure it's On. We'll use the default community string (public/private) for basic testing, but in a real scenario, you'd define secure ones here.
Server1 typically doesn't have an "SNMP Service" to enable in the Services tab for it to act as an SNMP Manager (a device that receives traps and queries other devices).Instead, the functionality to act as an SNMP Manager (including a basic Trap Receiver and MIB Browser) is usually found as a desktop application on the server.
Goal: To enable SNMP on your network devices (DSW-R3, DSW-R4, SW1, SW2, SW3, SW4) and prepare Server1 to act as a basic SNMP manager, allowing for network monitoring.
19.1 Prepare Server1 as an SNMP Manager
Action: On Server1, you don't need to enable a specific "SNMP Service." Instead, you will access the MIB Browser application from its Desktop, which in Packet Tracer often doubles as a simple trap receiver.
Server1.Desktop tab.MIB Browser application.
19.2 Configure SNMP on Network Devices
Action: Go to global configuration mode on each network device. We will configure SNMP community strings, enable SNMP traps (alerts), specify the trap destination (Server1), and set a source interface for SNMP messages.
public (read-only): Allows monitoring data from the device.private (read-write): Allows both monitoring and changing configurations (use with extreme caution!). For this lab, we'll configure both, but public is usually sufficient for just monitoring.snmp-server source-interface: Specifies the source IP address for SNMP messages (traps and responses). Using Loopback0 for DSWs and Vlan99 for ASWs provides stability.On DSW-R3:
DSW-R3(config)# snmp-server community public RO ! Read-Only community string
DSW-R3(config)# snmp-server community private RW ! Read-Write community string (use with caution!)
DSW-R3(config)# snmp-server enable traps ! Enable all standard SNMP traps
DSW-R3(config)# snmp-server host 192.168.99.10 traps version 2c public ! Send traps to Server1 using community 'public'
DSW-R3(config)# snmp-server source-interface Loopback0 ! Use Loopback0 as source for SNMP messages
DSW-R3(config)# end
DSW-R3# write memory
On DSW-R4:
DSW-R4(config)# snmp-server community public RO
DSW-R4(config)# snmp-server community private RW
DSW-R4(config)# snmp-server enable traps
DSW-R4(config)# snmp-server host 192.168.99.10 traps version 2c public
DSW-R4(config)# snmp-server source-interface Loopback0
DSW-R4(config)# end
DSW-R4# write memory
On SW1 (and repeat for SW2, SW3, SW4):
SW1(config)# snmp-server community public RO
SW1(config)# snmp-server community private RW
SW1(config)# snmp-server enable traps
SW1(config)# snmp-server host 192.168.99.10 traps version 2c public
SW1(config)# snmp-server source-interface Vlan99 ! Using Management VLAN SVI as source
SW1(config)# end
SW1# write memory
(Remember to apply the same SNMP configurations to SW2, SW3, and SW4.)
19.3 Verify SNMP Functionality
Action: Trigger some events on your network devices and check if Server1 receives SNMP traps. You can also try to "ping" the devices from Server1's SNMP MIB Browser (though Packet Tracer's MIB Browser is limited).
Generate an event on a device (e.g., shutdown/no shutdown an interface):
DSW-R3(config)# interface FastEthernet0/0
DSW-R3(config-if)# shutdown
DSW-R3(config-if)# no shutdown
DSW-R3(config-if)# exit
Check Server1's SNMP Service:
Server1, navigate to the Services tab, and click on SNMP.Optional: Use Packet Tracer's MIB Browser (limited functionality):
Server1, go to Desktop tab, then click on MIB Browser.192.168.99.253 for DSW-R3's Loopback0, or its SVI IP 192.168.99.254).Community String (public).Get or GetNext. While Packet Tracer's MIB browser is very basic and often doesn't populate much data, it might indicate basic connectivity. Observing traps on the SNMP service window is usually more reliable for verification in PT.SNMP functionality in Packet Tracer is quite basic and limited compared to what you'd experience with real Cisco devices or professional network management software.
Packet Tracer is designed primarily to teach fundamental networking concepts and basic command-line configurations. While it simulates the commands and the basic idea of agents sending traps, it doesn't have a robust MIB browser that can query a wide range of OIDs or display detailed performance data like a real-world NMS (Network Management System) would.
However, despite these limitations, you've successfully:
So, while the Packet Tracer simulation itself is basic, your understanding of how to configure SNMP agents on Cisco devices is solid. Now that we've covered the primary network management services (NTP, Syslog, SNMP), let's look at adding another critical layer of security: Securing Device Management Access.
Goal: To configure local AAA on your network devices to control administrative access, starting with authentication using local usernames and passwords.
20.1 Configure Local AAA and User Accounts
Action: Go to global configuration mode on each network device (DSW-R3, DSW-R4, SW1, SW2, SW3, SW4).
On DSW-R3:
DSW-R3(config)# aaa new-model
!
! Create a privileged user (level 15) for full access
DSW-R3(config)# username admin privilege 15 secret cisco
!
! Create a read-only user (level 1)
DSW-R3(config)# username monitor privilege 1 secret ReadOnlyPass
!
! Configure authentication method list for login (console, vty)
! 'default' applies to all lines unless specified otherwise
! 'local' means use the local username database
DSW-R3(config)# aaa authentication login default local
!
! Configure authorization method list for EXEC (Privileged EXEC mode access)
DSW-R3(config)# aaa authorization exec default local
!
! Apply AAA to VTY lines (for Telnet/SSH)
DSW-R3(config)# line vty 0 15
DSW-R3(config-line)# login authentication default
DSW-R3(config-line)# authorization exec default
DSW-R3(config-line)# transport input all ! Allows Telnet and SSH
DSW-R3(config-line)# exit
!
! Apply AAA to Console line
DSW-R3(config)# line console 0
DSW-R3(config-line)# login authentication default
DSW-R3(config-line)# authorization exec default
DSW-R3(config-line)# exit
DSW-R3(config)# end
DSW-R3# write memory
On DSW-R4:
DSW-R4(config)# aaa new-model
!
DSW-R4(config)# username admin privilege 15 secret cisco
DSW-R4(config)# username monitor privilege 1 secret ReadOnlyPass
!
DSW-R4(config)# aaa authentication login default local
DSW-R4(config)# aaa authorization exec default local
!
DSW-R4(config)# line vty 0 15
DSW-R4(config-line)# login authentication default
DSW-R4(config-line)# authorization exec default
DSW-R4(config-line)# transport input all
DSW-R4(config-line)# exit
!
DSW-R4(config)# line console 0
DSW-R4(config-line)# login authentication default
DSW-R4(config-line)# authorization exec default
DSW-R4(config-line)# exit
DSW-R4(config)# end
DSW-R4# write memory
On SW1 (and repeat for SW2, SW3, SW4):
SW1(config)# aaa new-model
!
SW1(config)# username admin privilege 15 secret cisco
SW1(config)# username monitor privilege 1 secret ReadOnlyPass
!
SW1(config)# aaa authentication login default local
SW1(config)# aaa authorization exec default local
!
SW1(config)# line vty 0 15
SW1(config-line)# login authentication default
SW1(config-line)# authorization exec default
SW1(config-line)# transport input all
SW1(config-line)# exit
!
SW1(config)# line console 0
SW1(config-line)# login authentication default
SW1(config-line)# authorization exec default
SW1(config-line)# exit
SW1(config)# end
SW1# write memory
(Remember to apply the same AAA configurations to SW2, SW3, and SW4.)
20.2 Verify Local AAA Functionality
Action: Test logging into a device using both the admin and monitor accounts from a PC.
Command Prompt.telnet 192.168.10.254 for SW1).Username: and Password:.
admin / cisco. You should get full access to Privileged EXEC mode (#).monitor / ReadOnlyPass. You should get User EXEC mode (>). Try to enter configure terminal – it should be denied.This setup significantly enhances your device access security by requiring explicit user authentication and basic authorization. A very solid stopping point for any networking engineer. You've truly built a robust and well-configured wired network.
Moving forward, i'll be adding wireless LAN, integrating it with the existing VLANs and DHCP services. It you already got to this stage, very impressive, hope you enjoyed the hardwork and looking forward to more. To download the lab files, please visit my github repo "https://github.com/Maverick-sudo/network-engineering".