Home CCNA What Is a Stub Network? Routing, Configuration, and Real-World Use
CCNA

What Is a Stub Network? Routing, Configuration, and Real-World Use

Cisco Network Topology Diagram Showing Stub Router0 Connected To Laptops Via Switch1 With A Single Exit Uplink To Core Routers Router3, Router1, And Router2, With Subnet Labels And Default Route Command Pills

Understanding stub networks and stub routers is fundamental to designing efficient networks and a direct requirement for the CCNA exam. Stub networks appear in branch office designs, service provider edge connections, and anywhere a network segment has only one path in and out. This article covers what a stub network is, why static and default routes are the right tool for it, how to configure and verify those routes in Cisco IOS, and how OSPF and EIGRP handle stub scenarios differently.

What Is a Stub Network?

A stub network is a network with only one route out — one entry and one exit point to the rest of the internetwork. All traffic from devices on a stub network must pass through a single router to reach any external destination. That router is called a stub router.

The simplest mental model: a stub network is a dead end. Traffic can enter and exit, but only through one door. There is no alternative path.

Examples of stub networks in real deployments:

  • A branch office connected to corporate headquarters by a single WAN link
  • A small remote site connected to a service provider with a single point-to-point circuit
  • A home network connected to the internet through a single ISP router
  • An end-user LAN behind a single access router in a campus design

Stub Network vs Transit Network

Understanding what a stub network is becomes clearer when contrasted with a transit network.

FeatureStub NetworkTransit Network
Exit pathsOne (single router)Multiple
Traffic roleOriginates and terminates trafficPasses traffic between other networks
Routing complexityLow — one pathHigh — must route between segments
Best routing typeStatic or default routeDynamic routing protocol
Common locationBranch offices, edge sitesCore and distribution layer routers

A transit network carries traffic between multiple segments — it is not the source or destination of that traffic, just a pathway. A stub network only ever sends or receives traffic — it never routes traffic through itself to reach another network.

Topology Example (Cisco Paket Tracer)

Consider this simple topology:

Stub Router
What Is A Stub Network? Routing, Configuration, And Real-World Use 3
  • Router0 is the stub router. It connects to Switch1 (and through Switch1 to local laptops) via one interface, and to Router3 via another. There is only one path out to the core network — through Router1. Router0 is the stub router.
  • The LAN behind Switch1 (e.g., 192.168.2.0/24) is the stub network. All traffic from those laptops must exit through Router0.
  • Router1, Router2, Router3 are core routers. They have multiple connections and carry transit traffic between segments. They are not stub routers.

The key identifier for a stub topology: if you removed Router0, the LAN behind Switch1 would be completely isolated. There is no alternative path.

Why Avoid Dynamic Routing on Stub Routers?

Dynamic routing protocols like OSPF and EIGRP are designed for networks with multiple paths. They exchange topology information continuously — hello packets, routing updates, and for OSPF, full link-state databases — so that all routers can calculate the best path to every destination.

For a stub router like Router0, all of this overhead is unnecessary. Router0 has exactly one path to the rest of the network: through Router3. There is no topology calculation to be done. Running OSPF or EIGRP on Router0 would consume CPU, memory, and bandwidth exchanging information that will never change the routing decision.

The rule for stub networks: use static routes. The simpler the topology, the more appropriate static routing becomes.

The one exception is when the stub network connects to multiple upstream routers for redundancy — in that case, a dynamic protocol handles failover automatically. But a true single-exit stub is best served by static or default routes.

Configuring Static Routes for Stub Networks

A static route is a manually configured path that does not change unless an administrator edits it. For a stub router, the static route points toward the upstream core router.

On Router0 (Stub Router) — IPv4

Configure a static route to each remote network the stub needs to reach, or use a default route (see below):

Router0(config)# ip route 10.10.10.0 255.255.255.0 172.16.0.1
Router0(config)# ip route 10.10.2.0 255.255.255.0 172.16.0.1

Here 172.16.0.1 is Router3’s interface address on the link between Router0 and Router3. Both remote networks are reachable via the same next hop.

On Router3 (Upstream Core Router) — IPv4

Router3 needs a return route to the stub LAN so it can forward traffic back:

Router3(config)# ip route 192.168.2.0 255.255.255.0 172.16.0.2

Here 172.16.0.2 is Router0’s interface address on the link between them. Without this return route, Router3 would drop traffic destined for the stub LAN.

IPv6 Static Route on Router0

Router0(config)# ipv6 route 2001:DB8::/64 2001:DB8:1::1

The syntax is ipv6 route [destination-prefix] [next-hop-IPv6-address]. The logic is identical to IPv4.

Verifying Static Routes

Router0# show ip route
Router0# show ip route static

In the routing table, static routes appear with the code S. A correctly configured static route looks like:

S    10.10.0.0/24 [1/0] via 10.10.10.1
S    10.10.2.0/24 [1/0] via 10.10.10.1

The [1/0] is [administrative distance / metric]. Static routes have an administrative distance of 1 by default, giving them priority over most dynamic routes. A floating static route deliberately uses a higher AD (e.g., 5 or 10) so it only activates if the primary dynamic route is lost.

Test reachability after configuration:

Router0# ping 10.10.0.1
Router0# traceroute 10.10.2.1

Using Default Routes in Stub Networks

For a true stub router, a single default route is more efficient than configuring individual static routes to every remote network. A default route matches any destination that does not have a more specific entry in the routing table — it is the “send everything else here” instruction.

IPv4 Default Route

Router0(config)# ip route 0.0.0.0 0.0.0.0 10.10.10.1

This tells Router0: for any destination I don’t have a specific route for, forward to 10.10.10.1 (Router3). Once Router3 receives the traffic, it handles routing to the correct destination using its own (more complete) routing table.

The default route appears in show ip route as:

S*   0.0.0.0/0 [1/0] via 10.10.10.1

The S* means it is both a static route (S) and the gateway of last resort (*).

IPv6 Default Route

Router0(config)# ipv6 route ::/0 2001:DB8:1::1

::/0 is the IPv6 equivalent of 0.0.0.0/0 — it matches all IPv6 destinations.

When to Use Default Route vs Specific Static Routes

Use a default route when the stub router sends all non-local traffic to one upstream next hop — which is the case for most single-exit stub scenarios. Use specific static routes when the upstream network is large and the stub router needs to reach only specific remote segments, or when you need more precise control over traffic paths.

Important: Do not configure a default route on Router1, Router2, or Router3 in the topology above. Those are core routers with multiple paths — they need specific routing table entries (from a dynamic protocol or multiple static routes) to make informed forwarding decisions. A default route on a core router with multiple paths would cause all unknown traffic to take one exit, ignoring the other available paths.

OSPF Stub Areas

OSPF extends the stub concept to stub areas, a mechanism to reduce the size of link-state databases in areas that don’t need full topology information.

In an OSPF stub area, Type 5 LSAs (external routes) are blocked from entering the area. Routers in the stub area receive a default route from the ABR (Area Border Router) instead of the full set of external routing information. This reduces memory and CPU usage on routers in the stub area.

A totally stubby area (Cisco-proprietary extension) blocks both Type 5 and Type 3 LSAs, leaving stub area routers with only a default route and intra-area routes. This is the most aggressive route summarization option in OSPF.

OSPF stub area configuration:

Router0(config)# router ospf 1
Router0(config-router)# area 1 stub

The ABR must also be configured for the same area type. OSPF route summarization provides additional techniques for reducing routing table size across area boundaries.

EIGRP Stub Routing

EIGRP handles stub scenarios differently from OSPF. In EIGRP, a stub router declaration does two things:

  1. Prevents the stub router from being used as a transit router — upstream routers will not forward traffic through the stub to reach other networks.
  2. Suppresses EIGRP query propagation — when an EIGRP router loses a route, it sends queries to all neighbors. If a stub router is queried, it slows down convergence. Declaring a router as a stub prevents queries from reaching it.

EIGRP stub configuration:

Router0(config)# router eigrp 100
Router0(config-router)# eigrp stub connected summary

The keywords connected and summary control which routes the stub router advertises. Common options:

  • connected — advertise only directly connected networks
  • summary — advertise summary routes
  • static — advertise redistributed static routes
  • receive-only — accept routes but advertise nothing (the most restrictive)

Verify EIGRP stub status:

Router0# show ip eigrp neighbors detail

The output will show Stub Peer Advertising (CONNECTED SUMMARY) Routes for stub-declared neighbors.

Pros and Cons of Static Routing

AspectProsCons
Resource usageMinimal CPU and memory; no protocol overheadManual updates required whenever topology changes
PredictabilityFixed, deterministic paths; easy to auditNo automatic adaptation to link failures
ScalabilityIdeal for small and stub networksPoor for large, dynamic topologies with many paths
SecurityNo routing protocol traffic to intercept or manipulateRequires ACLs or other controls to protect route integrity
ConfigurationSimple and explicitEvery route must be entered manually on every affected router

Static routing is most appropriate for stub networks, small networks with stable topologies, and as floating static routes for backup paths. For configure static/default routes on the branch router connecting to a hub site, static routes are almost always the right choice.

Dynamic vs Static Routing in Stub Environments

Unlike static routes, dynamic protocols like OSPF or EIGRP automatically discover paths and handle failures. In transit networks with redundant paths, dynamic routing is essential — it detects link failures and recalculates paths without manual intervention.

In stub networks, the trade-off is clear:

  • Static routing: zero protocol overhead, deterministic, simple to configure and verify, but requires manual updates if anything changes.
  • Dynamic routing on a stub: full routing protocol overhead for zero benefit — the path doesn’t change because there is only one path. Every hello packet, update, and query is wasted bandwidth and CPU on the stub router.

The hybrid approach that works well for larger organizations: run a dynamic routing protocol between core routers for automatic convergence, and use static or default routes to connect stub sites to the nearest core router. This gives the core network automatic failover while keeping stub site configurations simple. OSPF route summarization at the boundary between stub and core is a common technique to prevent the stub’s routes from cluttering the core routing table.

Real-World Scenarios

Branch office design: A retail branch has 20 workstations connected to a local switch, which connects to a branch router. The branch router has a single WAN link to corporate headquarters. The branch router is configured with a default route pointing to the WAN link. The corporate HQ router has a specific static route back to the branch LAN. The branch runs no dynamic routing protocol — it has nothing to gain from one.

Service provider customer edge: A customer stub network connects to an ISP via a single circuit. The customer router has a default route pointing to the ISP’s PE (Provider Edge) router. The PE router has a static or BGP-learned route back to the customer prefix. This is fundamentally the same stub pattern at a different scale.

Remote monitoring site: An IoT monitoring installation at a remote location has a single 4G/LTE uplink. The router at the site runs a default route toward the uplink. No dynamic routing is needed — there is exactly one path, and a static default route costs nothing in overhead on a resource-constrained edge device.

CCNA Exam Pointers

  • A stub network has exactly one exit point — one path in and out.
  • A stub router has only one connection to the broader network (single uplink to the core).
  • Static routes use the ip route [network] [mask] [next-hop] syntax; default routes use 0.0.0.0 0.0.0.0 as the destination.
  • The default administrative distance of a static route is 1 — lower than OSPF (110) and EIGRP (90/170), so a static route overrides dynamic routes to the same destination.
  • A floating static route uses an AD higher than the primary dynamic route (e.g., AD 5 for backup to EIGRP) so it only activates when the dynamic route is lost.
  • OSPF stub areas block Type 5 (external) LSAs; totally stubby areas additionally block Type 3 (inter-area summary) LSAs.
  • EIGRP stub routing prevents query propagation and prevents the stub from being used as a transit router.
  • Verify static routes with show ip route static; verify default route with show ip route 0.0.0.0.

Conclusion

A stub network is one of the most practical concepts in networking — it appears constantly in real deployments, from branch offices to IoT edge sites, and is tested directly on the CCNA exam. The stub’s defining characteristic — a single exit path — makes dynamic routing unnecessary and static or default routing ideal. Configure a default route on the stub router pointing upstream, configure a specific return route on the upstream router, verify with show ip route, and test with ping. For larger stub scenarios, OSPF stub areas and EIGRP stub routing extend the concept to limit protocol overhead at the routing-protocol level without abandoning dynamic routing entirely.

Understanding when a network is a stub and choosing the right routing approach for it — static for true single-exit stubs, OSPF/EIGRP stub configurations for protocol-managed stub scenarios — is the foundation of efficient network design.

Self-Assessment – Static Route Configuration

Frequently Asked Questions

What is a stub router and how does it differ from a core router?

A stub router is a device with only one connection to the broader network, making it the single exit point for a stub network. All traffic from devices behind the stub router must pass through it to reach any external destination. A core router, by contrast, has multiple connections to other routers and carries transit traffic — it routes packets between segments rather than serving as the endpoint for a local network.

In terms of routing protocol behavior, stub routers benefit from simplified configurations (static or default routes) because they have nothing to gain from full topology exchange. Core routers require dynamic routing protocols to make informed decisions across multiple available paths.

Why should dynamic routing protocols be avoided in stub network topologies?

Dynamic routing protocols like OSPF and EIGRP continuously exchange topology information — hello packets, routing updates, and link-state databases — so that all routers can calculate optimal paths to every destination. For a stub router with exactly one exit path, all of this overhead produces no benefit: the routing decision is always the same regardless of what the topology table contains.

Running OSPF or EIGRP on a stub router wastes CPU, memory, and bandwidth on exchanges that will never influence the forwarding decision. Static routes or a single default route achieve the same forwarding behavior with zero protocol overhead, making them the correct choice for single-exit stub deployments.

What is the difference between a stub network and a transit network?

A stub network has a single entry and exit point — all traffic originates from or is destined for devices on that network, and there is exactly one router through which it can enter or leave. A transit network, by contrast, carries traffic between other networks — it is not the source or destination of that traffic, just a pathway between other segments.

A branch office LAN is a stub network; the WAN backbone connecting multiple branch offices is a transit network. The routing implications are significant: stub networks need only a default route or a few specific static routes, while transit networks require dynamic routing protocols (or extensive static route tables) to handle traffic across multiple paths.

How do you configure and verify static and default routes on Cisco routers for IPv4 and IPv6?

For IPv4, a specific static route uses ip route [destination-network] [subnet-mask] [next-hop-IP], for example ip route 10.10.0.0 255.255.255.0 10.10.10.1. A default route uses ip route 0.0.0.0 0.0.0.0 [next-hop-IP]. For IPv6, the equivalent commands are ipv6 route [prefix/length] [next-hop-IPv6] and ipv6 route ::/0 [next-hop-IPv6]. After configuration, verify with show ip route static (IPv4) or show ipv6 route static (IPv6) — static routes appear with the code S and default routes with S*. Test reachability using ping [destination] and traceroute [destination] to confirm the path is working end to end.

What are the advantages and disadvantages of using static routing in Cisco stub networks?

The primary advantages are resource efficiency (no protocol overhead, no hello packets, no routing updates), path predictability (the forwarding behavior is exactly as configured and does not change automatically), and simplicity (easier to configure, verify, and troubleshoot than a dynamic routing protocol).

Static routing is also more secure — there are no routing protocol messages that could be manipulated or spoofed. The key disadvantages are operational overhead (every change to the network topology requires manual updates to all affected static routes), lack of automatic failover (if the upstream link or router fails, the static route continues to exist in the table but traffic is dropped with no automatic rerouting), and poor scalability (as network size grows, the number of static routes to manage grows with it).

For stable stub networks where the topology rarely changes and there is only one path anyway, these disadvantages are minimal and the advantages are compelling.

Avatar Of Muhammad Khattak
Muhammad Khattak

Author

Routing and switching specialist, CCNA certified, with extensive experience in network configuration and troubleshooting. Covers OSPF, EIGRP, VLAN management, and advanced routing concepts.

Related Articles