CiscoCCNPAdvanced RoutingIntermediate24 min read

What Is EIGRP Stub Routing in Networking?

Also known as: EIGRP stub routing, Cisco stub routing, ENARSI stub routing, EIGRP stub configuration, hub and spoke EIGRP

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security
On This Page

Quick Definition

EIGRP stub routing is a way to tell a router at a remote site to only advertise certain routes, like its directly connected networks, and to not learn routes from other routers. This makes the network more stable and uses less memory and processing power on the remote router. It is commonly used in hub-and-spoke designs where the remote router does not need to know about all the routes in the core network.

Must Know for Exams

EIGRP stub routing is a high-priority topic in the Cisco CCNP Enterprise (ENARSI) exam, which tests advanced routing technologies. The exam objectives explicitly list EIGRP stub routing under the EIGRP section, and candidates are expected to understand its configuration, verification, and operational impact. Questions often ask which types of routes a stub router advertises by default, which command enables stub routing, and what the 'receive-only' option does.

The exam also frequently tests the concept of stub routing in the context of route summarization and filtering, as stub routers are often used alongside summary routes to further reduce routing table size. You may see scenario-based questions where a remote office router is not learning a default route from the hub, and you must identify that the stub router is configured with 'receive-only' or that the hub is not advertising a default route. Another common exam scenario involves a routing loop caused by a remote router acting as a transit, which stub routing would prevent.

The exam also tests your understanding of how stub routing interacts with EIGRP named mode versus classic mode, and how it works with IPv6. For the ENCOR (350-401) exam, which is the core CCNP exam, stub routing may be tested at a more basic level, focusing on the concept and simple configuration. In the CCIE lab exam, you will be expected to configure stub routing as part of a larger EIGRP design, including using the various stub options and verifying the setup with show commands like 'show ip eigrp neighbors' and 'show ip route eigrp'.

You must also know that stub routing only applies to the EIGRP process and does not affect other routing protocols. Mastering this topic is essential because it appears in multiple question types, including multiple-choice, drag-and-drop, and simulation questions.

Simple Meaning

Imagine you work in a large office building with many departments. Each department has its own mailbox for internal mail, but there is a central mail room that handles all mail coming from outside the building. The mail room knows where every department is located.

The departments do not need to know the full layout of the building or all the other departments — they just need to know how to send mail to the mail room and receive mail from the mail room. EIGRP stub routing works like this. In a computer network, a small remote office router (the stub router) does not need to know about every single network path in the large corporate headquarters.

It only needs to know how to reach the main corporate network, and it only needs to tell the main network about the specific devices in its own office, like printers and computers. The stub feature prevents the remote router from being overwhelmed with routing information it does not need. It also stops the remote router from accidentally becoming a transit point, where traffic from one remote office tries to go through another remote office, which could cause loops and problems.

Think of it like a library card system. A small branch library (the stub) only knows how to return books to the main library and borrow books from the main library. It does not need to know about the inter-library loan system between other branch libraries.

This keeps things simple and efficient. In technical terms, the stub router advertises only certain routes, such as its directly connected networks or a default route, and it ignores more complex routing updates from the core. This reduces memory usage, CPU load, and the risk of routing loops.

It also makes troubleshooting easier because the remote routers have a very simple routing table.

Full Technical Definition

EIGRP (Enhanced Interior Gateway Routing Protocol) stub routing is a Cisco proprietary feature used to optimize routing in hub-and-spoke topologies. In a typical EIGRP network, all routers exchange full routing information with each other, which can lead to large routing tables and high convergence times in large networks. The stub routing feature addresses this by designating certain routers as stub routers.

A stub router is a router that has only one or a few connections to the rest of the network, usually at a remote or branch location. When configured as a stub, the router restricts the types of routes it advertises and, critically, it does not learn routes from its neighbors via the normal EIGRP update process. Instead, the stub router typically advertises only a default route, its directly connected networks, or a summary route to its hub router.

This is achieved using the 'eigrp stub' command under the EIGRP routing process configuration. The command has several options: 'connected' advertises directly connected networks, 'static' advertises static routes, 'summary' advertises summary routes, 'redistributed' advertises redistributed routes, and 'receive-only' makes the router a pure stub that does not advertise any routes. By default, if no option is specified, the stub router advertises connected and summary routes.

The hub router, typically at the corporate headquarters, learns about the stub router's networks and can reach them. The stub router, in turn, learns a default route from the hub router, pointing all unknown traffic toward the hub. This significantly reduces the routing table size on the stub router, lowers CPU and memory usage, and decreases the time needed for the network to converge after a failure.

It also prevents the stub router from being used as a transit router, which is a common cause of routing loops in EIGRP. In a real IT environment, stub routing is deployed extensively in branch offices, retail stores, or remote campuses where the local router only needs to connect local users to the central data center. The configuration is straightforward: on the remote router, under router eigrp [AS number], the network statements are configured for the local networks, and then the 'eigrp stub' command is applied.

On the hub router, no special stub configuration is required, though it should be configured to advertise a default route to the stub routers, often using the 'ip route 0.0.0.0 0.0.

0.0 [next-hop]' and redistributing it into EIGRP or using the 'network 0.0.0.0' command. The stub feature is compatible with both EIGRP named mode and classic mode, and it works with IPv4 and IPv6.

Real-Life Example

Think of a large bank with a main vault in the city center and several small branch offices in different neighborhoods. Each branch office has a small safe with cash for daily operations. The main vault knows where every branch is and can send armoured cars to deliver or collect cash.

The branch offices do not need to know the locations of other branch offices or the full security layout of the main vault. They simply need to know how to call the main vault for more cash or to deposit excess cash. EIGRP stub routing works similarly.

The branch router (the stub) only communicates with the main office router (the hub). It does not need to know about the other branch routers or the complex network inside the main office. The stub router tells the hub about the devices in its own branch, like sales terminals and office computers, so the hub knows how to reach them.

In return, the hub tells the stub router a simple instruction: if you do not know where to send traffic, send it to me. This is like the main vault telling a branch: if you have a customer who wants to deposit money from another bank, just send it to us. Without stub routing, each branch router would try to learn about every other branch and every server in the main office, filling its memory with thousands of routes.

It would also be tempted to try to route traffic between branches directly, which could cause delays or loops if a direct link does not exist. With stub routing, the branch router stays lean and efficient, only handling its own local traffic and forwarding everything else to the main office. This reduces the chance of routing errors and makes the network faster and more reliable, just like a branch manager only worrying about their own safe and calling the main vault for everything else.

Why This Term Matters

EIGRP stub routing matters because it directly improves network stability, scalability, and performance in real-world IT environments, especially in organizations with many remote locations. In a typical enterprise, there can be hundreds or thousands of branch offices, each with its own router. Without stub routing, every single one of those routers would try to learn the complete routing table, which could include tens of thousands of routes.

This would consume massive amounts of memory and CPU on small, often low-end branch routers, causing them to slow down or crash. It would also increase the time it takes for the network to recover after a failure, because every router would have to recalculate a huge table. By using stub routing, network engineers can dramatically reduce the load on branch routers, meaning they can use cheaper hardware without sacrificing performance.

It also simplifies troubleshooting because the stub router has a very small routing table, making it easy to see if a route is missing or incorrect. Additionally, stub routing prevents routing loops that can occur when a remote router incorrectly advertises a route back into the network, causing packets to bounce around. This is particularly important for networks that rely on EIGRP, as EIGRP does not have the same loop-prevention mechanisms as some other protocols.

From a security perspective, stub routing also limits the information a remote router can learn about the core network, reducing the risk of a compromised branch router exposing sensitive network topology. In cloud and hybrid environments, stub routing is often used to connect virtual private cloud (VPC) networks to on-premises data centers, ensuring that cloud routers do not become overloaded with routes from the enterprise backbone. In summary, stub routing is a fundamental tool for building large, efficient, and reliable networks, and every network professional working with EIGRP must understand it.

How It Appears in Exam Questions

EIGRP stub routing appears in several distinct question patterns on Cisco certification exams. The most common type is the direct knowledge question, where the exam asks: 'Which of the following is true about EIGRP stub routing?' and the correct answer is that a stub router does not learn routes from its neighbors.

Another variant asks: 'What routes does an EIGRP stub router advertise by default?' with the correct answer being connected and summary routes. You also see configuration questions where you are given a scenario and must select the correct command to enable stub routing on a remote router, often with options like 'eigrp stub connected' vs 'eigrp stub receive-only'.

Troubleshooting questions are very common. For example: 'A remote office router is configured as an EIGRP stub. Users at the remote office cannot reach the internet. The hub router is advertising a default route.

What is the most likely cause?' The answer might be that the stub router is configured with 'receive-only', which prevents it from learning any routes, including the default route. Another troubleshooting scenario: 'A network engineer notices that the routing table on a branch router has over 10,000 routes.

What can be done to reduce this?' The answer is to configure the branch router as a stub. You also see architecture and design questions: 'In a hub-and-spoke EIGRP network, which feature prevents a spoke router from being used as a transit?'

The answer is stub routing. There are also scenario-based questions with exhibits showing the configuration of hub and spoke routers, and you must determine why the spoke router does not have a route to a specific subnet. In such questions, you need to check if the stub configuration is correct, for example, if the stub router was configured with only the 'connected' option but the target subnet is redistributed from another protocol.

Finally, simulation questions may require you to configure stub routing on a router in a lab environment, using CLI commands and then verifying the configuration using show commands. In these simulations, a common mistake is forgetting to add the 'connected' keyword when the stub router has static routes or redistributed routes that need to be advertised.

Study enarsi

Test your understanding with exam-style practice questions.

Practise

Example Scenario

A company called TechMart has a headquarters in New York and 50 retail stores across the country. Each store has a single router that connects the store's point-of-sale systems and printers to the headquarters via a WAN link. The headquarters router has a full routing table with all the store subnets and many internal server networks.

The store routers are small and have limited memory. The network administrator configures each store router as an EIGRP stub router using the command 'router eigrp 100' and then 'eigrp stub connected'. This tells each store router to only advertise its own directly connected store network (like the subnet for the store's devices).

In return, the headquarters router advertises a default route to the store routers. Now, when a customer at a store makes a purchase, the point-of-sale system sends the transaction to the headquarters server. The store router checks its routing table, sees it has a default route via the headquarters, and forwards the traffic there.

The headquarters router, knowing the exact store subnet, can route the reply back. If a link between two stores existed (which it does not in this design), the stub configuration would prevent one store router from trying to route traffic through another store, avoiding loops. This keeps the store routers running fast and stable, even during peak sales hours.

Common Mistakes

Thinking that a stub router can learn routes from other routers just like a normal router.

The entire purpose of stub routing is to prevent the stub router from learning routes from its neighbors. It only learns a default route from the hub. If it could learn full routes, the feature would not reduce routing table size or memory usage.

Remember that stub means the router does not accept route updates from neighbors. It only receives a default route from the hub. Think of it as a one-way street for routing information.

Assuming that 'eigrp stub' without any keywords advertises no routes at all.

By default, the 'eigrp stub' command advertises connected and summary routes. If you want no routes advertised, you must use the 'receive-only' keyword. Default behavior is not silent.

Always check the command options. 'eigrp stub' alone means both connected and summary routes are advertised. Use 'eigrp stub receive-only' if you want the stub to advertise nothing.

Configuring stub routing on the hub router instead of the spoke router.

Stub routing is designed for remote or leaf routers that do not need full routing knowledge. The hub router must know all routes to forward traffic correctly. Configuring stub on the hub would prevent the hub from learning about the spokes.

Always apply the 'eigrp stub' command on the remote, spoke router, not on the core or hub router. The hub should remain a normal EIGRP router.

Believing that a stub router can still act as a transit router if there are multiple paths.

One of the key benefits of stub routing is that it prevents the spoke router from being used as a transit. Because the stub does not learn routes from the hub, it cannot forward traffic between two other remote sites. This stops loops and unexpected traffic flow.

Understand that stub routers are endpoint routers. They cannot forward traffic between two other EIGRP-speaking devices. They only forward traffic to or from their own directly connected networks.

Forgetting that stub routing only affects EIGRP routes, not static routes or routes from other protocols.

Stub routing only controls how EIGRP updates are sent and received. If the stub router has static routes or routes from OSPF, those are independent. However, if those routes are redistributed into EIGRP, the stub configuration can control their advertisement.

Keep in mind that stub routing is an EIGRP-specific feature. It does not impact routing from other protocols unless redistribution is involved. For example, a static default route on a stub router is not automatically advertised by EIGRP unless you use the 'static' keyword in the stub command.

Exam Trap — Don't Get Fooled

In an exam question, you see a configuration where a stub router is set up with 'eigrp stub receive-only'. The hub router is advertising a default route into EIGRP. The question asks: 'What will be the default route on the stub router?'

Many learners answer that the stub router will learn the default route from the hub because the hub is advertising it. However, this is wrong. Always remember the exact behavior of 'receive-only': it prevents the stub router from learning any route from any neighbor, including the default route from the hub.

The stub router will only have its own directly connected routes in its routing table. If you need the stub to have a default route, you must either configure a static default route on the stub itself or use a different stub option like 'eigrp stub connected summary' and ensure the hub advertises a default route.

Commonly Confused With

EIGRP Stub RoutingvsEIGRP Route Summarization

Route summarization combines multiple specific routes into one summary route to reduce routing table size. Stub routing restricts the types of routes a router learns and advertises. They both help reduce routing tables, but summarization is about combining routes, while stub routing is about limiting route exchange. They can be used together.

Route summarization is like grouping several local streets into a single main road name. Stub routing is like a small town that only knows the main highway (default route) and ignores all other local roads.

EIGRP Stub RoutingvsEIGRP Passive Interface

A passive interface in EIGRP stops the router from sending and receiving EIGRP hello packets on that interface, effectively preventing any EIGRP neighbor relationships on that link. Stub routing still allows neighbor relationships and route exchange, but limits the content. Passive interfaces stop all EIGRP communication on an interface.

A passive interface is like a locked door that no mail can pass through. Stub routing is like a door that only allows certain types of mail and only from one direction.

EIGRP Stub RoutingvsEIGRP Stuck-in-Active (SIA) Routes

Stuck-in-active is a problem in EIGRP where a router is waiting for a reply from a neighbor after sending a query, causing the route to be in an active state for too long. Stub routing actually helps prevent this by reducing the number of queries sent to spoke routers. They are related but very different concepts.

SIA is like a person who keeps asking everyone for directions and never gets an answer, causing a delay. Stub routing is like telling that person to only ask one trusted person (the hub) and ignore everyone else, avoiding the delay.

Step-by-Step Breakdown

1

Define the Network Design

Identify the hub router (usually at the headquarters or data center) and the spoke routers (at branch offices or remote sites). The hub will have a full routing table, while the spokes need only minimal routing information. This design is called hub-and-spoke.

2

Configure EIGRP on the Hub Router

On the hub router, enable EIGRP with an autonomous system number (e.g., router eigrp 100). Add network statements for all directly connected networks that should participate in EIGRP. Ensure the hub router can reach all subnets. The hub should also be configured to advertise a default route to the spokes, either by a static default route redistributed into EIGRP or by using the 'network 0.0.0.0' command if supported.

3

Configure Basic EIGRP on the Spoke Router

On each spoke router, enable EIGRP with the same autonomous system number. Add network statements for the local subnets (e.g., the branch LAN). Do not add network statements for the WAN interface to the hub if it is a point-to-point link, to keep the configuration clean. The spoke router will form a neighbor relationship with the hub.

4

Apply the eigrp stub Command on the Spoke Router

Under the EIGRP process on the spoke router, enter the 'eigrp stub' command. If you want the spoke to advertise only its directly connected networks, use 'eigrp stub connected'. To include summary routes, use 'eigrp stub connected summary'. To make the spoke advertise nothing, use 'eigrp stub receive-only'. This is the critical step that transforms the spoke into a stub.

5

Verify the Configuration

Use 'show ip eigrp neighbors' on the spoke to confirm the neighbor relationship is up. Use 'show ip route eigrp' on the spoke to verify that it only has a default route (or the routes you expect) and not the full routing table. Use 'show ip eigrp topology' to see the topology table and confirm no unwanted routes exist. On the hub, verify that the spoke's networks are reachable.

6

Test and Troubleshoot

Test connectivity from a device in the branch to a device in the hub. If the spoke does not have a default route, traffic will fail. Check the stub configuration: if 'receive-only' is set, no default route will be learned, and you may need to add a static default route on the spoke. Also verify that the hub is indeed advertising a default route. Use 'debug eigrp packets' cautiously to see what is being exchanged.

Practical Mini-Lesson

EIGRP stub routing is a feature that is both simple to configure and powerful in its effect on network performance. In practice, when you are building a network for a company with many branches, your first instinct should be to enable stub routing on every branch router. This is because the branch routers are often lower-end models (like Cisco ISR 1100 series) that have limited RAM and CPU.

Without stub routing, they would have to store the entire EIGRP topology table, which can easily contain thousands of routes in a large enterprise. Each route uses memory, and each change in the network requires CPU cycles to process updates. By making the branch router a stub, you tell it to only store a few routes: its own local subnets and a default route pointing to the hub.

This reduces memory usage by up to 90% and makes convergence almost instant for the branch. To implement this, you need to access the branch router's CLI. Enter global configuration mode, then go to the EIGRP process.

For example, if your EIGRP autonomous system is 100, type 'router eigrp 100'. Then type 'eigrp stub connected summary'. This tells the branch to advertise its directly connected networks and any manually configured summary routes.

Do not add the 'receive-only' keyword unless you have a specific reason, because then you would need to manually configure a default route on the branch, which adds overhead. On the hub router, you must ensure that a default route is present and is being advertised into EIGRP. The most common way is to configure a static default route on the hub (ip route 0.

0.0.0 0.0.0.0 [next-hop IP]) and then redistribute static into EIGRP using the 'redistribute static' command under the EIGRP process. Alternatively, you can use the 'network 0.0.0.0' command if your hub is the gateway to the internet.

One thing that often goes wrong is that the branch router does not get the default route because the stub configuration is too restrictive. For example, if you use 'eigrp stub receive-only', the branch will not accept any route from the hub, including the default route. Another common issue is that the branch router can reach the hub but not other branches, which is by design — stub routing prevents direct branch-to-branch routing.

If you need branch-to-branch communication, you must route it through the hub. Stub routing also impacts troubleshooting: if a branch user complains they cannot reach a server at another branch, you know the traffic must go through the hub, so you check the hub's routing table. The stub router's simplicity makes it a great diagnostic tool.

In the broader context of network engineering, stub routing is a best practice for any hierarchical network design. It aligns with the principle of keeping the network edge simple and the core intelligent. It also works with other technologies like DMVPN (Dynamic Multipoint VPN) where the hub router acts as the VPN concentrator.

In DMVPN, each spoke router is often configured as an EIGRP stub to prevent the hub from being overloaded with routing updates from hundreds of spokes. By mastering stub routing, you not only pass your exams but also become a better network designer who builds efficient, scalable networks.

Memory Tip

Think of a 'stub' as a 'stump' — a short, simple end piece. A stub router knows only its own networks and a single path (the default route) back to the hub. It cannot learn more because it is the endpoint.

Covered in These Exams

Related Glossary Terms

Frequently Asked Questions

Does a stub router need to have a default route configured manually?

No, not always. If the hub router advertises a default route via EIGRP, the stub router will learn it as long as the stub is not configured with 'receive-only'. If the stub uses 'receive-only', then you must configure a static default route on the stub router manually.

Can a stub router have multiple hub routers for redundancy?

Yes, a stub router can form neighbor relationships with multiple hub routers. The stub will learn a default route from each hub, and EIGRP will load balance or use the best path. The stub will still not learn full routes from the hubs, maintaining the stub behavior.

What happens if I forget to add the 'eigrp stub' command on a spoke router?

The spoke router will behave as a normal EIGRP router, learning the full routing table from the hub and potentially advertising routes back to the hub. This can cause routing loops, increase memory usage, and slow down convergence.

Does stub routing work with EIGRP named mode?

Yes, the 'eigrp stub' command is available in both classic mode and named mode EIGRP configuration. In named mode, the command is configured under the address-family section for IPv4 or IPv6.

Can I configure stub routing on a router that also runs OSPF?

Yes, EIGRP stub routing only affects the EIGRP process. The router can run OSPF or other routing protocols on other interfaces without any conflict. The stub behavior applies solely to EIGRP updates.

What is the difference between 'eigrp stub connected' and 'eigrp stub' without keywords?

Using 'eigrp stub' without keywords defaults to 'connected' and 'summary'. Using 'eigrp stub connected' only advertises directly connected networks and not summary routes. The default option is more common because it also includes summarization.

Can a stub router advertise a default route to the hub?

Generally no, because stub routers are not supposed to advertise routes that could influence the hub's routing table. However, if the stub has a default route from another source (like a static route) and the stub is configured with the 'static' or 'redistributed' keyword, it could. This is not recommended as it can confuse the hub.

Why does my stub router show 'EIGRP stub receive-only' in the running config but still have a default route?

The default route might be a static route configured manually on the stub router, or it might be learned via another protocol like DHCP. The 'receive-only' option only prevents EIGRP updates from being received. It does not affect locally configured routes.

Summary

EIGRP stub routing is a powerful feature that transforms a remote router into a lean, efficient endpoint in a hub-and-spoke network. By restricting the routes a router learns and advertises, stub routing drastically reduces memory and CPU usage on branch routers, speeds up network convergence, and eliminates the risk of routing loops caused by transit traffic. It is a core topic for the Cisco CCNP ENARSI and ENCOR exams, where candidates must understand its configuration options, default behavior, and troubleshooting scenarios.

The key points to remember for the exam are: stub routers advertise only connected and summary routes by default unless otherwise specified; the 'receive-only' option blocks all inbound route learning; and stub routing is configured on the spoke router, not the hub. In real-world networking, stub routing is an essential best practice for any large-scale EIGRP deployment, enabling cost-effective hardware use and simplifying network operations. Mastering this concept will help you design stable, scalable networks and succeed in your certification journey.