IPv4 Default Route for CCNA: Internet Access from a Stub Network
A default route (0.0.0.0/0) is the “route of last resort”: it is used when no other route matches. In a stub network or at the Internet edge it avoids writing thousands of routes. It is one of the most frequent IP Connectivity labs.

Edit this template Download .json
Learning objectives
- Configure a default route toward the ISP and toward the edge router.
- Recognize the gateway of last resort in the routing table.
- Propagate the default route with OSPF using default-information originate.
Devices and addressing
| Device | Type | Details |
|---|---|---|
| PC1 | PC / user | 10.1.1.10 GW .1 |
| R-SITE | Router | Stub site G0/0 10.1.1.1/24 G0/1 10.0.0.1/30 |
| R-BORDE | Router | Edge G0/0 10.0.0.2/30 G0/1 203.0.113.2/30 |
| ISP / Internet | WAN | 203.0.113.1 Gateway |
Reference configuration (Cisco IOS)
R-SEDE
ip route 0.0.0.0 0.0.0.0 10.0.0.2
R-BORDE
ip route 0.0.0.0 0.0.0.0 203.0.113.1
ip route 10.1.1.0 255.255.255.0 10.0.0.1
interface g0/1
ip nat outside
interface g0/0
ip nat inside
Verification commands
show ip routeshow ip route 0.0.0.0ping 8.8.8.8traceroute 8.8.8.8
CCNA exam tips
It shows as S* 0.0.0.0/0 and the router prints "Gateway of last resort is …".
Matching is always longest prefix: the default route is only used when no more specific route exists.
How to use this template
Press “Edit this template”: the editor opens with the topology loaded and ready to change (undo with Ctrl+Z). You can also copy the JSON and paste it into the editor with File ▸ Import JSON…. Then add devices, change IPs and export to PDF, PNG or SVG.
To practice, rebuild the topology in Cisco Packet Tracer, GNS3 or Cisco Modeling Labs and paste the reference configuration on each device. Addresses and names are examples: change them to create your own variants.
JSON template for the editor
This is the full diagram in JSON format. Paste it into the editor (File ▸ Import JSON…) or press the edit button to load it automatically.
Frequently asked questions
What is a default route?
The 0.0.0.0/0 route that matches any destination and is used when no more specific route exists.
What is a stub network?
A network with a single exit; a default route is usually enough.