📡

Configuring Static Routes Lab Notes

Jul 26, 2024

Notes on Configuring Static Routes in Cisco Routers

Introduction

  • Free CCNA course by Jeremy’s IT Lab
  • Focus: Configure static routes on Cisco routers
  • Two labs for Day 11:
    • Lab 1: Configure static routes
    • Lab 2: Troubleshoot an existing network configuration

Lab Objective

  • Enable PC1 and PC2 to ping each other by configuring necessary settings.
  • No pre-configurations on devices to practice basic CLI commands.

Basic Configuration Steps

PC1 Configuration

  • Gateway IP: 192.168.1.254 (R1)
  • Network interface (FastEthernet0): 192.168.1.1, subnet mask: 255.255.255.0

R1 Configuration

  1. Enter privileged exec mode: enable
  2. Enter global config mode: configure terminal
  3. Set hostname: hostname R1
  4. Configure Interfaces:
    • G0/1 (internal LAN):
      • IP Address: 192.168.1.254
      • Description: description ## to SW1 ##
      • Enable: no shutdown
    • G0/0 (to R2):
      • IP Address: 192.168.12.1
      • Description: description ## to R2 ##
      • Enable: no shutdown
  5. Check interfaces: do show ip interface brief

R2 Configuration

  1. Enter privileged exec mode: enable
  2. Enter global config mode: configure terminal
  3. Set hostname: hostname R2
  4. Configure Interfaces:
    • G0/0 (to R1):
      • IP Address: 192.168.12.2
      • Description: description ## to R1 ##
      • Enable: no shutdown
    • G0/1 (to R3):
      • IP Address: 192.168.13.2
      • Description: description ## to R3 ##
      • Enable: no shutdown
  5. Check interfaces: do show ip interface brief

R3 Configuration

  1. Enter privileged exec mode: enable
  2. Enter global config mode: configure terminal
  3. Set hostname: hostname R3
  4. Configure Interfaces:
    • G0/0 (to R2):
      • IP Address: 192.168.13.3
      • Description: description ## to R2 ##
      • Enable: no shutdown
    • G0/1 (to SW2):
      • IP Address: 192.168.3.254
      • Description: description ## to SW2 ##
      • Enable: no shutdown
  5. Check interfaces: do show ip interface brief

PC2 Configuration

  • Gateway IP: 192.168.3.254 (R3)
  • Network interface (FastEthernet0): 192.168.3.1, subnet mask: 255.255.255.0

Configuring Static Routes

  • Two-way reachability necessary for PING between PC1 and PC2
  • Routes Needed:
    • R1 to 192.168.3.0/24
    • R3 to 192.168.1.0/24
    • R2 to both 192.168.1.0/24 and 192.168.3.0/24 (two routes)

R1 Static Route

  1. Exit interface config mode: exit
  2. Configure static route: ip route 192.168.3.0 255.255.255.0 192.168.12.2
  3. Verify routing table: do show ip route

R2 Static Routes

  1. Exit interface config mode: exit
  2. Configure route to 192.168.1.0/24:
    • ip route 192.168.1.0 255.255.255.0 g0/0
  3. Configure route to 192.168.3.0/24:
    • ip route 192.168.3.0 255.255.255.0 192.168.13.3
  4. Verify routing table: do show ip route

R3 Static Route

  1. Exit interface config mode: exit
  2. Configure route to 192.168.1.0/24:
    • ip route 192.168.1.0 255.255.255.0 192.168.13.2
  3. Verify routing table: do show ip route

Testing Connectivity

  • On PC1, use command prompt and try to PING: 192.168.3.1
    • First ping may fail due to ARP, subsequent pings should succeed if configured correctly.
  • Successful PING confirms static routing configuration.

Conclusion

  • Successfully configured static routing to allow PC1 and PC2 to communicate.
  • Encourage viewers to:
    • Subscribe, like, comment, and share the video.
    • Consider tipping the channel.