Configuring Static Routes on Routers

Nerd Cafe

Introduction

Static routing is a method where a network administrator manually configures routing entries in the router’s routing table. Unlike dynamic routing, static routing is straightforward and does not consume extra CPU or bandwidth. It is often used in small networks or as a backup for dynamic routing.

Scenario: Configuring Static Routes Between Two Networks

Imagine we have two branch offices connected through routers, and we need to configure static routes to ensure communication between them.

Topology
  • Router1 (R1)

    • LAN Network: 192.168.1.0/24

    • Interface to R2: 10.0.0.1/30

  • Router2 (R2)

    • LAN Network: 192.168.2.0/24

    • Interface to R1: 10.0.0.2/30

Objective

  • Configure static routes on R1 to reach 192.168.2.0/24 via R2.

  • Configure static routes on R2 to reach 192.168.1.0/24 via R1.

Step 1: Configure IP Addresses

On R1

On R2

On PC1

On PC2

Step 3: Configure Static Routes

Now, we need to inform R1 and R2 about each other’s LAN networks.

On R1 (Route to 192.168.2.0/24 via R2)

On R2 (Route to 192.168.1.0/24 via R1)

Step 4: Verify the Configuration

Check Routing Table

  • On R1:

  • On R1:

Test Connectivity

Keywords

Static routing, routing table, IP route, Cisco routers, manual routing, network topology, router configuration, LAN network, subnet mask, routing protocol, default route, static route configuration, IP address assignment, routing entry, routing protocol, command-line interface, router interfaces, router connectivity, packet forwarding, network communication, troubleshooting, سیسکو

Last updated