Cisco Packet Tracer Configuration & Practical Lab Study Guide

Basic Cisco Navigation and Modes

  • CLI Navigation Commands:

    • enable — Transitions from User EXEC mode to Privileged EXEC mode.

    • disable — Exits Privileged EXEC mode and returns to User EXEC mode.

    • configure terminal — Transitions from Privileged EXEC mode to Global Configuration mode.

    • exit — Steps back one level in the configuration mode hierarchy.

    • end — Returns directly to Privileged EXEC mode from any sub-configuration mode.

    • ? — Displays a contextual list of available commands at the current prompt level.

Interface Configuration Commands

  • Interface Selection and Parameter Assignment:

    • interface gigabitEthernet 0/0 — Selects GigabitEthernet interface 0/0 for configuration.

    • interface fastEthernet 0/1 — Selects FastEthernet interface 0/1 for configuration.

    • ip address 192.168.1.1 255.255.255.0 — Assigns IP address 192.168.1.1 and subnet mask 255.255.255.0 to the interface.

    • no shutdown — Enables the interface (brings line protocol and status to up).

    • shutdown — Administratively disables the interface.

    • description LAN — Applies a descriptive label (LAN) to the interface.

  • Interface Verification Commands:

    • show ip interface brief — Displays a summarized table of interface IP addresses, status, and protocol state.

    • show interfaces — Displays full operational metrics, operational state, and bandwidth statistics for all interfaces.

    • show interfaces gigabitEthernet 0/0 — Displays full operational statistics for GigabitEthernet interface 0/0 specifically.

Configuration Management and Saving

  • Commands to Save Device Configuration:

    • copy running-config startup-config — Copies the current active running configuration in RAM to NVRAM to persist across reboots.

    • write memory — Alternative command that saves the running configuration directly to NVRAM.

  • Configuration Inspection Commands:

    • show running-config — Displays the contents of active RAM configuration.

    • show startup-config — Displays the configuration stored in non-volatile memory (NVRAM).

Host PC Command Prompt Commands

  • Executed within a Packet Tracer PC interface under Desktop → Command Prompt:

    • ipconfig — Displays basic IP address, subnet mask, and default gateway settings for the host.

    • ipconfig /all — Displays complete IP stack details, including network adapters, physical MAC addresses, subnet masks, default gateways, and DNS servers.

    • ping 192.168.1.1 — Sends ICMP echo request packets to target IP address 192.168.1.1 to verify Layer 3 connectivity.

    • tracert 192.168.1.1 — Traces intermediate routing hops taken to reach target host 192.168.1.1.

    • arp -a — Displays the ARP address resolution cache mapping local IP addresses to physical MAC addresses.

Static Routing Configuration

  • Static Route Management on Cisco Routers:

    • ip route 192.168.2.0 255.255.255.0 10.0.0.2 — Creates a static route entry directing traffic bound for network destination 192.168.2.0/24 to next-hop IP address 10.0.0.2.

    • show ip route — Displays the active IP routing table.

    • no ip route 192.168.2.0 255.255.255.0 10.0.0.2 — Removes the static route entry from the active routing configuration.

Router DHCP Server Configuration

  • Configuring a Cisco Router as a Dynamic Host Configuration Protocol Server:

    • ip dhcp excluded-address 192.168.1.1 192.168.1.10 — Reserves and excludes IP addresses 192.168.1.1 through 192.168.1.10 from dynamic lease assignment.

    • ip dhcp pool LAN — Defines a dynamic host configuration pool named LAN and enters DHCP configuration sub-mode.

    • network 192.168.1.0 255.255.255.0 — Specifies the address space pool available for lease distribution.

    • default-router 192.168.1.1 — Configures default gateway option supplied to DHCP clients.

    • dns-server 8.8.8.8 — Configures the DNS server address supplied to DHCP clients.

  • DHCP Verification Commands:

    • show ip dhcp binding — Displays active lease assignments, client MAC addresses, and lease expiration data.

    • show ip dhcp pool — Displays configured pool parameters, subnet ranges, and utilization figures.

Device Passwords and Security Settings

  • Securing Cisco CLI Access:

    • enable secret class — Sets an encrypted password (class) for gaining Privileged EXEC access.

    • line console 0 — Accesses console line configuration sub-mode.

    • password cisco — Sets the console access authentication password to cisco.

    • login — Enables password prompting on the console port.

    • line vty 0 4 — Enters configuration sub-mode for Virtual Terminal (VTY) lines 0 through 4 (remote access channels).

    • password cisco — Sets the VTY remote access password to cisco.

    • login — Enforces password authentication on remote connection attempts.

    • service password-encryption — Encrypts plain-text clear passwords stored within active device configuration files.

Switch Configuration and VLAN Setup

  • Virtual Local Area Network Commands:

    • show vlan brief — Displays a summary table of configured VLAN IDs, names, status, and assigned physical ports.

    • vlan 10 — Creates VLAN 10 or opens VLAN configuration mode for existing VLAN 10.

    • name SALES — Sets the textual name of VLAN 10 to SALES.

    • interface fastEthernet 0/1 — Enters configuration mode for port FastEthernet 0/1.

    • switchport mode access — Sets port operational mode to static Layer 2 access.

    • switchport access vlan 10 — Binds access port FastEthernet 0/1 to VLAN 10.

Switch Trunking Configuration

  • VLAN Trunking Commands:

    • interface gigabitEthernet 0/1 — Enters interface configuration mode for interface GigabitEthernet 0/1.

    • switchport mode trunk — Configures the interface to operate as an 802.1Q trunk link carrying multiple VLANs.

    • show interfaces trunk — Displays status, operational mode, encapsulation type, and allowed VLAN lists for active trunk links.

Switched Virtual Interface (SVI) Management

  • Layer 3 Switch Interface Configuration:

    • interface vlan 10 — Enters SVI configuration mode for logical VLAN interface 10.

    • ip address 192.168.10.1 255.255.255.0 — Configures IP address 192.168.10.1 and subnet mask 255.255.255.0 on SVI 10.

    • no shutdown — Administratively enables the logical VLAN interface.

Essential Verification and Troubleshooting Commands

  • System Verification Commands:

    • show running-config — Displays complete running active configuration.

    • show ip interface brief — Summarizes Layer 3 status and IP address assignment on interfaces.

    • show ip route — Inspects Layer 3 IP routing table.

    • show vlan brief — Inspects VLAN assignments on switch access interfaces.

    • show interfaces trunk — Inspects 802.1Q trunk link operational parameters.

    • show mac address-table — Displays MAC address-to-port binding table on switch hardware.

    • show arp — Displays Address Resolution Protocol IP-to-MAC resolution table.

    • show cdp neighbors — Inspects directly connected Cisco devices discovered via Cisco Discovery Protocol.

    • show version — Displays device uptime, system software versions, hardware specifications, and register settings.

  • Diagnostic Troubleshooting Priority Sequence:   When experiencing network connectivity faults, execute verification commands in this order:

    1. show ip interface brief

    2. show running-config

    3. show ip route

    4. ping <IP-address>

    5. traceroute <IP-address>

    6. show arp

    7. show mac address-table

Core Practical Exam High-Priority Commands

  • The 15 essential commands to master for practical assessments:

    1. enable

    2. configure terminal

    3. interface g0/0

    4. ip address

    5. no shutdown

    6. show ip interface brief

    7. show running-config

    8. show ip route

    9. ip route

    10. ping

    11. traceroute

    12. show vlan brief

    13. show interfaces trunk

    14. copy running-config startup-config

    15. show mac address-table

Serial Interface Setup and DCE Clock Rate Rules

  • Configuration Parameters for Serial Connections (e.g., Serial0/0/0):

    • Router R1 Serial0/0/0 IP address: 10.0.0.1

    • Router R2 Serial0/0/0 IP address: 10.0.0.2

    • Subnet mask: 255.255.255.252 (/30 prefix length)

  • Router R1 Configuration Steps:

    • enable

    • configure terminal

    • interface serial0/0/0

    • ip address 10.0.0.1 255.255.255.252

    • no shutdown

    • exit

    • end

    • copy running-config startup-config

  • Router R2 Configuration Steps:

    • enable

    • configure terminal

    • interface serial0/0/0

    • ip address 10.0.0.2 255.255.255.252

    • no shutdown

    • exit

    • end

    • copy running-config startup-config

  • Data Circuit-terminating Equipment (DCE) Clocking Rules:

    • If R1 connects to the DCE cable head, configure hardware clock rate synchronization on R1:

    • interface serial0/0/0

    • clock rate 64000

    • no shutdown

    • Interface Role Identification:

    • To determine whether a local interface is DCE or DTE, execute: show controllers serial 0/0/0

  • Verifying Operational Status of Serial Links:

    • Command: show ip interface brief

    • Target Output State: Serial0/0/0 10.0.0.1 YES manual up up

    • Connectivity Test: ping 10.0.0.2

  • Serial Link Configuration Sequence Formula:

    • Flow: Interface → IP → Clock rate (DCE) → No shutdown → Save → Ping

    • Syntax Template:

    • enable

    • conf t

    • int s0/0/0

    • ip address X.X.X.X X.X.X.X

    • clock rate 64000

    • no shutdown

    • end

    • copy run start

Comprehensive R1-to-R2 End-to-End Practical Lab

  • Topology Layout:

    • PC1 connects via FastEthernet to R1 GigabitEthernet 0/0 interface (192.168.1.0/24 subnet).

    • R1 Serial0/0/0 connects via point-to-point serial link to R2 Serial0/0/0 interface (10.0.0.0/30 subnet).

    • R2 GigabitEthernet 0/0 connects via FastEthernet to PC2 (192.168.2.0/24 subnet).

IP addressing table
  • Full IP Addressing Table:

    • PC1: Interface FastEthernet, IP address 192.168.1.10, Subnet mask 255.255.255.0, Gateway 192.168.1.1

    • R1: Interface G0/0, IP address 192.168.1.1, Subnet mask 255.255.255.0, Gateway —

    • R1: Interface S0/0/0, IP address 10.0.0.1, Subnet mask 255.255.255.252, Gateway —

    • R2: Interface S0/0/0, IP address 10.0.0.2, Subnet mask 255.255.255.252, Gateway —

    • R2: Interface G0/0, IP address 192.168.2.1, Subnet mask 255.255.255.0, Gateway —

    • PC2: Interface FastEthernet, IP address 192.168.2.10, Subnet mask 255.255.255.0, Gateway 192.168.2.1

  • Step-by-Step Lab Configuration Walkthrough:

    • Step 1: PC1 IP Configuration

    • Access menu: PC1 → Desktop → IP Configuration

    • IP Address: 192.168.1.10

    • Subnet Mask: 255.255.255.0

    • Default Gateway: 192.168.1.1

    • Step 2: PC2 IP Configuration

    • Access menu: PC2 → Desktop → IP Configuration

    • IP Address: 192.168.2.10

    • Subnet Mask: 255.255.255.0

    • Default Gateway: 192.168.2.1

    • Step 3: R1 CLI Interface Configuration

    • Open R1 CLI tab and enter:

      • enable

      • configure terminal

      • hostname R1

      • interface gigabitEthernet 0/0

      • ip address 192.168.1.1 255.255.255.0

      • no shutdown

      • exit

      • interface serial 0/0/0

      • ip address 10.0.0.1 255.255.255.252

      • clock rate 64000

      • no shutdown

      • exit

      • end

      • copy running-config startup-config

    • DTE/DCE Operational Note: If Packet Tracer outputs that clock rate is invalid for R1, R1 operates as the DTE end. Remove the clock rate command on R1 and execute clock rate 64000 on R2 (the DCE end).

    • Step 4: R2 CLI Interface Configuration

    • Open R2 CLI tab and enter:

      • enable

      • configure terminal

      • hostname R2

      • interface gigabitEthernet 0/0

      • ip address 192.168.2.1 255.255.255.0

      • no shutdown

      • exit

      • interface serial 0/0/0

      • ip address 10.0.0.2 255.255.255.252

      • no shutdown

      • exit

      • end

      • copy running-config startup-config

    • Step 5: Static Routing Configuration

    • Problem Statement: Router R1 possesses direct connected routes to 192.168.1.0/24 and 10.0.0.0/30, but lacks a route entry for 192.168.2.0/24. Similarly, R2 requires a route to access 192.168.1.0/24 via R1.

    • Configuration on Router R1:

      • enable

      • configure terminal

      • ip route 192.168.2.0 255.255.255.0 10.0.0.2

      • end

    • Configuration on Router R2:

      • enable

      • configure terminal

      • ip route 192.168.1.0 255.255.255.0 10.0.0.1

      • end

    • Save step for both routers:

      • copy running-config startup-config

    • Step 6: Interface Status Verification

    • Execute on R1: show ip interface brief

      • Verified operational states:

      • G0/0: IP 192.168.1.1, Status up, Protocol up

      • S0/0/0: IP 10.0.0.1, Status up, Protocol up

    • Execute on R2: show ip interface brief

      • Verified operational states:

      • G0/0: IP 192.168.2.1, Status up, Protocol up

      • S0/0/0: IP 10.0.0.2, Status up, Protocol up

    • Interface State Diagnosis: An output showing administratively down indicates that no shutdown was omitted during interface configuration.

    • Step 7: Routing Table Verification

    • Execute on R1: show ip route

      • Verified entry: S 192.168.2.0/24 [1/0] via 10.0.0.2

    • Execute on R2: show ip route

      • Verified entry: S 192.168.1.0/24 [1/0] via 10.0.0.1

    • Route Code Key: S designates a Static Route.

    • Step 8: Network Connectivity Validation

    • Point-to-Point Router Verification: From R1 prompt, enter ping 10.0.0.2 to confirm serial link operation.

    • Router-to-Host Verification: From R1 prompt, enter ping 192.168.2.10 to confirm routing across R2 down to PC2.

    • End-to-End Host Verification: From PC1 → Desktop → Command Prompt, run ping 192.168.2.10. Successful ICMP echo replies validate proper overall end-to-end routing and network setup.

  • Practical Examination Workflow Blueprint:

    • Standard configuration sequence syntax for static routing questions:

    • enable

    • conf t

    • interface g0/0

    • ip address X.X.X.X X.X.X.X

    • no shutdown

    • exit

    • interface s0/0/0

    • ip address X.X.X.X X.X.X.X

    • clock rate 64000

    • no shutdown

    • exit

    • ip route NETWORK MASK NEXT-HOP

    • end

    • copy run start

    • Practical Exam Ordering Rule: When given an exam prompt to configure static routing so two hosts across two routers can communicate, perform operations in this exact order: PC IP → Router LAN IP → Serial IPs → no shutdown → Static routes → Save → Ping.