Hands-On Lab: Configuring Default Static Routes

This hands-on lab configures a default static route on an edge router to reach the internet through an ISP connection, demonstrating how a single route can represent every otherwise-unknown destination rather than requiring individual routes for each one.

Default Static RouteGateway of Last Resort0.0.0.0/0

~3 min read · Updated Sep 22, 2026

Lab Objective

Configure a default static route on an edge router pointing toward an ISP, verify it appears correctly as the gateway of last resort, and confirm it successfully routes traffic to a destination with no more specific matching route.

Lab Purpose

Maintaining an individual static route for every possible internet destination would be completely impractical. A default route, matching any destination not covered by a more specific entry, is the standard solution for edge routers connecting to an ISP or any upstream network.

Lab Topology

R1 (edge router) ---- Serial0/0/1 ---- ISP Router
R1's internal LAN: 192.168.50.0/24

R1's serial address: 203.0.113.1/30
ISP's serial address: 203.0.113.2/30
(ISP simulated as directly reachable for
 this lab, representing the path to the
 wider internet)

Task 1: Configure Basic Addressing

Configure R1's serial interface toward the ISP and its internal LAN interface.

Task 2: Configure the Default Static Route

Configure a default route on R1 pointing to the ISP's serial address.

Task 3: Verify the Gateway of Last Resort

Confirm the routing table identifies this route as the gateway of last resort.

Task 4: Test the Default Route

Ping an address with no specific matching route in R1's table (simulating an internet destination) and confirm the default route is used.

Solution and Verification

R1(config)# interface serial0/0/1
R1(config-if)# ip address 203.0.113.1 255.255.255.252
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)# interface gigabitethernet0/0
R1(config-if)# ip address 192.168.50.1 255.255.255.0
R1(config-if)# no shutdown

R1(config)# ip route 0.0.0.0 0.0.0.0 203.0.113.2

-- 0.0.0.0 0.0.0.0 matches every possible
-- destination, since a mask of all zeros
-- means "any value in every octet is
-- acceptable" -- this is the standard
-- notation for a default route

R1# show ip route

Gateway of last resort is 203.0.113.2 to network 0.0.0.0

S*   0.0.0.0/0 [1/0] via 203.0.113.2
C    192.168.50.0/24 is directly connected, GigabitEthernet0/0
C    203.0.113.0/30 is directly connected, Serial0/0/1

R1# ping 8.8.8.8

-- (simulated destination beyond the ISP)

!!!!!
Success rate is 100 percent (5/5)

R1# show ip route 8.8.8.8

% Network not in table
-- Confirms 8.8.8.8 has no specific matching
-- entry, yet the ping succeeded because the
-- default route caught it instead

Key Takeaway

The asterisk (S*) next to a static route in the routing table specifically marks it as the candidate default route, and the Gateway of last resort line at the top of show ip route output is the fastest way to confirm whether a default route is actually configured and active — a router with no gateway of last resort shown will drop any packet with no more specific matching route rather than forwarding it anywhere.

Written & researched by Dr. Shahin Siami

Related Articles

Hands-On Lab: Configuring IPv6 Static Routes

This hands-on lab configures static routes for IPv6 destinations between two routers, mirroring the IPv4 static routing syntax covered earlier in this series while highlighting the IPv6-specific command keyword and address format.

Continue

Hands-On Lab: Configuring and Naming Static Routes

This hands-on lab configures static routes with descriptive names attached using the name keyword, improving documentation and making the routing table significantly easier to interpret for anyone reviewing the configuration later.

Continue

Hands-On Lab: Configuring Static Routing via IP Addresses

This hands-on lab configures static routes using a next-hop IP address rather than an outgoing interface, the generally preferred syntax, and compares the resulting routing table entry against the interface-based approach from the previous lab.

Continue

Hands-On Lab: Configuring Static Routing via Interfaces

This hands-on lab configures static routes using an outgoing interface rather than a next-hop IP address, demonstrating this approach's suitability for point-to-point links and its important limitation on multi-access networks.

Continue

Hands-On Lab: Installing a Wireless LAN Controller

This hands-on lab performs the initial setup of a Wireless LAN Controller, joins a lightweight access point to it, and creates a centrally managed WLAN, demonstrating the controller-based architecture that scales far beyond standalone access points.

Continue

Hands-On Lab: Installing a Wireless Access Point

This hands-on lab covers physically connecting and performing the initial configuration of a standalone wireless access point, including setting up an SSID, applying WPA3 security, and verifying wireless clients can associate and reach the wired network.

Continue