EIGRP MASTERCLASS · CHAPTER 5

MD5, passive-interface and the summary that stops the Query

You close Day 1 by controlling who can speak EIGRP with you, choosing where it is spoken and finding out why a summary is the best boundary against a Query that never ends.

13 min readVideos: Day 1, parts 16 to 19Level: intermediate

From point A to point B

Point A: you already triggered a stuck in active and saw how an unanswered Query keeps a route active for minutes. Point B: by the end of this chapter you will protect an adjacency with MD5, decide which interfaces speak EIGRP and use summarization so a Query dies at the first hop instead of crossing the whole domain.

What you will see
  1. A key chain and MD5 authentication applied per interface in classic mode
  2. How to check that the adjacency is authenticated
  3. passive-interface default: turn everything off and enable only what you need
  4. The three forms of the network statement and what auto-summary does
  5. Why summarization stops the Query, on the whiteboard and in Wireshark

MD5 authentication in classic mode

We stay in the Day 1 lab: EIGRP in classic mode, AS 10. In the previous video, RT02 got a key chain called THOR with three keys: key 1, key 2 and key 100. None has accept-lifetime or send-lifetime, so all of them are always valid.

EIGRP authentication is not turned on in the routing process: it is turned on per interface. Two lines do it. The first tells the interface which key chain to use in AS 10; the second enables MD5 mode.

RT02(config)# key chain THOR
RT02(config-keychain)# key 1
RT02(config-keychain-key)# key-string <shared-secret>
RT02(config-keychain-key)# exit
RT02(config-keychain)# exit
RT02(config)# interface GigabitEthernet0/0
RT02(config-if)# ip authentication key-chain eigrp 10 THOR
RT02(config-if)# ip authentication mode eigrp 10 md5
! classic mode only offers md5 here; the adjacency with RT03 drops

In classic mode, MD5 is the only option. When Day 2 reaches named mode, you will see that you can choose between MD5 and HMAC-SHA-256 there.

As soon as you apply MD5 mode, the adjacency with RT03 drops. Why? Because authentication travels inside the EIGRP packets, Hellos included. RT02 starts signing its packets and demanding a signature on the ones it receives; RT03 does not sign anything yet, so RT02 discards its Hellos and the hold time does the rest.

The fix is to repeat the configuration on the other end. On RT03, Jesús creates a key chain with a different name, Jesus, with a single key, key 1, and the same key-string.

RT03(config)# key chain Jesus
RT03(config-keychain)# key 1
RT03(config-keychain-key)# key-string <shared-secret>
RT03(config-keychain-key)# exit
RT03(config-keychain)# exit
RT03(config)# interface GigabitEthernet0/1
RT03(config-if)# ip authentication key-chain eigrp 10 Jesus
RT03(config-if)# ip authentication mode eigrp 10 md5
! same key ID and key-string as RT02: the adjacency comes back
MD5 authentication in classic mode and passive-interface RT02 and RT03 in EIGRP AS 10, classic mode. RT02 uses the key chain THOR on GigabitEthernet0/0 and RT03 uses the key chain Jesus on GigabitEthernet0/1. The chain names are different, but key 1 and its key-string are the same on both sides, so the Hellos carry a valid MD5 digest and the adjacency comes up. If the key ID or the key-string do not match, the Hellos are ignored and the adjacency goes down. A second panel shows passive-interface: with passive-interface default no interface sends Hellos and every neighbor is lost; no passive-interface on the two physical links brings the adjacencies back, while Loopback0 stays passive and its network is still advertised. RT02 key chain THOR key 1 · key-string (shared) Gi0/0 · ip authentication mode eigrp 10 md5 RT03 key chain Jesus key 1 · key-string (shared) Gi0/1 · ip authentication mode eigrp 10 md5 Hello + MD5 digest · AS 10 Hello + MD5 digest · AS 10 MUST MATCH · key ID and key-string MAY DIFFER · key chain name MISMATCH · Hellos ignored → the adjacency goes down Classic mode: MD5 only · named mode: MD5 or SHA-256 PASSIVE-INTERFACE ON RT02 passive-interface default no Hellos on any interface show ip eigrp neighbors → empty no passive-interface Gi0/0 → RT03 is back Gi0/1 → RT01 is back Loopback0 stays passive no Hellos sent there its network is still advertised

The key chain name is local; the key number and the key-string must match. Below, the passive-interface exercise on RT02. Diagram: The House of Routing.

According to Cisco. Every EIGRP packet carries an MD5 digest computed with the shared key: the content is signed, not encrypted. When sending, IOS checks the keys of the chain from lowest to highest and uses the first valid one. If you use accept-lifetime or send-lifetime, the router needs the right time, which is why the class recommends NTP.

Verify the authenticated adjacency

With both ends configured, the adjacency comes back on its own. To check that it really is authenticated, the key command is show ip eigrp interfaces detail:

RT03# show ip protocols
RT03# show ip eigrp interfaces detail
! look for: Authentication mode is md5, key-chain is "Jesus"
RT03# show ip eigrp neighbors
RT03# show ip route

For each interface you see the Hello and hold timers (something ENCOR and ENARSI ask about), the MD5 authentication mode and the key chain in use. On RT02, the interface toward RT03 shows MD5 with the THOR chain; the interface toward RT01 and Loopback0 have no authentication.

Loopback0 does not need it: there is no neighbor behind it. In fact, it should be passive, because it makes no sense to send Hellos there looking for an adjacency. That is the next topic.

passive-interface: choose where to speak

passive-interface tells EIGRP: “do not send Hellos on this interface”. No Hellos means no neighbor, and no neighbor means no route exchange on that interface. The interface’s network, however, is still advertised through the others.

Jesús takes it to the extreme on RT02 with passive-interface default: every interface becomes passive at once. show ip protocols lists all of them and show ip eigrp neighbors is empty. RT02 has no neighbors left.

RT02(config)# router eigrp 10
RT02(config-router)# passive-interface default
RT02(config-router)# do show ip protocols
RT02(config-router)# do show ip eigrp neighbors
! no neighbors: every interface is passive now
RT02(config-router)# no passive-interface GigabitEthernet0/0
RT02(config-router)# no passive-interface GigabitEthernet0/1
RT02(config-router)# do show ip protocols
! only Loopback0 is left as a passive interface

Then he re-enables only what he wants. With no passive-interface GigabitEthernet0/0 the adjacency with RT03 comes back, and RT02’s table fills only with what comes from that side. With no passive-interface GigabitEthernet0/1 RT01 comes back. In the end, the only passive interface is Loopback0, which is exactly right.

Jesús leaves an exercise: apply this pattern to named EIGRP for IPv6. There, adjacencies form over link-local addresses, which exist as soon as you enable IPv6 on an interface. Make everything passive in the address family and enable only what you want: that way you avoid automatic adjacencies you never asked for.

According to Cisco. passive-interface suppresses EIGRP Hellos and routing updates on the interface, but the interface address stays in the topology database. That is why the loopback network is still advertised.

The network statement: three forms

The last block of Day 1 is summarization. Jesús starts with the basics: EIGRP’s native summarization, before summarizing on interfaces (that comes on Day 2). To understand it, look at the network statement first.

RT01 had network 0.0.0.0, which enables EIGRP on every interface. Remove it and the adjacencies drop: you just told EIGRP “shut down everywhere”. From there, Jesús enables EIGRP only on the link network, in three different ways:

RT01# show run | section eigrp
RT01# configure terminal
RT01(config)# router eigrp 10
RT01(config-router)# no network 0.0.0.0
! EIGRP stops on every interface: the adjacencies drop
RT01(config-router)# network 10.10.10.0
RT01(config-router)# no network 10.10.10.0
RT01(config-router)# network 10.10.10.0 255.255.255.0
RT01(config-router)# no network 10.10.10.0 255.255.255.0
RT01(config-router)# network 10.10.10.0 0.0.0.255
FormExampleInterfaces it enables
No masknetwork 10.10.10.0Every interface in the major (classful) network, here 10.0.0.0/8
Subnet masknetwork 10.10.10.0 255.255.255.0Only those in 10.10.10.0/24
Wildcardnetwork 10.10.10.0 0.0.0.255Only those in 10.10.10.0/24

In the lab, IOS accepted all three forms. The difference is in the first one: with no mask or wildcard, EIGRP thinks in major-network boundaries. That is why RT03 still received 10.10.10.0/24 even though RT01 only had network 10.10.10.0: everything sits inside the same block, network 10.

According to Cisco. The documented syntax is network ip-address [wildcard-mask], and the command only enables EIGRP on local interfaces whose address falls in that range. A wildcard is the most explicit form.

auto-summary and the classful boundary

Now network 1 comes in. Jesús adds network 1.1.1.0 on RT01, with no mask, and enables auto-summary. On RT02, the route no longer shows as 1.1.1.0/24: it arrives as 1.0.0.0/8. RT01 summarizes at the major-network boundary because it sees network 1 as class A. That is classful behavior.

RT01(config-router)# network 1.1.1.0
RT01(config-router)# auto-summary
! RT02 now learns the classful summary 1.0.0.0/8
RT01(config-router)# no network 1.1.1.0
RT01(config-router)# network 1.1.1.0 255.255.255.0
! still 1.0.0.0/8 on RT02: auto-summary wins over the mask
RT01(config-router)# no auto-summary
! RT02 learns 1.1.1.0/24 again
RT02# show ip route

The important detail: even if you change the statement to network 1.1.1.0 255.255.255.0, as long as auto-summary is on, RT02 gets the /8. The mask decides which interfaces take part; auto-summary decides how they are advertised when they cross the class boundary. With no auto-summary, RT02 sees 1.1.1.0/24 again.

According to Cisco. In current releases, auto-summary is disabled by default (the change came with IOS 15.0(1)M and 12.2(33)SRE, among others). EIGRP summary routes have an administrative distance of 5.

Why summarize at all? Because EIGRP minimizes the Query when it summarizes.

Summarization stops the Query

On the whiteboard: three routers in a row and network 1.1.1.0 behind RT01. First, without summarization. The route travels as is: RT02 installs it as a successor, and so does RT03.

Now the network goes down. RT01 has no feasible successor, so the route goes active and RT01 sends a Query. The Query looks for an exact match of the prefix. RT02 runs its query lookup: it has 1.1.1.0/24, but as a successor, with no alternate. The algorithm forces it to pass the Query on to RT03, and RT03 is in the same situation. That is how the query domain grows: every router that holds the exact prefix without a feasible successor makes it bigger.

Meanwhile the active timer runs, 3 minutes by default. If a Reply is still missing at 90 seconds, a SIA-Query goes out. In the end, the route is withdrawn from the topology table with an infinite metric.

Summarization bounds the EIGRP query domain Two scenarios with three routers in a row, RT01, RT02 and RT03, when the network 1.1.1.0/24 on RT01 goes down. Without summarization, RT02 and RT03 hold the exact prefix 1.1.1.0/24 as a successor with no feasible successor, so RT01 queries RT02, RT02 has to propagate the query to RT03, and the replies come back hop by hop: the query domain grows, the active timer of 3 minutes runs and a SIA-Query is sent at 90 seconds if a reply is missing. With summarization, RT02 and RT03 only know the summary 1.0.0.0/8. The query for 1.1.1.0/24 finds no exact match on RT02, so RT02 answers at once with a reply that carries an infinite metric and RT03 is never queried: the query domain stops at the summary. WITHOUT SUMMARIZATION · no auto-summary RT01 1.1.1.0/24 · DOWN RT02 1.1.1.0/24 · successor RT01 RT03 1.1.1.0/24 · successor RT02 Query 1.1.1.0/24 Query 1.1.1.0/24 Reply ∞ Reply ∞ RT02: exact match but no feasible successor → it must query RT03 Every router that holds the exact prefix extends the query domain Active timer 3 min · SIA-Query at 90 s if a Reply is missing WITH SUMMARIZATION · RT01 advertises 1.0.0.0/8 RT01 1.1.1.0/24 · DOWN RT02 only 1.0.0.0/8 · no exact match RT03 only 1.0.0.0/8 · not queried Query 1.1.1.0/24 Reply ∞ at once stops here No exact match → no feasible successor to check → no new Query RT02 replies “unreachable” right away and RT01 goes back to passive The summary is the boundary of the query domain

Without a summary, the Query visits every router that holds the exact prefix. With a summary, the first neighbor answers “unreachable” and the domain ends there. Diagram: The House of Routing.

Now with summarization. RT01 advertises 1.0.0.0/8 instead of 1.1.1.0/24. RT02 installs the /8 as a successor and passes it to RT03 in an Update, the packet that carries topology information. That is the first level of summarization, auto-summary; the next one is summarization per interface.

The network goes down again. RT01’s Query still asks about 1.1.1.0/24, because it looks for an exact match. RT02 runs its query lookup and finds nothing: it only knows the /8. No exact match means no feasible successor to evaluate either. RT02 does not propagate the Query: it answers at once with a Reply that says “I do not know that route”. The query domain stops at the summary.

According to Cisco and RFC 7868. The scope of the diffusing computation is controlled by hiding reachability information: summarization, filtering and other means. The EIGRP white paper puts it this way: a Query can also be bounded by manual summarization, autonomous system borders and distribute lists.

The Query in the lab and in Wireshark

Time to prove it. Jesús starts two captures in GNS3 with the eigrp filter: one on the RT01–RT02 link and one on RT02–RT03. He enables auto-summary, and an Update with 1.0.0.0/8 shows up in the capture right away: the EIGRP process advertises the summary as soon as you configure it.

Then he checks show ip eigrp topology, sees network 1 summarized and runs shutdown on the interface of network 1. In the topology table, the route disappears almost instantly. There was no need to wait for the active timer or to reach the last router: the neighbor answered right away.

In Wireshark, the packet he had missed during the SIA exercise finally shows up:

PacketOpcodeWhat the capture shows
Update1The 1.0.0.0/8 summary when auto-summary is enabled
Query3RT01 asks about 1.1.1.0/24 with an infinite metric
Reply4The neighbor returns the route with an infinite metric: it does not have it
Hello5Keepalive; with no data and an acknowledgment number, it is the RTP ACK

Every Query and every Reply is confirmed with an ACK, because they travel reliably. After no shutdown, the equation repeats: Hello, an Update with the network again and the matching ACKs.

The lesson is about design: a large domain with no summaries is the perfect ground for the stuck in active from the previous chapter.

Wrapping up Day 1

Jesús closes the day with one idea: EIGRP demands that you master its terminology, and it is a very mathematical protocol that depends on its metric formula. It also uses neither TCP nor UDP: it runs straight over IP with its own transport, RTP. That is why troubleshooting it calls for method.

The balance: a lot of theory and whiteboard, but also more than 50 advanced labs, with stuck in active, summarization, debug, troubleshooting and authentication. Day 2 will finish summarization and cover the default route, optimization mechanisms and EIGRP named mode for IPv4 and IPv6. Redistribution was left pending.

Class videos

These are the four videos that close Day 1 of the marathon, recorded live on 22 January 2022 with Cisco routers in GNS3 and Wireshark captures. The audio is in Spanish, with subtitles in Spanish, English, French and Portuguese.

Recorded live; Spanish audio with Spanish, English, French and Portuguese subtitles. When you play it, the video loads from YouTube. Day 1 playlist on YouTube

Test what you learned

1. You enable MD5 on RT02’s interface and the adjacency with RT03 drops. Why, and what do you fix?

Answer. Authentication travels inside the EIGRP packets, Hellos included. RT02 discards packets without a valid signature. On RT03, configure a key chain with the same key 1 and the same key-string, and enable ip authentication mode eigrp 10 md5 on its interface.

2. RT02 uses the THOR key chain and RT03 uses the Jesus key chain. Can the adjacency come up?

Answer. Yes. The key chain name is local. What must match is the key number and the key-string.

3. You configure passive-interface default on a router with two neighbors. What happens, and how do you bring back only the links you want?

Answer. Every interface stops sending Hellos and both neighbors are lost. With no passive-interface on each physical link, the adjacencies come back; the loopback stays passive and its network is still advertised.

4. With auto-summary on, you replace network 1.1.1.0 with network 1.1.1.0 255.255.255.0. What does the neighbor see?

Answer. It still sees 1.0.0.0/8. The mask only decides which interfaces take part; auto-summary summarizes at the classful boundary. You need no auto-summary to see the /24.

5. RT02 only knows 1.0.0.0/8 and receives a Query for 1.1.1.0/24. Does it forward it to RT03?

Answer. No. The Query looks for an exact match and RT02 does not have one, so there is no feasible successor to evaluate either. It answers at once with an infinite-metric Reply, and the query domain ends there.

Key takeaways

  • EIGRP authentication is configured per interface: ip authentication key-chain eigrp and ip authentication mode eigrp ... md5. Classic mode only offers MD5.
  • The key chain name can differ; the key and the key-string cannot. Without lifetimes, a key is always valid.
  • show ip eigrp interfaces detail shows the authentication mode, the key chain and the timers of each interface.
  • passive-interface default stops Hellos on every interface; re-enable only those that need neighbors and leave loopbacks passive.
  • With no mask or wildcard, network thinks in major networks. A wildcard makes you explicit.
  • auto-summary summarizes at the classful boundary and is disabled by default today; the summary route has AD 5.
  • The Query looks for an exact match. A neighbor that only holds the summary answers “unreachable” on the spot: summarization is the boundary of the query domain.

Official resources

Source and credits. Chapter written from the EIGRP Masterclass that Jesús Espinoza recorded live in 2022. Text drafted with AI assistance and reviewed; original diagrams by The House of Routing. Technical data and configuration were checked against official Cisco documentation and IETF RFC 7868.

Navigate