EIGRP MASTERCLASS · CHAPTER 9

BFD, default route and redistribution

Load-balance across two paths with different costs, detect a failure in milliseconds and give your whole EIGRP domain a way out to the internet, three different ways.

14 min readVideos: Day 2, parts 14 to 17Level: intermediate

From point A to point B

Point A: your EIGRP network already has a feasible successor, but traffic only uses one path, a failure behind a switch takes 15 seconds to notice and no router knows how to reach the internet. Point B: by the end of this chapter you'll share traffic across two paths with different costs, detect failures in milliseconds with BFD and advertise a default route three ways, knowing when each one fits.

What you'll see
  1. variance and the band that turns a feasible successor into an active route
  2. Why the hold time isn't enough when there's a switch in the middle
  3. BFD with EIGRP: configuration, Wireshark and a single lost ping
  4. Three ways to inject 0.0.0.0/0: summary, network and redistribution

Unequal cost with variance

Day 2 picks up where chapter 8 left off. On RT03, 2.2.2.0/24 has a successor via 192.168.1.2, with a computed distance of 130,816, and a feasible successor via 10.10.11.2. Its reported distance, 128,256, is lower than the feasible distance: it meets the feasibility condition and is a loop-free route.

A feasible successor already saves you the Query when the successor fails. But until then, it carries no traffic. To change that, Jesús reviews the slide on unequal-cost load balancing (UCLB):

  1. It's disabled by default.
  2. The route must meet the feasibility condition.
  3. The feasible successor must be in the topology table.
  4. You enable it with variance: any route whose computed distance is less than or equal to the feasible distance times the variance gets in.

Notice the detail Jesús stresses: what gets compared is the computed distance of the feasible successor, not its reported distance. The variance is a multiplier from 1 to 128, and the default is 1. When you multiply, you create a band; whatever falls inside it load-balances.

variance 2: the band that lets the feasible successor in RT03 reaches 2.2.2.0/24 over two links. The successor via 192.168.1.2 has a computed distance of 130,816, which is the feasible distance. The feasible successor via 10.10.11.2 has a computed distance of 143,360 and a reported distance of 128,256, lower than the feasible distance, so it is loop-free. With variance 1 only the successor is installed. With variance 2 the band goes up to 2 times 130,816, which is 261,632. The computed distance of the feasible successor, 143,360, falls inside the band, so RT03 installs both paths with different metrics and shares traffic between them. RT03 · 2.2.2.0/24 · metric scale 0 130,816 143,360 261,632 variance 2 band: FD × 2 successor · CD = FD SUCCESSOR · via 192.168.1.2 CD 130,816 = FD · Gi0/3 installed with variance 1 and 2 FEASIBLE SUCCESSOR · via 10.10.11.2 RD 128,256 < FD 130,816 → loop-free CD 143,360 ≤ 261,632 → installed too

With variance 2 the band reaches 261,632, and the feasible successor's computed distance, 143,360, falls inside it. Diagram: The House of Routing.

RT03(config)# router eigrp 10
RT03(config-router)# do show ip protocols | include variance
! Maximum metric variance 1
RT03(config-router)# variance 2
RT03(config-router)# do show ip route 2.2.2.0
! D 2.2.2.0 [90/130816] via 192.168.1.2
! D 2.2.2.0 [90/143360] via 10.10.11.2
RT03(config-router)# do show ip eigrp topology 2.2.2.0/24
! 2 successors, FD is 130816

The result shows up in three places. show ip protocols goes from "Maximum metric variance 1" to 2. The routing table shows two routes with different metrics. And the topology table no longer lists one successor and one feasible successor, but two successors. A ping alternates packets between 10.10.11.2 and 192.168.1.2.

Change the delay, not the bandwidth. To make a route meet the feasibility condition you sometimes have to tune the metric. If OSPF runs on the same router, changing bandwidth also changes its cost. With delay you only move EIGRP.

When the Hello comes too late

EIGRP sends a Hello every 5 seconds and waits a 15-second hold time on fast links. If it doesn't hear the neighbor during that time, it declares it down. The problem isn't the router; it's whatever sits between the routers.

Jesús shows it between RT01 and RT02, connected through the switch SW1. First he shuts down Gi0/0 on RT01: the adjacency drops instantly, because DUAL gets the event from the local interface. Then he shuts down the switch port. Both router interfaces stay up, and EIGRP keeps the neighbor until the hold time expires.

To make the wait easier to see, he raises the timers on both ends: Hello to 15 seconds and hold time to 45, three times the Hello.

RT01(config)# interface GigabitEthernet0/0
RT01(config-if)# ip hello-interval eigrp 10 15
RT01(config-if)# ip hold-time eigrp 10 45
RT02(config)# interface GigabitEthernet0/1
RT02(config-if)# ip hello-interval eigrp 10 15
RT02(config-if)# ip hold-time eigrp 10 45
RT01# show ip eigrp neighbors
! the Hold column now counts down from 45

With the switch port down, the counter in show ip eigrp neighbors runs for 45 seconds before the neighbor is dropped. Think of customer traffic with an SLA: you can't lose even 15 seconds waiting for a Hello that will never arrive. That traffic has to move to the backup circuit right away.

BFD: detection in milliseconds

BFD (Bidirectional Forwarding Detection) closes that gap. It's independent of the Layer 3 protocol: EIGRP or OSPF register with BFD and get its failure notice. It has less CPU overhead than lowering the Hello timers and works in milliseconds. It shines on indirect connections: a switch, a provider's cloud, another carrier's transport or a link to AWS.

Failure behind a switch: hold time versus BFD RT01 Gi0/0 and RT02 Gi0/1 are EIGRP neighbors on 10.10.10.0/24 through the switch SW1. When the switch port goes down, both router interfaces stay up, so EIGRP only notices when the hold time expires: 15 seconds by default, 45 seconds in the lab after changing the timers to hello 15 and hold 45. With BFD interval 100, min_rx 100 and multiplier 4, the session goes down after about 400 milliseconds, BFD tells EIGRP and the adjacency drops at once. In the live test only one ping was lost. RT01 Gi0/0 · 10.10.10.1 SW1 port shutdown RT02 Gi0/1 · 10.10.10.2 ✕ link fails here up/up up/up EIGRP HELLO ONLY hello 5 s · hold 15 s by default lab: hello 15 · hold 45 s → neighbor down after 45 s EIGRP + BFD bfd interval 100 min_rx 100 multiplier 4 → ~400 ms BFD down → EIGRP drops the neighbor · 1 ping lost

With a switch in the middle, EIGRP only notices the failure when the hold time expires; BFD notices it in about 400 ms. Diagram: The House of Routing.

The configuration has two parts, repeated on both sides with the same values. On the interface you set the BFD timers; in the EIGRP process, where to use it:

RT01(config)# interface GigabitEthernet0/0
RT01(config-if)# bfd interval 100 min_rx 100 multiplier 4
RT01(config-if)# router eigrp 10
RT01(config-router)# bfd interface GigabitEthernet0/0
! or: bfd all-interfaces (every EIGRP interface)

RT02(config)# interface GigabitEthernet0/1
RT02(config-if)# bfd interval 100 min_rx 100 multiplier 4
RT02(config-if)# router eigrp 10
RT02(config-router)# bfd interface GigabitEthernet0/1

RT01# show bfd neighbors
! session Up · registered protocol: EIGRP
RT01# ping 2.2.2.2 repeat 1000
  • interval 100: sends a BFD packet every 100 ms.
  • min_rx 100: the interval at which it expects to receive them.
  • multiplier 4: how many packets in a row it can miss before declaring the session down. 4 × 100 ms is about 400 ms, a kind of BFD hold time.

With bfd interface you pick specific interfaces; with bfd all-interfaces, Cisco enables it on every EIGRP interface. While only RT01 has it, show bfd neighbors shows the session down. Once RT02 is configured, syslog reports the session up for EIGRP, with a handle that identifies the process.

Wireshark shows the "pandemonium": BFD Echo packets over UDP, destination port 3785, every 100 ms. The odd part is that source and destination are the same IP. The router sends the packet to itself, the neighbor loops it back through its forwarding plane, and that's how the whole path gets checked, like a mirror.

The final test: a continuous ping to 2.2.2.2 with repeat 1000 and a shutdown on the switch. BFD brings the adjacency down at once and only one ping is lost.

Echo mode and redirects. In IOS, BFD echo mode is on by default. Cisco recommends disabling ICMP redirects on those interfaces with no ip redirects to avoid high CPU usage.

RT04, the provider router

Now it's time for the internet exit. Jesús turns RT04 into the provider's router: it runs no EIGRP, it has loopback 100 with 100.100.100.1/24 and a default route back to RT03. Network 100 stands for any internet prefix. Everything below RT03 is a stub network with a single way out.

RT04(config)# interface loopback 100
RT04(config-if)# ip address 100.100.100.1 255.255.255.0
RT04(config-if)# interface GigabitEthernet0/1
RT04(config-if)# description Conexion a RT03 por la GigabitEthernet0/1
RT04(config-if)# ip address 192.168.100.4 255.255.255.0
RT04(config-if)# exit
RT04(config)# ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/1
! RT04 runs no EIGRP: it plays the provider

RT03(config)# interface GigabitEthernet0/1
RT03(config-if)# description Conexion a RT04 por la GigabitEthernet0/1
RT03(config-if)# ip address 192.168.100.3 255.255.255.0
RT03(config-if)# exit
RT03(config)# ip route 100.100.100.0 255.255.255.0 192.168.100.4
RT03(config)# router eigrp 10
RT03(config-router)# network 192.168.100.0 0.0.0.255
RT03(config-router)# passive-interface GigabitEthernet0/1

RT03 reaches network 100 with a static route, and RT04 returns the packet with its default route: static routing fundamentals. The 192.168.100.0/24 link goes into EIGRP, but as a passive interface. Someone in class asks why: there's no point sending Hellos to the provider, and it also keeps the door closed to a man-in-the-middle attack from their side.

RT01 and RT02 see 192.168.100.0/24, but not 100.100.100.0/24. Without a default route, the ping to the internet fails.

Three ways to send a default route into EIGRP AS 10 RT04 plays the provider: it does not run EIGRP, it has loopback 100 with 100.100.100.1/24 and a static default route out of Gi0/1. RT03 connects to RT04 on 192.168.100.0/24, with that network in EIGRP as a passive interface, and to RT02 and RT01 below. Method 1: ip summary-address eigrp 10 0.0.0.0 0.0.0.0 on RT03 Gi0/3. RT03 installs a summary to Null0 with administrative distance 5 and its neighbors learn D star, distance 90. Method 2: a static default route pointing to the exit interface plus network 0.0.0.0; EIGRP treats it as connected and advertises it as internal, D star, distance 90. Method 3: redistribute static with a metric; the route arrives as D EX star, external, with distance 170. RT04 · provider no EIGRP · Lo100 100.100.100.1/24 ip route 0.0.0.0 0.0.0.0 Gi0/1 RT03 · edge 192.168.100.3 · Gi0/1 passive injects 0.0.0.0/0 RT02 → RT01 no route to 100.100.100.0 only the default .4 .3 1 · SUMMARY int Gi0/3 (to RT02) ip summary-address eigrp 10 0.0.0.0 0.0.0.0 RT03: D* 0.0.0.0/0 → Null0 [5/…] RT02/RT01: D* [90/…] beats defaults learned from other protocols on RT03 2 · STATIC + NETWORK ip route 0.0.0.0 0.0.0.0 Gi0/1 router eigrp 10 network 0.0.0.0 to an interface = "connected" RT02/RT01: D* [90/…] next-hop IP: not advertised enables EIGRP on every interface 3 · REDISTRIBUTE ip route 0.0.0.0 0.0.0.0 Gi0/1 router eigrp 10 redistribute static metric … BW · delay · rel · load · MTU RT02/RT01: D*EX [170/…] external: less preferred than OSPF (110) and D (90)

Three ways to inject 0.0.0.0/0 from RT03 and how the route reaches RT02 and RT01. Diagram: The House of Routing.

Method 1: summarize to 0.0.0.0/0

The first method, the one Jesús considers the most efficient, reuses what you saw in chapter 5 and chapter 7: ip summary-address eigrp. Except that instead of a block of networks, you summarize literally everything.

RT03(config)# interface GigabitEthernet0/3
RT03(config-if)# ip summary-address eigrp 10 0.0.0.0 0.0.0.0
RT03# show ip route
! Gateway of last resort is 0.0.0.0 to network 0.0.0.0
! D* 0.0.0.0/0 is a summary, Null0
RT02# show ip route
! Gateway of last resort is 192.168.1.3 to network 0.0.0.0
! D* 0.0.0.0/0 [90/...] via 192.168.1.3
RT01# ping 100.100.100.1

RT03 resyncs with its neighbor and its table changes. A gateway of last resort appears, along with a D route to Null0: the local summary route, which Cisco gives an administrative distance of 5. Null0 because network 0.0.0.0 doesn't exist; it's a wildcard.

On RT02 the route arrives as internal, with administrative distance 90 and an asterisk: candidate default. When the routing lookup finds no match for 100.100.100.0, the router uses its gateway of last resort, 192.168.1.3. RT01 learns it too, and its ping to 100.100.100.1 succeeds; the first ones are lost while ARP resolves.

Watch the Null0 on RT03. According to Cisco, a summary to 0.0.0.0/0 overrides a default route learned from any other protocol on that router; only a static route to 0.0.0.0/0 beats it. In class it works because RT03 has a specific static route to network 100. If RT03 needed to reach any destination, it would need its own static default route.

Jesús removes the summary with no ip summary-address and the internet exit disappears from the whole domain.

Method 2: static route and network 0.0.0.0

On RT03, Jesús replaces the static route to network 100 with a default route to 192.168.100.4. RT03 can now reach the internet, but a static route isn't advertised into the EIGRP domain on its own.

First try: network 0.0.0.0 under router eigrp 10. Live, the route doesn't propagate. After some troubleshooting, the difference shows up: the static route pointed to the next-hop IP. Once it points to the exit interface, RT02 and RT01 learn it as D, internal, with distance 90.

RT03(config)# interface GigabitEthernet0/3
RT03(config-if)# no ip summary-address eigrp 10 0.0.0.0 0.0.0.0
RT03(config-if)# exit
RT03(config)# no ip route 100.100.100.0 255.255.255.0 192.168.100.4
RT03(config)# ip route 0.0.0.0 0.0.0.0 192.168.100.4
! next-hop IP: S* on RT03, not advertised by network 0.0.0.0
RT03(config)# no ip route 0.0.0.0 0.0.0.0 192.168.100.4
RT03(config)# ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/1
RT03(config)# router eigrp 10
RT03(config-router)# network 0.0.0.0
RT02# show ip route
! D* 0.0.0.0/0 [90/...] via 192.168.1.3 (internal)

Cisco's documentation explains why: when a static route points to an interface and a network statement covers it, EIGRP treats it as a connected network and advertises it as internal. Jesús calls it an EIGRP tweak, a kind of redistribution.

Keep the reach of network 0.0.0.0 in mind: it enables EIGRP on every interface with IPv4. That's why it matters that the provider link is already passive.

Method 3: redistribute static

Redistribution is a translator. It takes static, connected, OSPF, EIGRP or BGP routes and converts them to another protocol's metric. You use it in migrations, when you have hundreds of static routes you don't want to convert one by one, and when merging companies that run different IGPs.

Jesús removes network 0.0.0.0, the domain loses the internet ("Jesús, the internet is down") and he applies redistribute static. EIGRP can't make up a metric for a static route, so the command asks for it in order: bandwidth, delay, reliability, load and MTU.

RT03(config)# router eigrp 10
RT03(config-router)# no network 0.0.0.0
RT03(config-router)# redistribute static metric <bandwidth> <delay> 255 1 1500
! bandwidth in kbps · delay in tens of microseconds
! reliability 255 · load 1 · MTU 1500
RT02# show ip route
! D*EX 0.0.0.0/0 [170/...] via 192.168.1.3

In class he uses reliability 255 (fully reliable), load 1 (the lowest load) and MTU 1500. Cisco documents the units: bandwidth in kbps and delay in tens of microseconds. Another documented option is to set the metric with default-metric.

On RT02 the route arrives as D EX, external, candidate default and with administrative distance 170. That's exactly what Jesús wants: if another internet exit arrives through OSPF (110), the EIGRP one stays as backup. And if you redistribute on two edge routers, you can give one more bandwidth and less delay than the other to prefer one exit. That's already traffic engineering.

MethodWhere you configure itHow neighbors see it
Summary 0.0.0.0/0RT03 interface (Gi0/3)D* internal, AD 90; only through that interface
Static to interface + network 0.0.0.0Global route and EIGRP processD* internal, AD 90
redistribute static with a metricEIGRP processD*EX external, AD 170

All three methods show up on certification exams. Your judgment decides which one to use: the summary controls which interface the route goes out of, and redistribution gives you an external route you can fine-tune with the metric.

Class videos

These are the four Day 2 videos this chapter is based on. They were recorded live with Cisco routers in GNS3, debug and Wireshark. 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 2 playlist on YouTube

Test what you learned

1. The FD is 130,816 and the feasible successor has a CD of 143,360. What's the lowest variance that installs it?

Answer. variance 2. With 2, the band reaches 261,632 and the feasible successor's computed distance, 143,360, falls inside. With 1, only the successor is installed.

2. Two routers connect through a switch and a switch port goes down. When does EIGRP notice the failure without BFD?

Answer. When the hold time expires: 15 seconds by default on fast links. The router interfaces stay up, so DUAL gets no local event.

3. With bfd interval 100 min_rx 100 multiplier 4, how long until the session is declared down?

Answer. About 400 ms: 4 missed packets at 100 ms. BFD tells EIGRP and the adjacency drops at once.

4. You configured ip route 0.0.0.0 0.0.0.0 192.168.100.4 and network 0.0.0.0, but the neighbors don't learn the default route. What do you change?

Answer. Point the static route to the exit interface. EIGRP treats a static route to an interface as a connected network and, if a network statement covers it, advertises it as internal. Another option is redistribute static with a metric.

5. RT02 shows D*EX 0.0.0.0/0 [170/…]. How was that route injected?

Answer. Through redistribution, for example redistribute static with a metric. EX means an external route, with administrative distance 170, less preferred than OSPF (110) and internal EIGRP (90).

Key takeaways

  • variance multiplies the feasible distance: any feasible successor whose computed distance falls inside that band load-balances at unequal cost.
  • To meet the feasibility condition, tune the delay rather than the bandwidth if OSPF also runs on the router.
  • With a switch or a cloud in the middle, EIGRP only notices a failure when the hold time expires; BFD detects it in milliseconds.
  • BFD goes on both ends with the same values: timers on the interface and bfd interface or bfd all-interfaces in the process.
  • A summary to 0.0.0.0/0 advertises the default route out of a specific interface and creates a local Null0 route with AD 5.
  • A static route to an interface plus a network statement that covers it is advertised as an internal route (AD 90).
  • redistribute static needs a metric and produces D EX routes with AD 170, useful to prefer one exit over another.

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