Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Overview of EIGRP
routing protocol.
In 2013, Cisco released a basic functionality of EIGRP as an open standard to
EIGRP Packets
IP EIGRP relies on 5 types of packets to maintain its various tables
and establish complex relationships with neighbor routers.
Packet Type
Hello
Acknowledgement
Thanhnd CCIE#50479
Description
Used to discover other EIGRP routers in the network.
Used to acknowledge the receipt of any EIGRP packet.
Update
Query
Reply
Neighbor Discovery
routers:
Use the Hello packet
Thanhnd CCIE#50479
Initial Route
Discovery
Thanhnd CCIE#50479
Hello Packets
Thanhnd CCIE#50479
Hello Holdtime
Hold time - maximum time the router should wait to receive the next
EIGRP
uses
triggered
updates
Update
Packets
Contains only the routing information needed (a change occurs)
Sent only to those routers that require it.
Uses reliable delivery.
EIGRP Packet
Types Query
and Reply
Packets
Why Query?
Another router
could be
attached to the
same
Used
byLAN.
DUAL when searching for networks and other tasks.
sent as unicast.
Thanhnd CCIE#50479
Configure EIGRP
10
Topology
Thanhnd CCIE#50479
11
RID: 3.3.3.3
Thanhnd CCIE#50479
12
12
network Command
13
14
CHECKING COMMANDS
15
R2#showiprouteeigrp
Codes:Llocal,Cconnected,Sstatic,RRIP,Mmobile,BBGP
DEIGRP,EXEIGRPexternal,OOSPF,IAOSPFinterarea
<outputomitted>
Gatewayoflastresortisnotset
10.0.0.0/8isvariablysubnetted,5subnets,2masks
D10.1.103.0/29[90/3523840]via10.1.203.3,00:58:05,Serial0/0/1
172.16.0.0/16isvariablysubnetted,4subnets,2masks
D172.16.1.0/24[90/3526400]via10.1.203.3,00:58:05,Serial0/0/1
D172.16.3.0/24[90/3014400]via10.1.203.3,00:58:05,Serial0/0/1
R2#
Thanhnd CCIE#50479
16
16
EIGRP Neighbors
Amount
Amount of
of time
time since
since this
this neighbor
neighbor
was
was added
added to
to the
the neighbor
neighbor table.
table.
R2#showipeigrpneighbors
EIGRPIPv4NeighborsforAS(1)
HAddressInterfaceHoldUptimeSRTTRTOQSeq
(sec)(ms)CntNum
110.1.203.3Se0/0/11000:03:1528168019
010.1.102.1Se0/0/01200:13:22232340046
R2#
Neighbors
Neighbors
IPv4
IPv4
address
address
Thanhnd CCIE#50479
The
The local
local
interface
interface
receiving
receiving
EIGRP
EIGRP Hello
Hello
packets.
packets.
Seconds
Seconds remaining
remaining
before
before declaring
declaring
neighbor
neighbor down.
down.
Reset
Reset to
to hold
hold time
time
when
when Hello
Hello is
is
received.
received.
17
17
EIGRP Interfaces
R2#showipeigrpinterfaces
EIGRPIPv4InterfacesforAS(1)
XmitQueuePeerQMeanPacingTimeMulticastPending
InterfacePeersUn/ReliableUn/ReliableSRTTUn/ReliableFlowTimerRoutes
Se0/0/010/00/02310/3904780
Se0/0/110/00/0280/231390
Gi0/000/00/000/000
R2#
Thanhnd CCIE#50479
18
18
EIGRP Interfaces
R2#showipeigrpinterfacesdetail
EIGRPIPv4InterfacesforAS(1)
XmitQueuePeerQMeanPacingTimeMulticastPending
InterfacePeersUn/ReliableUn/ReliableSRTTUn/ReliableFlowTimerRoutes
Se0/0/010/00/02310/3904780
Hellointervalis5,Holdtimeis15
Splithorizonisenabled
Nextxmitserial<none>
Packetizedsent/expedited:20/0
Hello'ssent/expedited:2186/4
Un/reliablemcasts:0/0Un/reliableucasts:23/23
Mcastexceptions:0CRpackets:0ACKssuppressed:0
Retransmissionssent:0Outofsequencercvd:1
Topologyidsoninterface0
Authenticationmodeisnotset
<restofoutputomitted>
Thanhnd CCIE#50479
19
19
Thanhnd CCIE#50479
20
20
EIGRP Process ID
RoutingProtocolis"eigrp1"
Outgoingupdatefilterlistforallinterfacesisnotset
Incomingupdatefilterlistforallinterfacesisnotset
Defaultnetworksflaggedinoutgoingupdates
Defaultnetworksacceptedfromincomingupdates
EIGRPIPv4ProtocolforAS(1)
MetricweightK1=1,K2=0,K3=1,K4=0,K5=0
NSFawarerouteholdtimeris240
RouterID:2.2.2.2
Topology:0(base)
ActiveTimer:3min
Distance:internal90external170
Maximumpath:4
Maximumhopcount100
Maximummetricvariance1
EIGRP Router ID
neighbors
R2#
Thanhnd CCIE#50479
21
21
Observing EIGRP
R3#showipeigrptraffic
EIGRPIPv4TrafficStatisticsforAS(1)
Hellossent/received:8319/6103
Updatessent/received:48/43
Queriessent/received:5/9
Repliessent/received:9/5
Ackssent/received:51/57
SIAQueriessent/received:0/0
SIARepliessent/received:0/0
HelloProcessID:145
PDMProcessID:106
SocketQueue:0/10000/2/0(current/max/highest/drops)
InputQueue:0/2000/2/0(current/max/highest/drops)
R3#
Thanhnd CCIE#50479
22
22
R2#debugeigrppacketshello
(HELLO)
EIGRPPacketdebuggingison
R2#
*Feb121:28:40.602:EIGRP:ReceivedHELLOonSe0/0/0paklen20nbr10.1.102.1
*Feb121:28:41.062:EIGRP:SendingHELLOonSe0/0/0paklen20
*Feb121:28:41.062:AS1,Flags0x0:(NULL),Seq0/0interfaceQ0/0iidbQun/rely0/0
*Feb121:28:45.354:EIGRP:SendingHELLOonSe0/0/0paklen20
*Feb121:28:45.354:AS1,Flags0x0:(NULL),Seq0/0interfaceQ0/0iidbQun/rely0/0
*Feb121:28:50.174:EIGRP:SendingHELLOonSe0/0/0paklen20
*Feb121:28:50.174:AS1,Flags0x0:(NULL),Seq0/0interfaceQ0/0iidbQun/rely0/0
*Feb121:28:55.602:%DUAL5NBRCHANGE:EIGRPIPv41:Neighbor10.1.102.1(Serial0/0/0)isdown:
holdingtimeexpired
R2#
Shutdown on a serial link in a lab environment does not work because it brings down both ends of
the link
Thanhnd CCIE#50479
23
23
Thanhnd CCIE#50479
24
24
Passvie Interface
Hello/HoldTimers
IP bandwidth Percent
Default-Route
25
R1(config)#routereigrp1
R1(configrouter)#passiveinterfaceg0/0
R2(config)#routereigrp1
R2(configrouter)#passiveinterfaceg0/0
R3(config)#routereigrp1
R3(configrouter)#passiveinterfaceg0/0
Thanhnd CCIE#50479
26
26
Thanhnd CCIE#50479
27
27
5/15
5/15
R2#showipeigrpinterfacesdetailserial0/0/0
EIGRPIPv4InterfacesforAS(1)
XmitQueuePeerQMeanPacingTimeMulticastPending
InterfacePeersUn/ReliableUn/ReliableSRTTUn/ReliableFlowTimerRoutes
Se0/0/010/00/06810/3903900
Hellointervalis5,Holdtimeis15
<>
R1#showipeigrpinterfacesdetailserial0/0/0
EIGRPIPv4InterfacesforAS(1)
XmitQueuePeerQMeanPacingTimeMulticastPending
InterfacePeersUn/ReliableUn/ReliableSRTTUn/ReliableFlowTimerRoutes
Se0/0/010/00/0129010/39068260
Hellointervalis5,Holdtimeis15
<>
R1#showipeigrpneighbors
EIGRPIPv4NeighborsforAS(1)
HAddressInterfaceHoldUptimeSRTTRTOQSeq
(sec)(ms)CntNum
010.1.102.2Se0/0/01100:03:36282340026
<>
Thanhnd CCIE#50479
28
28
5/15
10/30
R1#showipeigrpinterfacesdetailserial0/0/0
EIGRPIPv4InterfacesforAS(1)
XmitQueuePeerQMeanPacingTimeMulticastPending
InterfacePeersUn/ReliableUn/ReliableSRTTUn/ReliableFlowTimerRoutes
Se0/0/010/00/0129010/39068260
Hellointervalis10,Holdtimeis30
<>
R1#showipeigrpneighbors
EIGRPIPv4NeighborsforAS(1)
HAddressInterfaceHoldUptimeSRTTRTOQSeq
(sec)(ms)CntNum
010.1.102.2Se0/0/01200:25:4712905000054
Thanhnd CCIE#50479
29
29
Thanhnd CCIE#50479
30
30
Propagating a Default
Route
Re
di
st
rib
ut
e
st
at
ic
Redistribute Static
R2(config)# ip route 0.0.0.0 0.0.0.0 serial 0/1/0
R2(config)# router eigrp 1
R2(config-router)# redistribute static
Summary Route
R2(config-if)#ip summary-address eigrp 100 0.0.0.0 0.0.0.0
Network 0.0.0.0
R2(config)#ip route 0.0.0.0 0.0.0.0 lo0
R2(config)#router eigrp 100
R2(config-router)#network 0.0.0.0
Default-Network
R2(config)#ip default-network 192.168.1.0
Thanhnd CCIE#50479
31
31
EIGRP Authentication
32
predefined passwords.
Routers use two types of authentication:
33
33
Thanhnd CCIE#50479
34
34
Thanhnd CCIE#50479
35
35
The keychainR1chaincommand
Thanhnd CCIE#50479
Receiving: accept-lifetime
When receiving an EIGRP packet
37
37
1200904:00:00Jan312009
specifies that this key is only valid for use
when sending packets until January 31, 2009
It is no longer valid for use in sending packets
38
38
Thanhnd CCIE#50479
39
39
The router uses the first, by key number, valid key for sending packets.
R1 (sending):
Will use key 1 for sending, from January 1st to 31st, 2009,
Will use key 2 for sending as of 4:00 am on January 25th, 2009.
Thanhnd CCIE#50479
40
40
R1 (receiving):
Will accept key 1 for received packets, from January 1st 2009,
Will also accept key 2 for received packets, from January 25th 2009.
All other MD5 packets will be dropped.
Thanhnd CCIE#50479
41
41
Verifying Authentication
Thanhnd CCIE#50479
42
42
Verifying Authentication
Key chain R1chain and both keys key 1 (with authentication string
Thanhnd CCIE#50479
43
43
EIGRP Metric
44
EIGRP
Composite
Metric and
the K
Values
EIGRP uses the following values in its composite metric to calculate the
Thanhnd CCIE#50479
45
45
By default:
Thanhnd CCIE#50479
46
46
Using the
bandwidth
Command
Configure the
bandwidth
commands for R1,
R2 and R3.
R1(config)# inter s 0/0/0
R1(config-if)# bandwidth 64
R2(config)# inter s 0/0/0
R2(config-if)# bandwidth 64
R2(config)# inter s 0/0/1
R2(config-if)# bandwidth 1024
R3(config)# inter s 0/0/1
R3(config-if)# bandwidth 1024
Modify the bandwidth on the appropriate serial interfaces.
Be sure to modify both ends of the link.
Thanhnd CCIE#50479
47
47
Example
Metric
Calculation
Using the default values for K1 and K3, you can simplify this
calculation to:
slowest bandwidth (or minimum bandwidth)
plus cumulative sum of all the delays
-----------------------------------------------48
EIGRP route metric
Thanhnd CCIE#50479
48
DUAL
Successor
49
DUAL Concepts
Diffusing Update Algorithm is the algorithm used by EIGRP.
Determines:
Best loop-free path
Loop-free backup paths (which can be used immediately)
DUAL also provides the following:
Fast convergence
Minimum bandwidth usage with bounded updates
DUAL uses several terms that are discussed in more detail
50
50
IP address of the
successor
R3 is my successor
for getting to
192.168.1.0/24
Successo
r
R3
Thanhnd CCIE#50479
51
Feasible Distance
R3 is my successor
for getting to
192.168.1.0/24
Successo
r
destination network.
The metric for the route.
Thanhnd CCIE#50479
52
52
Is R1 a Feasible Successor?
Is R1 a Feasible Successor?
Does R2 know if R1 has a loop-free backup path to
192.168.1.0/24?
Remember, EIGRP is a Distance Vector Routing protocol.
Thanhnd CCIE#50479
53
Feasible
Successor
192.168.1.0/24?
To be a feasible successor, R1 must satisfy the feasibility condition
(FC).
Thanhnd CCIE#50479
54
54
R3
192.168.1.0/24
55
Examining an Entry in
the Topology Table
Destination network
Indicates passive or
active state
Thanhnd CCIE#50479
Feasible distance
Number of successors
56
56
The Successor
R2# show ip eigrp topology
<Output omitted>
P 192.168.1.0/24, 1 successors, FD is 3012096
via 192.168.10.10 (3012096/2816), Serial0/0/1
via 172.16.3.1 (41024256/2170112), Serial0/0/0
Next hop
address of
the successor
Thanhnd CCIE#50479
Feasible distance
Successors (R3)
Reported Distance
Outbound interface to
reach this network
57
57
Next hop
address of the
feasible
successor (R1)
Thanhnd CCIE#50479
Feasible distance if
the feasible
successor (R1) was
the successor
Outbound interface to
reach this network
Feasible Successors (R1)
58
Reported Distance
58
Thanhnd CCIE#50479
59
59
Thanhnd CCIE#50479
60
60
Feasible
Successor?
Successor
R1#show ip route
<Output omitted>
D
Feasible Distance
Thanhnd CCIE#50479
61
Successor
62
62
New
Successor
FD = 2,170,112
63
63
EIGRP network.
Thanhnd CCIE#50479
64
64
DUAL FSM
FSMs defines:
65
65
FSM Example
HUNGRY
(START)
NO FOOD
FOR 5
HOURS
FOOD IS
IN EDIBLE
GET FOOD
EAT MORE
FOOD
FULL
EATIN G
NOT ENOUGH
FOOD
EAT ENOUGH
FOOD
Thanhnd CCIE#50479
66
66
Successor
No Feasible Successor
Thanhnd CCIE#50479
67
67
Successor
No Feasible Successor
R1# show ip eigrp topology
P 192.168.1.0/24, 1 successors, FD is 2170112
via 192.168.10.6 (2170112/2816), Serial0/0/1
Successor (R3)
Thanhnd CCIE#50479
No feasible successor
68
68
New
Successor
69
Successor
X
No Feasible Successor
R1# show ip eigrp topology
P 192.168.1.0/24, 1 successors, FD is 41024256
via 172.16.3.2 (41024256/3012096), Serial0/0/0
Successor (R2)
Thanhnd CCIE#50479
No feasible successor
70
70
Successor
No Feasible Successor
R1# show ip eigrp topology
P 192.168.1.0/24, 1 successors, FD is 2170112
via 192.168.10.6 (2170112/2816), Serial0/0/1
Successor (R3)
Thanhnd CCIE#50479
No feasible successor
71
71
72
Variance command
Router(config)# router eigrp 1
Router(config-router)# variance multiplier
Cisco IOS allows up to 32 equal-cost paths (IOS dependent), 4 by default.
EIGRP does unequal cost load balancing, forwarding packets relative to the metric.
The variance command:
Instructs the router to include routes with a metric less than or equal to n times the minimum metric route
for that destination
n is the number specified by the variance command (1 -128).
Default = 1
The maximum-paths number EIGRP is used to sent the number of load-balancing paths (up to 32 paths).
router.
Thanhnd CCIE#50479
73
Variance command
RD
FS
Succ
FS
Successor: R3 with a FD of 20
Feasible Successors: R2 and R5
R2s RD of 10 < R3s FD of 20
R5s RD of 10 < R3s FD of 20
R4 is NOT a FS because its RD of 25 > R3s FD of 20
Thanhnd CCIE#50479
74
74
Variance command
RD
FS
Succ
FS
Variance = 2
x 2 = 40
R1(config)# router eigrp 110
R1(config-router)# variance 2
Thanhnd CCIE#50479
75
75
EIGRP Optimization
76
EIGRP Summarization
77
Manual Summarization
Thanhnd CCIE#50479
78
78
Manual Summarization
Only pertinent routes shown
192.168.1.0/24,
192.168.2.0/24,
192.168.3.0/24
192.168.1.0/24,
192.168.2.0/24,
192.168.3.0/24
R1#
D
D
D
show ip route
192.168.1.0/24 [90/2172416] via 192.168.10.6, 02:07:38, S0/0/1
192.168.2.0/24 [90/2297856] via 192.168.10.6, 00:00:34, S0/0/1
192.168.3.0/24 [90/2297856] via 192.168.10.6, 00:00:18, S0/0/1
R2#
D
D
D
show ip route
192.168.1.0/24 [90/3014400] via 192.168.10.10, 02:08:50, S0/0/1
192.168.2.0/24 [90/3139840] via 192.168.10.10, 00:01:46, S0/0/1
192.168.3.0/24 [90/3139840] via 192.168.10.10, 00:01:30, S0/0/1
Instead of sending three separate networks, R3 can summarize the 192.168.1.0/24, 192.168.2.0/24, and 192.168.3.0/24
Thanhnd CCIE#50479
79
79
Thanhnd CCIE#50479
80
80
Configure EIGRP
Manual
Summarization
192.168.0.0/22
192.168.0.0/22
Thanhnd CCIE#50479
81
81
Verify EIGRP
Manual
Summarization
192.168.0.0/22
192.168.0.0/22
Thanhnd CCIE#50479
82
82
172.16.1.0/24
172.16.2.0/24
172.16.3.0/24
R1
Summary Update: 172.16.0.0/16
R2
172.16.0.0/16 via R1
Classful Networks
Class A: 0.0.0.0 to 127.255.255.255
Class B: 128.0.0.0 to 191.255.255.255
Class C: 192.0.0.0 to 223.255.255.255
Thanhnd CCIE#50479
83
summarization is disabled.
R1(config-router)# no auto-summary
172.16.1.0/24
172.16.2.0/24
172.16.3.0/24
44
//22
..00 44
..11 00//22 44
1166 22.. //22
22.. 66.. ..00
1177 22..11 66..33
1177 22..11
1177
Thanhnd CCIE#50479
84
84
EIGRP Stub
85
Stub Routers
86
Stub Routers
Queries
X
Im a Stub
87
87
Thanhnd CCIE#50479
88
88
Stub Routers
Queries
X
Im a Stub
89
Thanhnd CCIE#50479
89
eigrpstubconnected
Router B will advertise only
10.1.2.0/24 to Router A.
Notice that although 10.1.3.0/24 is
eigrpstubconnected
Thanhnd CCIE#50479
90
eigrpstubsummary
Router B will advertise only
Thanhnd CCIE#50479
91
91
eigrpstubstatic
Router B will advertise only
eigrpstubstatic
Thanhnd CCIE#50479
92
92
eigrpstubreceiveonly
Router B will not advertise anything to
Router A.
eigrpstubreceiveonly
Thanhnd CCIE#50479
93
93
eigrpstubredistributed
Router B will advertise only
Thanhnd CCIE#50479
94
94
95
EIGRP
Queries and
Stuck in
Active
Router loses a route and does not have an FS in its topology table, it
Thanhnd CCIE#50479
96
Queries
Replies
SIA
Router
C
Router D
Router
A
Thanhnd CCIE#50479
97
97
Stuck-in-Active
EIGRP 101
EIGRP 102
Misconceptions
Using multiple EIGRP domains (ASs) to simulate OSPF areas (later) will
help limit the scope of the queries.
Thanhnd CCIE#50479
This is not true, the boundary router will create a new EIGRP query into the
other EIGRP domain.
98
98
Preventing SIA
Cisco IOS Software Release 12.1(5) and later, with the Active Process
Enhancement feature.
This feature enables an EIGRP router to monitor the progression of the
search for a successor route and ensure that the neighbor is still
reachable.
Thanhnd CCIE#50479
99
99
Active Process
Enhancement
feature
Cisco IOS Software Release 12.1(5) and later, with the Active Process
Enhancement feature.
This feature enables an EIGRP router to monitor the progression of the
search for a successor route and ensure that the neighbor is still
reachable.
Thanhnd CCIE#50479
100
100
10.1.1.0/24 gone; no FS
Never heard from B
Query
So after 3 min reset adjacency along with all networks
3 min timer
10.1.1.0/24 gone; no FS
No entry so sends Query
Bad link; reply never makes it
Thanhnd CCIE#50479
101
Thanhnd CCIE#50479
10.1.1.0/24 gone; no FS
Query
10.1.1.0/24 gone; no FS
No entry so sends Query
Bad link; reply never makes it
102
102