A default static route is a manually configured route that forwards traffic when no more specific route matches the destination.
Think of the default static route as a route used when no other routes in your router can be used to send the packet to the destination. (If you’re not yet familiar with regular static routes, see our Static Route lesson first.)
Let’s look at this example together: we have a packet with destination IP 8.8.8.8, and our router needs to find a route to send this packet to its destination.

Figure 1 – Default Static Route Lookup
There are three routes in this routing table. The first route is the default route with subnet 0.0.0.0 and mask /0, which means: "you can use this route when no other route matches the destination IP," because 0.0.0.0/0 includes all IP addresses.
The second route is 192.168.1.0/24, which does not match the destination IP.
The third route is 192.168.2.0/24, which also does not match.Longest Prefix Match (LPM)
The router always prefers the most specific route (longest prefix match).
0.0.0.0/0is used only if no other route matches the destination.Since no other route matches, the router will use the default static route and forward the packet to the next hop 203.0.115.2 via G0/0.
🔻 What Happens Without a Default Route
Let's consider a realistic scenario in which no default route has been configured. If PC1 were to send a packet to the destination IP address 8.8.8.8, our router R1 would discard it because there is no matching route in its routing table.

Figure 2 – Packet discarded due to missing route
In Cisco IOS routers, configuring a default static route is pretty easy: the command is
ip route 0.0.0.0 0.0.0.0 <next-hop IP>.In the example below, R1 is connected to the Internet Service Provider and a default static route can be used to send the unknown destination to the ISP. To do this, we specify the next hop as the IP interface of the internet service provider.

Figure 3 – Configuring the Default Static Route on R1
✅ With Default Static Route
Since the default static route is created, our router R1 is now able to forward traffic to unknown destinations to the next hop 203.0.115.2 by using interface G0/0. If we revisit our example, PC1 sends a packet to destination IP 8.8.8.8. R1 doesn't have a specific IP route to this destination, so the default static route is matched.

Figure 4 – Default Route in Action
The packet is forwarded out of interface G0/0 toward the next hop 203.0.115.2. A default static route is typically configured on the edge router to connect the internal network to the external network (the internet), allowing traffic to be sent to the service provider and reach its destination.
Answer the question below
Which route is used when no other route matches?
Let's configure a default static route on R1 to the next hop 203.0.115.2.

On the Cisco Router IOS the command to use is
ip route 0.0.0.0 0.0.0.0 <next-hop IP>.R1# conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# ip route 0.0.0.0 0.0.0.0 203.0.115.2 R1(config)# endSince the default static route is configured, we can see its presence in the routing table by using the
show ip routecommand:R1# show ip route Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is 203.0.115.2 to network 0.0.0.0 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/24 is directly connected, GigabitEthernet0/1 L 192.168.1.1/32 is directly connected, GigabitEthernet0/1 192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.2.0/24 is directly connected, GigabitEthernet0/2 L 192.168.2.1/32 is directly connected, GigabitEthernet0/2 203.0.115.0/24 is variably subnetted, 2 subnets, 2 masks C 203.0.115.0/30 is directly connected, GigabitEthernet0/0 L 203.0.115.1/32 is directly connected, GigabitEthernet0/0 S* 0.0.0.0/0 [1/0] via 203.0.115.2In this output, there are multiple things I want to show you.
First, you can see the line:
Gateway of last resort is 203.0.115.2 to network 0.0.0.0
This line tells us that the router knows where to send traffic when no other route matches in the routing table.The second line is at the bottom:
S* 0.0.0.0/0 [1/0] via 203.0.115.2
This is the default static route, with0.0.0.0as the network and/0as the mask.
The route codeSmeans it's a static route, and the * indicates it's a candidate for the default route.Answer the question below
In the routing table, what symbol indicates a default static route?
Answer the question below
R1 receives a packet for 203.0.115.9: which network/prefix entry of its routing table does it match?
Now that the default static route is configured, we can verify that the internal network can successfully reach an external destination.
From PC1, we send an ICMP echo request (ping) to the public IP address 8.8.8.8.

Ping from PC1
PC1> ping 8.8.8.8 Pinging 8.8.8.8 with 32 bytes of data: Reply from 8.8.8.8: bytes=32 time=24ms TTL=117 Reply from 8.8.8.8: bytes=32 time=23ms TTL=117 Reply from 8.8.8.8: bytes=32 time=25ms TTL=117 Reply from 8.8.8.8: bytes=32 time=24ms TTL=117 Ping statistics for 8.8.8.8: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)PC1 sends traffic to the Internet. R1 doesn’t know the destination, so it uses the default route to send the packet to the ISP, which knows how to reach 8.8.8.8, and the ping works.
Answer the question below
Why does the ping to 8.8.8.8 succeed?
To conclude, you need to understand that the default static route is used to enable communication with external networks that are not known by your local router. This route ensures that traffic will have a next hop to reach its final destination.
On Cisco IOS routers, the command is:
ip route 0.0.0.0 0.0.0.0 <next-hop IP>.The common use case of a default static route is to allow your internal network to reach the external network (such as the internet) by setting the next hop IP address of the internet service provider’s router.
In the next lesson, we’ll look at Floating Static Route, which is designed to act as a backup path if your primary route fails.
Answer the question below
Click 'Complete' to continue