Cisco IPv4 Static and Default Route Configuration

M. Ichsanul Fadhil•November 21, 2026•11 min read

Learn how to configure next-hop and exit-interface IPv4 static routes across multi-router paths, set default gateways, and verify reachability.

cisco-static-route.simneta
Topology Preview

When you power on a brand-new router and configure its IP interfaces, the router knows only about the subnets directly touching its physical copper ports.

If a workstation tries to send a packet to a server three towns away, the router does not guess or search the web. Without an explicit map entry in its routing table, it drops the packet immediately.

Static routing is the art of hand-crafting that map. In this lab, we connect three Cisco routers (R1, R2, and R3) across transit subnets, investigate the return path trap, and establish multi-hop reachability between PC1 and PC2.

The Return Path Trap: Why One-Way Routes Fail

Network engineers frequently encounter a puzzling situation during their first multi-router build.

They write static routes on router R1 pointing toward the remote office network. They write transit routes on central router R2. They sit at PC1 and run a ping test, only to watch every single probe time out.

The Asymmetrical Return Path Trap Across Multi-Hop Routers

Figure 1. The Asymmetrical Return Path Trap: Outbound Success vs Return Drop

Figure 1 reveals what actually happens across the wire. The outbound ICMP Echo Request successfully navigates from R1 through R2 and lands safely at PC2.

PC2 generates an ICMP Echo Reply addressed back to PC1 (192.168.1.1) and hands it to its local default gateway, router R3.

Because IP routing is strictly one-way and asymmetrical, router R3 checks its routing table and finds no path home to the 192.168.1.0/24 subnet. Router R3 discards the reply.

To achieve successful two-way communication, you must always build matching return routes back toward the sender.

Next-Hop IP vs Exit-Interface on Ethernet Networks

When building a static route in Cisco IOS, you have two syntax choices to specify where traffic should exit:

  • Next-Hop IP Route: Points to the next router's interface address (ip route 192.168.3.0 255.255.255.0 192.168.12.2).
  • Directly Attached Route: Points to your own physical exit port (ip route 192.168.3.0 255.255.255.0 GigabitEthernet0/0).
Next-Hop IP versus Exit-Interface ARP Resolution Behavior

Figure 2. Clean Next-Hop ARP Resolution vs Exit-Interface Broadcast Storm

On point-to-point serial links, both methods work identically. But on broadcast Ethernet networks, pointing to an exit interface triggers an unexpected issue shown in Figure 2.

The router assumes every device on the destination subnet is directly wired to its local cable. It broadcasts an Address Resolution Protocol (ARP) request for every single destination IP, bloating the router ARP cache and wasting link bandwidth.

Always use a Next-Hop IP address on Ethernet networks. The router sends just one ARP request to discover the next router MAC address, keeping memory lean and clean.

The Gateway of Last Resort: Default Route 0.0.0.0/0

Branch router R1 has only one physical path leading out to the rest of the company: the link toward R2.

Instead of typing separate static routes for dozens of remote subnets, network engineers configure a Default Static Route using quad-zero notation: 0.0.0.0 0.0.0.0.

Default Route 0.0.0.0/0 as Gateway of Last Resort Decision Funnel

Figure 3. Default Route Funnel: Catching Unmatched Packets

A mask of 0.0.0.0 matches zero bits, meaning it matches every possible IPv4 address.

As illustrated in Figure 3, the routing engine checks for specific destination matches first. If no specific route matches, the packet falls into the default route funnel and forwards toward central router R2.

The 3-Router Addressing and Transit Plan

Here is the complete network mapping for the 3-router chain, transit subnets, and client workstations:

Device Interface IP Address Subnet Mask Network Role
R1 Gi0/1 192.168.1.254 255.255.255.0 Branch 1 LAN Gateway
R1 Gi0/0 192.168.12.1 255.255.255.0 R1-to-R2 Transit Link
R2 Gi0/0 192.168.12.2 255.255.255.0 R2 Left Transit Link
R2 Gi0/1 192.168.23.2 255.255.255.0 R2 Right Transit Link
R3 Gi0/0 192.168.23.3 255.255.255.0 R3-to-R2 Transit Link
R3 Gi0/1 192.168.3.254 255.255.255.0 Branch 2 LAN Gateway
PC1 FastEthernet0 192.168.1.1 255.255.255.0 Branch 1 Test Client
PC2 FastEthernet0 192.168.3.1 255.255.255.0 Branch 2 Test Client

Step-by-Step Route Configuration Across Routers

Follow these sequential steps on R1, R2, and R3 to establish two-way multi-hop reachability:

1

Configure Forward Static Routes on R1

Tell R1 how to reach remote branch LAN 192.168.3.0/24 and intermediate link 192.168.23.0/24 via next-hop R2 (192.168.12.2).

R1# configure terminal
R1(config)# ip route 192.168.3.0 255.255.255.0 192.168.12.2
R1(config)# ip route 192.168.23.0 255.255.255.0 192.168.12.2
2

Configure Bi-Directional Transit Routes on R2

R2 sits in the center. Forward left-bound traffic to R1 (192.168.12.1) and right-bound traffic to R3 (192.168.23.3).

R2# configure terminal
R2(config)# ip route 192.168.1.0 255.255.255.0 192.168.12.1
R2(config)# ip route 192.168.3.0 255.255.255.0 192.168.23.3
3

Configure Return Static Routes on R3

Provide R3 with the return path to branch 1 (192.168.1.0/24) and transit link (192.168.12.0/24) via next-hop R2 (192.168.23.2).

R3# configure terminal
R3(config)# ip route 192.168.1.0 255.255.255.0 192.168.23.2
R3(config)# ip route 192.168.12.0 255.255.255.0 192.168.23.2

Verification and Traceroute Inspection

To verify that static routes have been committed into memory, check the routing table on R1:

R1# show ip route static
S    192.168.3.0/24 [1/0] via 192.168.12.2
S    192.168.23.0/24 [1/0] via 192.168.12.2
Multi-Hop End-to-End Traceroute Hop Traversal

Figure 4. Multi-Hop End-to-End Hop Traversal and Routing Table Resolution

Notice the S code tag indicating a static route with an Administrative Distance of 1.

Finally, open the command prompt on PC1 and trace the path to PC2:

PC1> tracert 192.168.3.1

Tracing route to 192.168.3.1 over a maximum of 30 hops:

  1   <1 ms   <1 ms   <1 ms  192.168.1.254 (R1)
  2   <1 ms   <1 ms   <1 ms  192.168.12.2  (R2)
  3   <1 ms   <1 ms   <1 ms  192.168.23.3  (R3)
  4   <1 ms   <1 ms   <1 ms  192.168.3.1   (PC2)

Trace complete.

As shown in Figure 4 and confirmed by traceroute, the packet seamlessly hops across all three routing nodes without packet loss, proving complete two-way multi-hop reachability.

Discussion & Community Notes

Ask questions, share configuration solutions, or discuss this practice lab.

0 Comments
Posting as Guest • 1-level replies supported