EIGRP Implementation
Complete the full lesson to earn 25 points
Work through each section, then tap “Mark as Complete” on the last one.
✦ Skip the page breaks and see fewer ads — read each lesson on a single page with Pro
Lesson: EIGRP Implementation in Network Architecture
Introduction to EIGRP
The Enhanced Interior Gateway Routing Protocol (EIGRP) stands as one of the most significant protocols in the history of network engineering. Developed by Cisco, it was originally a proprietary protocol before being partially opened as an open standard (RFC 7868). EIGRP is classified as an "Advanced Distance Vector" or "Hybrid" routing protocol. It combines the ease of configuration found in distance-vector protocols with the fast convergence and loop-free path selection of link-state protocols.
Understanding EIGRP is critical for network architects because it offers a balance between complexity and performance. Unlike OSPF, which requires a strict hierarchical area structure, EIGRP is highly flexible, allowing for arbitrary network designs. It uses the Diffusing Update Algorithm (DUAL) to calculate the shortest path, ensuring that loops are mathematically impossible within a stable topology. For engineers managing medium-to-large enterprise networks, EIGRP provides a reliable mechanism for routing traffic dynamically while maintaining low overhead on system resources.
In this lesson, we will dissect the mechanics of EIGRP, move through the configuration steps, analyze its metric calculation, and discuss the best practices required to build a stable, scalable routing environment.
The Core Mechanics of EIGRP
Before diving into configuration, it is essential to understand how EIGRP makes decisions. EIGRP does not simply rely on hop counts like RIP; instead, it uses a complex formula involving bandwidth, delay, reliability, and load to determine the best path.
The DUAL Algorithm
The Diffusing Update Algorithm (DUAL) is the "brain" of EIGRP. Its primary function is to ensure that the network remains loop-free at all times. DUAL maintains a topology table that contains not just the best path, but also potential backup paths. These paths are categorized as follows:
- Successor: The best path to a destination, which is installed in the routing table.
- Feasible Successor (FS): A backup path that is guaranteed to be loop-free. To qualify as an FS, the reported distance from the neighbor must be strictly less than the feasible distance of the current successor.
- Feasible Distance (FD): The lowest calculated distance to a destination since the last time the route transitioned from active to passive state.
- Reported Distance (RD): The distance to a destination as advertised by a neighbor.
Callout: The "Feasibility Condition" The Feasibility Condition is the mathematical safeguard that prevents routing loops in EIGRP. By requiring the neighbor's reported distance to be lower than the current feasible distance, EIGRP ensures that a backup path cannot loop back through the local router. This allows for instantaneous convergence, as the router can immediately switch to an FS if the primary link fails.
EIGRP Metric Components
By default, EIGRP uses bandwidth and delay to calculate its metric. While reliability and load are configurable, they are rarely used in production environments because they are dynamic and can cause frequent, unnecessary route re-calculations (flapping).
The standard formula is:
Metric = 256 * (Bandwidth + Delay)
Bandwidth is represented as the slowest link in the path, and delay is the sum of all delays along the path. By manipulating these values, network architects can influence traffic flow, effectively steering traffic toward specific links regardless of the physical path length.
EIGRP Configuration Steps
Implementing EIGRP requires a structured approach. We will examine the modern "Named Mode" configuration, which is the industry standard for modern Cisco IOS environments.
Step 1: Enabling the EIGRP Process
In Named Mode, the configuration is structured hierarchically. You define the autonomous system (AS) and then enter the address family configuration.
Router(config)# router eigrp CUSTOMER_CORE
Router(config-router)# address-family ipv4 unicast autonomous-system 100
Router(config-router-af)# network 10.1.1.0 0.0.0.255
Router(config-router-af)# network 192.168.1.0 0.0.0.255
Step 2: Interface Configuration
It is vital to explicitly define which interfaces participate in EIGRP. Using the network command is a broad approach, but for granular control, you should configure interfaces individually.
Router(config-router-af)# af-interface GigabitEthernet0/1
Router(config-router-af-interface)# summary-address 172.16.0.0 255.255.0.0
Router(config-router-af-interface)# hello-interval 5
Router(config-router-af-interface)# hold-time 15
Note: When using Named Mode, always ensure that your Autonomous System (AS) number matches across all routers in the routing domain. EIGRP neighbors will not form if the AS numbers do not align.
Advanced Features and Best Practices
Summarization
Summarization is the key to scaling any routing protocol. By summarizing routes at the distribution layer, you limit the propagation of topology changes. If a link flaps in the access layer, a summary route prevents that flap from triggering a DUAL computation on the core routers.
In EIGRP, summarization can be performed on any interface. This is a significant advantage over OSPF, which only allows summarization at Area Border Routers (ABRs) or Autonomous System Boundary Routers (ASBRs).
Authentication
Security is non-negotiable in modern network design. EIGRP supports MD5 and HMAC-SHA authentication. You should always enable authentication to prevent unauthorized routers from forming adjacencies and injecting malicious routes into your topology.
Router(config-router-af-interface)# authentication mode hmac-sha-256 PASSWORD123
Passive Interfaces
A common mistake is forgetting to set interfaces to "passive" when they connect to end-user devices. If an interface is not configured as passive, the router will send EIGRP "Hello" packets out of that port. This is a security risk and wastes bandwidth.
Router(config-router-af)# af-interface default
Router(config-router-af-interface)# passive-interface
Router(config-router-af-interface)# no af-interface GigabitEthernet0/1
In this example, we set all interfaces to passive by default, then explicitly enable EIGRP only on the interface connected to our neighbor.
Comparing EIGRP with Other Protocols
To understand where EIGRP fits, it helps to compare it directly with OSPF, its primary competitor in the enterprise space.
| Feature | EIGRP | OSPF |
|---|---|---|
| Convergence | Extremely Fast (via DUAL) | Fast (via Dijkstra) |
| Metric | Bandwidth, Delay (Composite) | Cost (Bandwidth based) |
| Hierarchy | Flexible / Flat | Strict Areas required |
| Summarization | Any interface | ABR / ASBR only |
| Standard | Cisco / Partial Open | Open Standard |
Callout: Why Choose EIGRP? EIGRP is often chosen for its "set and forget" nature. Because it does not require a complex area design, it is easier to implement in networks that have grown organically over time. However, if you are working in a multi-vendor environment (e.g., mixing Cisco with Juniper or Arista), OSPF is the safer choice due to its universal standardization.
Common Pitfalls and Troubleshooting
The "Stuck in Active" (SIA) State
The most notorious issue in EIGRP is the "Stuck in Active" state. This happens when a router sends a query to its neighbors about a lost route and does not receive a reply within the allotted time (default 3 minutes). This usually occurs in large, flat networks where the query domain is too wide.
How to avoid SIA:
- Summarize routes: Keep the query domain small. If a query hits a summary boundary, the summary router answers the query, and it stops there.
- Use Stub Routing: Configure remote branches as "stubs." A stub router tells its neighbors, "Don't send me queries; I am not a transit path." This significantly reduces the load on the network.
Mismatched K-Values
EIGRP uses constants known as "K-values" to calculate metrics. If these values are not identical on all routers in an AS, the routers will not form an adjacency.
Warning: Never change the default K-values (K1=1, K2=0, K3=1, K4=0, K5=0) unless you have a very specific engineering requirement. Changing these values across a network is a common source of major outages.
Neighbors Not Forming
If your routers refuse to become neighbors, check the following checklist:
- AS Number: Ensure it matches on both sides.
- Subnet: Ensure the interfaces are in the same subnet and the masks match.
- Authentication: Ensure the keys and algorithms match.
- Passive-interface: Check if the interface is accidentally set to passive.
- MTU: While EIGRP doesn't strictly require matching MTU like OSPF, it is good practice to keep them consistent to prevent fragmentation issues.
Practical Deployment Scenario: Branch Office
Imagine you are designing a network for a branch office connected to a corporate headquarters. You have a dual-homed connection for redundancy.
- Core Router: You configure the core to aggregate all routes from the branch.
- Branch Router: You configure this router as an EIGRP stub to prevent it from being queried for routes that don't exist behind it.
- Redundancy: By using EIGRP's unequal cost load balancing (the
variancecommand), you can force traffic across both the primary and backup links simultaneously, provided the backup link meets the feasibility condition.
Router(config-router-af-topology)# variance 2
By setting the variance to 2, the router will install paths into the routing table that have a metric up to 2 times higher than the best path, allowing for efficient use of backup bandwidth.
Detailed Configuration Walkthrough: Step-by-Step
Let us walk through the process of setting up a standard EIGRP instance between two routers, Router-A and Router-B.
Phase 1: Preparation
Before you type a single command, verify your addressing.
- Router-A: GigabitEthernet0/0 is 10.0.0.1/30
- Router-B: GigabitEthernet0/0 is 10.0.0.2/30
Phase 2: Configuration on Router-A
Access the CLI and enter global configuration mode.
Router-A# configure terminal
Router-A(config)# router eigrp ENTERPRISE
Router-A(config-router)# address-family ipv4 unicast autonomous-system 10
Router-A(config-router-af)# af-interface GigabitEthernet0/0
Router-A(config-router-af-interface)# hello-interval 5
Router-A(config-router-af-interface)# exit-af-interface
Router-A(config-router-af)# network 10.0.0.0 0.0.0.3
Router-A(config-router-af)# exit
Phase 3: Configuration on Router-B
Repeat the steps on the second router.
Router-B# configure terminal
Router-B(config)# router eigrp ENTERPRISE
Router-B(config-router)# address-family ipv4 unicast autonomous-system 10
Router-B(config-router-af)# af-interface GigabitEthernet0/0
Router-B(config-router-af-interface)# hello-interval 5
Router-B(config-router-af-interface)# exit-af-interface
Router-B(config-router-af)# network 10.0.0.0 0.0.0.3
Router-B(config-router-af)# exit
Phase 4: Verification
Once configured, use the following commands to verify the state of the protocol.
show ip eigrp neighbors: This command confirms that the adjacency is up. You should see the IP address of the neighbor and the interface used.show ip eigrp topology: This shows the internal database. Look for the "P" (Passive) status, which indicates a stable route.show ip route eigrp: This displays the specific routes learned via EIGRP in the global routing table.
Advanced Optimization: Tuning EIGRP
Beyond basic connectivity, EIGRP allows for deep tuning. One of the most powerful tools is manual offset lists. If you have two paths to the same destination and you want to prefer one over the other, you can artificially increase the metric of the less-preferred path.
Router(config)# access-list 10 permit 192.168.100.0 0.0.0.255
Router(config)# router eigrp ENTERPRISE
Router(config-router-af)# topology base
Router(config-router-af-topology)# offset-list 10 in 1000 GigabitEthernet0/1
This configuration adds a value of 1000 to the metric of any route matching ACL 10 arriving on interface G0/1. This is a surgical way to influence traffic patterns without changing the physical topology.
Security in EIGRP
While we touched on authentication, there is another layer to consider: ACLs and Route Maps. You should never trust the routes received from a neighbor implicitly. Use distribute-lists to filter incoming and outgoing updates.
Router(config)# ip prefix-list FILTER_IN deny 10.0.0.0/8 le 32
Router(config)# ip prefix-list FILTER_IN permit 0.0.0.0/0 le 32
Router(config)# router eigrp ENTERPRISE
Router(config-router-af)# af-interface GigabitEthernet0/1
Router(config-router-af-interface)# distribute-list prefix FILTER_IN in
This ensures that your router will not accept any routes belonging to the 10.0.0.0/8 network from this specific interface. This is a critical defense-in-depth measure.
Best Practices Summary
To ensure your EIGRP deployment is successful and manageable, adhere to these industry-standard practices:
- Consistent AS Numbers: Standardize your AS numbering across the entire organization.
- Summarize Aggressively: Always summarize at the distribution layer to keep the routing table clean and the query domain contained.
- Use Stub Routing: Configure all edge/branch routers as stubs.
- Secure with Auth: Always use HMAC-SHA authentication.
- Passive Interfaces: Use
passive-interface defaultand selectively enable interfaces to avoid leaking routing information to untrusted segments. - Bandwidth Consistency: Ensure the bandwidth command is correctly configured on all interfaces, especially on tunnels or virtual links, as EIGRP relies on these values for metric calculation.
- Monitor with SNMP: Use network monitoring tools to track neighbor state changes and route fluctuations.
Troubleshooting Checklist
When things go wrong, follow this systematic approach:
- Layer 1/2 Check: Is the physical cable connected? Is the interface status "up/up"?
- Neighbor Check: Are the routers seeing each other? If not, check authentication and subnet masks.
- Topology Check: Is the route in the topology table? If it is not in the topology table, it will never make it to the routing table.
- Metric Check: Is the metric what you expect? If a route is not being selected as the successor, check the feasibility condition.
- Resource Check: Are the routers under heavy CPU load? EIGRP is efficient, but if a router is struggling, it may miss hello packets, causing the neighbor relationship to flap.
Future-Proofing Your Design
As networks evolve toward software-defined architectures, EIGRP remains relevant due to its integration with Cisco's SD-WAN and DNA Center solutions. While modern automation tools handle much of the configuration, the underlying principles of DUAL, feasibility, and metric manipulation remain the foundation.
By mastering EIGRP, you are not just learning a protocol; you are learning how to manage path selection and convergence in a way that is predictable and scalable. Whether you are managing a small office or a large campus, the skills you have learned here regarding summarization, stub routing, and filtering are universal concepts that apply to any routing protocol you might encounter in your career.
Key Takeaways
- DUAL is the Foundation: EIGRP’s loop-free nature is guaranteed by the DUAL algorithm and the Feasibility Condition. Always ensure your backup paths meet this condition.
- Named Mode is Standard: Always use EIGRP Named Mode for new deployments. It offers a more organized, hierarchical configuration structure that is easier to troubleshoot.
- Summarization is Mandatory for Scale: Do not allow a flat network to grow indefinitely. Summarize routes at boundaries to prevent "Stuck in Active" (SIA) scenarios and minimize the blast radius of network changes.
- Security is Essential: Never deploy EIGRP without authentication. Use HMAC-SHA and distribute-lists to control which routes are accepted or advertised.
- Stub Routing is Your Friend: Use the
eigrp stubcommand on all remote or branch routers to reduce the query load on your core infrastructure. - Metric Manipulation: Use bandwidth and delay adjustments or offset-lists to steer traffic intentionally rather than relying solely on default path selection.
- Proactive Monitoring: Use passive interfaces by default and monitor neighbor adjacencies to detect issues before they impact end-user performance.
By applying these principles, you will be able to design and maintain high-performing, stable network architectures that leverage the full power of EIGRP. Always remember that the best routing design is one that is simple, documented, and secure.
Continue the course
Enjoying the courses?
Everything stays free. Pro shows fewer ads, doubles your daily points limit so you progress twice as fast, and lets you read each lesson on one page.
- ✓ Fewer advertisements
- ✓ 2× daily points limit
- ✓ Distraction-free lessons