Configure Static Routing IPv4 with Exit Interface (Point to Point – Serial Interface)

Configure Static Routing IPv4 with Exit Interface (Point-to-Point – Serial Interface)

Static routing is a manual method of defining a routing table. It provides an efficient way to control the flow of traffic in a network, particularly in scenarios like point-to-point serial interfaces. In this guide, we’ll demonstrate how to configure static routing IPv4 with the exit interface based on the provided topology.

Static Routing IPv4

  1. Configure Static Routing IPv4 with Next Hop IP
  2. Configure Static Routing IPv4 with Exit Interface (Point to Point – Serial Interface)
  3. Configure Static Routing IPv4 with Fully Specified Route

Network Topology Overview

Static Routing IPv4 with Exit Interface (Point to Point – Serial Interface) Topology
Static Routing IPv4 with Exit Interface (Point to Point – Serial Interface) Topology

The topology involves two routers (R1 and R2) connected via a serial link, with PCs connected to each router via Gigabit Ethernet interfaces. The objective is to configure static routing so that devices across all networks can communicate effectively.


Topology Details

  1. PC10
    • IP Address: 192.168.10.10
    • Subnet Mask: 255.255.255.0
    • Gateway: 192.168.10.1
  2. PC20
    • IP Address: 192.168.20.10
    • Subnet Mask: 255.255.255.0
    • Gateway: 192.168.20.1
  3. PC40
    • IP Address: 192.168.40.10
    • Subnet Mask: 255.255.255.0
    • Gateway: 192.168.40.1
  4. PC50
    • IP Address: 192.168.50.10
    • Subnet Mask: 255.255.255.0
    • Gateway: 192.168.50.1
  5. Serial Link (between R1 and R2):
    • R1 (S0/1/0): 192.168.30.1
    • R2 (S0/1/1): 192.168.30.2

Router Configuration Steps

Below are the step-by-step configuration commands used on R1 and R2 to achieve static routing.


R1 Configuration

  1. Set Hostname:
    Router>enable
    Router#configure terminal
    Router(config)#hostname R1
    
  2. Configure Gigabit Ethernet Interfaces:
    • Gig0/0/1:
      R1(config)#interface gigabitEthernet 0/0/1
      R1(config-if)#no shutdown
      R1(config-if)#ip address 192.168.10.1 255.255.255.0
      
    • Gig0/0/2:
      R1(config)#interface gigabitEthernet 0/0/2
      R1(config-if)#no shutdown
      R1(config-if)#ip address 192.168.20.1 255.255.255.0
      
  3. Configure Serial Interface (S0/1/0):
    R1(config)#interface serial 0/1/0
    R1(config-if)#no shutdown
    R1(config-if)#ip address 192.168.30.1 255.255.255.0
    
  4. Add Static Routes:
    R1(config)#ip route 192.168.40.0 255.255.255.0 serial 0/1/0
    R1(config)#ip route 192.168.50.0 255.255.255.0 serial 0/1/0
    

R2 Configuration

  1. Set Hostname:
    Router>enable
    Router#configure terminal
    Router(config)#hostname R2
    
  2. Configure Gigabit Ethernet Interfaces:
    • Gig0/0/1:
      R2(config)#interface gigabitEthernet 0/0/1
      R2(config-if)#no shutdown
      R2(config-if)#ip address 192.168.40.1 255.255.255.0
      
    • Gig0/0/2:
      R2(config)#interface gigabitEthernet 0/0/2
      R2(config-if)#no shutdown
      R2(config-if)#ip address 192.168.50.1 255.255.255.0
      
  3. Configure Serial Interface (S0/1/1):
    R2(config)#interface serial 0/1/1
    R2(config-if)#no shutdown
    R2(config-if)#ip address 192.168.30.2 255.255.255.0
    
  4. Add Static Routes:
    R2(config)#ip route 192.168.10.0 255.255.255.0 serial 0/1/1
    R2(config)#ip route 192.168.20.0 255.255.255.0 serial 0/1/1
    

Verification

After completing the configuration, verify connectivity using the following commands:

  1. Ping from PC10 to PC50:
    ping 192.168.50.10
    
  2. Trace the Route:
    traceroute 192.168.50.10
    

Both tests should succeed, indicating proper communication between devices across the networks.


Key Notes

  • Static routes are defined using the ip route command, with the exit interface explicitly specified for point-to-point connections.
  • Proper IP addressing and enabling of interfaces are critical to ensure connectivity.

By following this guide, you can successfully configure static IPv4 routing on a network using exit interfaces. Let us know if you have questions or need further assistance with network configurations!