Campus Post-Acquisition Integration with EIGRP and OSPF

  • routing

This scenario illustrates Company-A a medium sized enterprise with two core routers (CORE1, CORE2) running OSPF and a pair of multilayer distribution switches (DSW1, DSW2) serving access switches in the plant offices. Company-A has acquired Company-B whose network runs EIGRP. Company-A must connect the two routing domains at two points for redundancy, without creating any routing loops or suboptimal paths without making any changes to Company-B’s ACQ-R1. This blog post describes the steps to complete this scenario.

Technologies in this scenario

  • Multi-area OSPF and stub features
  • EIGRP
  • Route Policies
  • Redistribution of routes

Topology

Image Description

Link Side A Side B Subnet
Core to distribution CORE1 E0/0 DSW1 E0/0 10.0.0.0/30
CORE1 E0/1 DSW2 E0/0 10.0.0.4/30
CORE2 E0/0 DSW1 E0/1 10.0.0.8/30
CORE2 E0/1 DSW2 E0/1 10.0.0.12/30
Backbone CORE1 E0/2 CORE2 E0/2 10.0.0.16/30
Acquisition CORE1 E0/3 ACQ-R1 E0/0 172.16.0.0/30
CORE2 E0/3 ACQ-R1 E0/1 172.16.0.4/30
DSW interlink (Po1) DSW1 E0/2-3 DSW2 E0/2-3 L2 trunk
Access uplinks DSW1 E1/0, E1/1 ASW1 E0/0, ASW2 E0/0 L2 trunk
DSW2 E1/0, E1/1 ASW1 E0/1, ASW2 E0/1 L2 trunk
Hosts ASW1 E0/2 PC10 VLAN 10
ASW2 E0/2 PC20 VLAN 20

Addressing

Item Value
Loopbacks (router IDs) CORE1 10.255.0.1, CORE2 10.255.0.2, DSW1 10.255.0.11, DSW2 10.255.0.12
VLAN 10 USERS 10.10.10.0/24, VIP .1, DSW1 .2, DSW2 .3
VLAN 20 ENGINEERING 10.10.20.0/24, VIP .1, DSW1 .2, DSW2 .3
VLAN 99 MGMT 10.10.99.0/24, VIP .1, DSW1 .2, DSW2 .3, ASW1 .11, ASW2 .12
VLAN 999 Native VLAN on all trunks, no hosts
Acquired company ACQ-R1 Lo0 172.31.255.1, Lo10 172.20.1.0/24, Lo20 172.20.2.0/24, LAN 172.20.10.0/24

Getting Started - Configuring EIGRP

Configuring EIGRP on both Company-A CORE devices. This includes configuring default af-interface configuration as passive-interface; disabling passive-interface on ethernet0/3; setting simple authentication using a password; and activating EIGRP on ethernet0/3 to begin multicast discovery of other EIGRP Neighbors on the link using multicast address 224.0.0.10.

CORE1(config-router)#address-family ipv4 autonomous-system 100
CORE1(config-router-af)#af-interface default
CORE1(config-router-af-interface)#af-interface ethernet0/3
CORE1(config-router-af-interface)#no passive-interface
CORE1(config-router-af-interface)#authentication mode hmac-sha-256 0 Acq-EIGRP-2026
CORE1(config-router-af-interface)#exit
CORE1(config-router-af)#network 172.16.0.0 0.0.0.3


CORE2(config-router-af)#af-interface default 
CORE2(config-router-af-interface)#passive-interface 
CORE2(config-router-af)#af-interface ethernet0/3
CORE2(config-router-af-interface)#no passive-interface
CORE2(config-router-af-interface)#authentication mode hmac-sha-256 0 Acq-EIGRP-2026
CORE2(config-router-af-interface)#exit
CORE2(config-router-af)#network 172.16.0.4 0.0.0.3 

Verifying the network has converged and an assessment of the network prior to performing any redistribution reveals opportunities to perform optimization at CORE by summarizing 10.0.0.0/8 and 172.0.0.0 routes for EIGRP and OSPF respectively. Connected (C) and Local (L) have been omitted.

CORE1#show ip route
[SNIP]
      10.0.0.0/8 is variably subnetted, 15 subnets, 3 masks
O        10.0.0.8/30 [110/200] via 10.0.0.2, 01:03:39, Ethernet0/0
O        10.0.0.12/30 [110/200] via 10.0.0.6, 01:03:09, Ethernet0/1
O        10.10.10.0/24 [110/200] via 10.0.0.6, 01:08:16, Ethernet0/1
                       [110/200] via 10.0.0.2, 01:08:16, Ethernet0/0
O        10.10.20.0/24 [110/200] via 10.0.0.6, 01:08:16, Ethernet0/1
                       [110/200] via 10.0.0.2, 01:08:16, Ethernet0/0
O        10.10.99.0/24 [110/200] via 10.0.0.6, 01:08:16, Ethernet0/1
                       [110/200] via 10.0.0.2, 01:08:16, Ethernet0/0
O        10.255.0.2/32 [110/10001] via 10.0.0.18, 03:29:33, Ethernet0/2
O        10.255.0.11/32 [110/101] via 10.0.0.2, 01:08:16, Ethernet0/0
O        10.255.0.12/32 [110/101] via 10.0.0.6, 01:08:16, Ethernet0/1
      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
D        172.16.0.4/30 [90/1536000] via 172.16.0.2, 00:38:20, Ethernet0/3
      172.20.0.0/24 is subnetted, 3 subnets
D        172.20.1.0 [90/1024640] via 172.16.0.2, 00:38:20, Ethernet0/3
D        172.20.2.0 [90/1024640] via 172.16.0.2, 00:38:20, Ethernet0/3
D        172.20.10.0 [90/1536000] via 172.16.0.2, 00:38:20, Ethernet0/3
      172.31.0.0/32 is subnetted, 1 subnets
D        172.31.255.1 [90/1024640] via 172.16.0.2, 00:38:20, Ethernet0/3

CORE2#show ip route ospf
[SNIP]
      10.0.0.0/8 is variably subnetted, 15 subnets, 3 masks
O        10.0.0.0/30 [110/300] via 10.0.0.14, 01:06:13, Ethernet0/1
O        10.0.0.4/30 [110/200] via 10.0.0.14, 01:06:13, Ethernet0/1
O        10.10.10.0/24 [110/200] via 10.0.0.14, 01:10:58, Ethernet0/1
O        10.10.20.0/24 [110/200] via 10.0.0.14, 01:10:58, Ethernet0/1
O        10.10.99.0/24 [110/200] via 10.0.0.14, 01:10:58, Ethernet0/1
O        10.255.0.1/32 [110/101] via 10.0.0.17, 01:10:58, Ethernet0/2
O        10.255.0.11/32 [110/301] via 10.0.0.14, 01:06:13, Ethernet0/1
O        10.255.0.12/32 [110/101] via 10.0.0.14, 01:10:58, Ethernet0/1
      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
D        172.16.0.0/30 [90/1536000] via 172.16.0.6, 00:30:53, Ethernet0/3
      172.20.0.0/24 is subnetted, 3 subnets
D        172.20.1.0 [90/1024640] via 172.16.0.6, 00:30:53, Ethernet0/3
D        172.20.2.0 [90/1024640] via 172.16.0.6, 00:30:53, Ethernet0/3
D        172.20.10.0 [90/1536000] via 172.16.0.6, 00:30:53, Ethernet0/3
      172.31.0.0/32 is subnetted, 1 subnets
D        172.31.255.1 [90/1024640] via 172.16.0.6, 00:30:53, Ethernet0/3

Performing Redistribution - OSPF & EIGRP

Before configuring redistribution of routing protocols we must configure routing policies to prevent any routing loops (i.e., routes that started OSPF that are advertised to EIGRP should never get redistributed back into OSPF and vice versa).

CORE1(config)#ip prefix-list company-a-summary seq 5 permit 10.0.0.0/8
CORE1(config)#route-map EIGRP-TO-OSP deny 5
CORE1(config-route-map)#description DONT LEAK 10.0.0.0/8 BACK INTO OSPF
CORE1(config-route-map)#match ip address prefix-list company-a-summary
CORE1(config)#route-map EIGRP-TO-OSPF deny 10                
CORE1(config-route-map)#description ROUTES THAT STARTED IN OSPF NEVER GO BACK
CORE1(config-route-map)#match tag 110
CORE1(config)#route-map EIGRP-TO-OSPF permit 20                    
CORE1(config-route-map)#description EVERYTHING ELSE
CORE1(config-route-map)#set tag 90
CORE1(config)#route-map OSPF-TO-EIGRP deny 5  
CORE1(config-route-map)#description ROUTES THAT STARTED IN EIGRP NEVER GO BACK
CORE1(config-route-map)#match tag 90
CORE1(config-route-map)#route-map OSPF-TO-EIGRP permit 10                     
CORE1(config-route-map)#description EVERYTHING ELSE 
CORE1(config-route-map)#set tag 110

CORE2(config)#ip prefix-list company-a-summary seq 5 permit 10.0.0.0/8
CORE2(config)#route-map EIGRP-TO-OSP deny 5
CORE2(config-route-map)#description DONT LEAK 10.0.0.0/8 BACK INTO OSPF
CORE2(config-route-map)#match ip address prefix-list company-a-summary
CORE2(config-route-map)#route-map EIGRP-TO-OSPF deny 10                
CORE2(config-route-map)#description ROUTES THAT STARTED IN OSPF NEVER GO BACK
CORE2(config-route-map)#match tag 110
CORE2(config)#route-map EIGRP-TO-OSPF permit 20                    
CORE2(config-route-map)#description EVERYTHING ELSE
CORE2(config-route-map)#set tag 90
CORE2(config)#route-map OSPF-TO-EIGRP deny 5  
CORE2(config-route-map)#description ROUTES THAT STARTED IN EIGRP NEVER GO BACK
CORE2(config-route-map)#match tag 90
CORE2(config-route-map)#route-map OSPF-TO-EIGRP permit 10                     
CORE2(config-route-map)#description EVERYTHING ELSE 
CORE2(config-route-map)#set tag 110

Redistributing OSPF and EIGRP routes

CORE1(config)#router ospf 1
CORE1(config-router)#redistribute eigrp 100 subnets route-map EIGRP-TO-OSPF
CORE1(config-router)#router eigrp company-a
CORE1(config-router)#address-family ipv4 unicast autonomous-system 100
CORE1(config-router-af)#topology base
CORE1(config-router-af-topology)#redistribute ospf 1 metric 10000 100 255 1 1500 route-map OSPF-TO-EIGRP

CORE2(config)#router ospf 1
CORE2(config-router)#redistribute eigrp 100 subnets route-map EIGRP-TO-OSPF
CORE2(config-router)#router eigrp company-a
CORE2(config-router)#address-family ipv4 unicast autonomous-system 100
CORE2(config-router-af)#topology base
CORE2(config-router-af-topology)#redistribute ospf 1 metric 10000 100 255 1 1500 route-map OSPF-TO-EIGRP

Optimization

As described earlier opportunities to optimize the network can be seen by taking a look at ACQ-R1’s routing table seen below.

ACQ-R1#show ip route eigrp
      10.0.0.0/8 is variably subnetted, 12 subnets, 3 masks
D EX     10.0.0.0/30 [170/1536000] via 172.16.0.5, 00:09:08, Ethernet0/1
                     [170/1536000] via 172.16.0.1, 00:09:08, Ethernet0/0
D EX     10.0.0.4/30 [170/1536000] via 172.16.0.5, 00:09:08, Ethernet0/1
                     [170/1536000] via 172.16.0.1, 00:09:08, Ethernet0/0
D EX     10.0.0.8/30 [170/1536000] via 172.16.0.5, 00:09:08, Ethernet0/1
                     [170/1536000] via 172.16.0.1, 00:09:08, Ethernet0/0
D EX     10.0.0.12/30 [170/1536000] via 172.16.0.5, 00:09:08, Ethernet0/1
                      [170/1536000] via 172.16.0.1, 00:09:08, Ethernet0/0
D EX     10.0.0.16/30 [170/1536000] via 172.16.0.5, 00:09:08, Ethernet0/1
                      [170/1536000] via 172.16.0.1, 00:09:08, Ethernet0/0
D EX     10.10.10.0/24 [170/1536000] via 172.16.0.5, 00:09:08, Ethernet0/1
                       [170/1536000] via 172.16.0.1, 00:09:08, Ethernet0/0
D EX     10.10.20.0/24 [170/1536000] via 172.16.0.5, 00:09:08, Ethernet0/1
                       [170/1536000] via 172.16.0.1, 00:09:08, Ethernet0/0
D EX     10.10.99.0/24 [170/1536000] via 172.16.0.5, 00:09:08, Ethernet0/1
                       [170/1536000] via 172.16.0.1, 00:09:08, Ethernet0/0
D EX     10.255.0.1/32 [170/1536000] via 172.16.0.5, 00:09:08, Ethernet0/1
                       [170/1536000] via 172.16.0.1, 00:09:08, Ethernet0/0
D EX     10.255.0.2/32 [170/1536000] via 172.16.0.5, 00:09:08, Ethernet0/1
                       [170/1536000] via 172.16.0.1, 00:09:08, Ethernet0/0
D EX     10.255.0.11/32 [170/1536000] via 172.16.0.5, 00:09:08, Ethernet0/1
                        [170/1536000] via 172.16.0.1, 00:09:08, Ethernet0/0
D EX     10.255.0.12/32 [170/1536000] via 172.16.0.5, 00:09:08, Ethernet0/1
                        [170/1536000] via 172.16.0.1, 00:09:08, Ethernet0/0

To effectively optimize the network summarization should be performed at Company-A’s CORE EIGRP AF-Interface ethernet0/3 facing ACQ-R1.

CORE1(config)#router eigrp company-a
CORE1(config-router)#address-family ipv4 autonomous-system 100
CORE1(config-router-af)#af-interface e0/3
CORE1(config-router-af-interface)#summary-address 10.0.0.0 255.0.0.0
CORE1(config-router-af-interface)#end

CORE2(config)#router eigrp company-a
CORE2(config-router)#address-family ipv4 autonomous-system 100
CORE2(config-router-af)#af-interface e0/3
CORE2(config-router-af-interface)#summary-address 10.0.0.0 255.0.0.0
CORE2(config-router-af-interface)#end

Verifying the summarized routing information on ACQ-R1.

ACQ-R1#show ip route eigrp 
D     10.0.0.0/8 [90/1536000] via 172.16.0.5, 00:05:24, Ethernet0/1
                 [90/1536000] via 172.16.0.1, 00:05:24, Ethernet0/0

Resilience Testing - Local DUAL Computation

Performing planned failovers is an important part of maintenance as well to ensure our redundant solutions work as intended. Both CORE1 and CORE2 successors for the 10.0.0.0/8 prefix.

ACQ-R1#show ip eigrp topology 10.0.0.0/8 
show ip eigrp topology 10.0.0.0/8
EIGRP-IPv4 VR(ACQ-CORP) Topology Entry for AS(100)/ID(172.31.255.1) for 10.0.0.0/8
  State is Passive, Query origin flag is 1, 2 Successor(s), FD is 196608000, RIB is 1536000
  Descriptor Blocks:
  172.16.0.1 (Ethernet0/0), from 172.16.0.1, Send flag is 0x0
      Composite metric is (196608000/131072000), route is Internal
      Vector metric:
        Minimum bandwidth is 10000 Kbit
        Total delay is 2000000000 picoseconds
        Reliability is 255/255
        Load is 1/255
        Minimum MTU is 1500
        Hop count is 1
        Originating router is 10.255.0.1
  172.16.0.5 (Ethernet0/1), from 172.16.0.5, Send flag is 0x0
      Composite metric is (196608000/131072000), route is Internal
      Vector metric:
        Minimum bandwidth is 10000 Kbit
        Total delay is 2000000000 picoseconds
        Reliability is 255/255
        Load is 1/255
        Minimum MTU is 1500
        Hop count is 1
        Originating router is 10.255.0.2

I’ve modified the delay on the link between CORE1 and ACQ-R1 to make CORE2 a preferred successor route. Now CORE2 is the successor for the prefix 10.0.0.0/8 as seen below but what if we disabled their link, how does EIGRP process this?

ACQ-R1(config)#int e0/0  
ACQ-R1(config-if)#delay 2000
ACQ-R1(config-if)#do show ip eigrp topology 10.0.0.0/8
EIGRP-IPv4 VR(ACQ-CORP) Topology Entry for AS(100)/ID(172.31.255.1) for 10.0.0.0/8
  State is Passive, Query origin flag is 1, 1 Successor(s), FD is 196608000, RIB is 1536000
  Descriptor Blocks:
  172.16.0.5 (Ethernet0/1), from 172.16.0.5, Send flag is 0x0
      Composite metric is (196608000/131072000), route is Internal
      Vector metric:
        Minimum bandwidth is 10000 Kbit
        Total delay is 2000000000 picoseconds
        Reliability is 255/255
        Load is 1/255
        Minimum MTU is 1500
        Hop count is 1
        Originating router is 10.255.0.2
  172.16.0.1 (Ethernet0/0), from 172.16.0.1, Send flag is 0x0
      Composite metric is (1441792000/131072000), route is Internal
      Vector metric:
        Minimum bandwidth is 10000 Kbit
        Total delay is 21000000000 picoseconds
        Reliability is 255/255
        Load is 1/255
        Minimum MTU is 1500
        Hop count is 1
        Originating router is 10.255.0.1

I’ve shutdown the connection between CORE2 and ACQ-R1, in response ACQ-R1 has dropped the dead path through CORE2 (172.16.0.5) and installed the surviving one via CORE1 (172.16.0.1).

Taking a close look at the debug output, the process goes as follows. ACQ-R1 stops receiving hellos from CORE2 (172.16.0.5) for longer than the default 15-second hold time and declares the neighbor down (in production, BFD with 50 ms × 3 timers would detect this in about 150 ms). This triggers a DUAL local computation. DUAL walks the EIGRP topology table for every destination that had a path through CORE2, and marks those paths unreachable with an infinite metric (172.16.0.5 metric 72057594037927935). For 10.0.0.0/8, the lowest remaining metric is through CORE1 (found Dmin is 1441792000). That path also meets the feasibility condition: CORE1’s reported distance is lower than ACQ-R1’s previous feasible distance (RD 131072000 < FD 196608000). This guarantees the path is loop-free, so it is a feasible successor. DUAL removes the path through CORE2 and promotes CORE1 to successor, installing it in the routing table. Because a feasible successor already existed, the route never went Active and no queries were sent to any neighbor. Finally, ACQ-R1 sends updates to its neighbors reflecting the new metric. The entire reroute happened within the same millisecond (10:43:25.300). The 15-second hold timer accounted for all of the outage.

CORE2(config)#int e0/3
CORE2(config-if)#shut

ACQ-R1#debug eigrp fsm
*Nov 21 10:43:25.300: %DUAL-5-NBRCHANGE: EIGRP-IPv4 100: Neighbor 172.16.0.5 (Ethernet0/1) is down: holding time expired
*Nov 21 10:43:25.300: IGRP2: linkdown: start - 172.16.0.5 via Ethernet0/1
*Nov 21 10:43:25.300: DUAL: Destination 172.20.1.0/24 for tid 0
*Nov 21 10:43:25.300: DUAL: Destination 172.20.10.0/24 for tid 0
*Nov 21 10:43:25.300: DUAL: Destination 172.20.2.0/24 for tid 0
*Nov 21 10:43:25.300: DUAL: Destination 172.31.255.1/32 for tid 0
*Nov 21 10:43:25.300: DUAL: Destination 172.16.0.0/30 for tid 0
*Nov 21 10:43:25.300: DUAL: Destination 10.0.0.0/8 for tid 0
*Nov 21 10:43:25.300: EIGRP-IPv4(100): Find FS for dest 10.0.0.0/8. FD is 196608000, RD is 196608000 on tid 0
*Nov 21 10:43:25.300: EIGRP-IPv4(100):  172.16.0.5 metric 72057594037927935/72057594037927935
*Nov 21 10:43:25.300: EIGRP-IPv4(100):  172.16.0.1 metric 1441792000/131072000 found Dmin is 1441792000
*Nov 21 10:43:25.300: DUAL: AS(100) Removing dest 10.0.0.0/8, nexthop 172.16.0.5
*Nov 21 10:43:25.300: DUAL: AS(100) RT installed 10.0.0.0/8 via 172.16.0.1
*Nov 21 10:43:25.300: DUAL: AS(100) Send update about 10.0.0.0/8. Reason: metric chg on tid 0
*Nov 21 10:43:25.300: DUAL: AS(100) Send update about 10.0.0.0/8. Reason: new if on tid 0
*Nov 21 10:43:25.300: DUAL: Destination 172.16.0.4/30 for tid 0
*Nov 21 10:43:25.300: DUAL: linkdown: finish

ACQ-R1#show ip eigrp events
Event information for AS 100:
1    10:43:25.300 Change queue emptied, entries: 1 
2    10:43:25.300 Metric set: 10.0.0.0/8 metric(1441792000) 
3    10:43:25.300 Update reason, delay: new if delay(2000000000) 
4    10:43:25.300 Update sent, RD: 10.0.0.0/8 metric(196608000) 
5    10:43:25.300 Update reason, delay: metric chg delay(2000000000) 
6    10:43:25.300 Update sent, RD: 10.0.0.0/8 metric(196608000) 
7    10:43:25.300 Route installed: 10.0.0.0/8 172.16.0.1 
8    10:43:25.300 Route installing: 10.0.0.0/8 172.16.0.1 
9    10:43:25.300 RDB delete: 10.0.0.0/8 172.16.0.5 
10   10:43:25.300 FC sat rdbmet/succmet: metric(1441792000) metric(131072000) 
11   10:43:25.300 FC sat nh/ndbmet: 172.16.0.1 metric(196608000) 
12   10:43:25.300 Find FS: 10.0.0.0/8 metric(196608000) 

Lab Files: here

SHA256: 2DAAFA02C635E070F17D1FB832A96D70F45DBE4376FFE410287F6D086369735F

Back to all write-ups