Professional Documents
Culture Documents
Division
Course Name: CCNA
Chapter 7: Enhanced IGRP
(EIGRP) and Open Shortest Path
First (OSPF)
1
All Rights reserved For JUST
Distance Vector vs. Link State
Link State
Distance Vector Updates are event
Updates frequently triggered
Each router is "aware" Each router is "aware"
only of its immediate of all other routers in
neighbors the "area"
Fast convergence
Slow convergence
Less subject to routing
Prone to routing loops loops
Easy to configure More difficult to
configure 2
All Rights reserved For JUST
Comparison Continued
3
All Rights reserved For JUST
4
All Rights reserved For JUST 4
EIGRP
IGRP
• DV OSPF
• Easy to configure • LS
• Neighbor • Incremental Updates
• Advanced Metric • Multicast
• Periodic • Open Standard
• Broadcast
• EIGRP
– Hybrid
– DUAL
– Topology Database
– Rapid Convergence
– Reliable 5
All Rights reserved For JUST
Overview
Enhanced Interior Gateway Routing Protocol (EIGRP) is a Cisco-
proprietary routing protocol based on Interior Gateway Routing
Protocol (IGRP).
EIGRP supports:
Rapid convergence
Reduced bandwidth usage
Multiple network-layer protocols
8
All Rights reserved For JUST
Neighbor Discovery
K1 – BW
K2- Delay
K3-Load
K3-Reliability
K5-MTU
9
All Rights reserved For JUST
Metric Calculation
The metrics used by EIGRP in making routing decisions are (lower the metric the better):
bandwidth
delay
load
Reliability
MTU
Analogies:
Think of bandwidth as the width of the pipe
and
delay as the length of the pipe.
Bandwidth is the carrying capacity
Delay is the end-to-end travel time. 10
All Rights reserved For JUST
Neighbor Table
11
All Rights reserved For JUST
Diffusing Update Algorithm
Diffusing Update Algorithm (DUAL)
– Purpose
• EIGRP’s primary method for preventing routing loops
– Advantage of using DUAL
• Provides for fast convergence time by keeping a list of
loop-free backup routes
13
All Rights reserved For JUST
Successor & Feasible Successor
A successor is a route selected as the primary route to
use to reach a destination.
DUAL calculates Successor (Primary Route) and places it
in the routing table (and topology table)
Can have up to 4 successors of equal or unequal value
DUAL calculates Feasible Successor (Backup Route) and
places it in the Topology Table.
Promoted to successor if the route goes down if it has a
lower cost than current successor
If no FS in Table - Send query
Multiple feasible successors for a destination can be
retained in the topology table although it is not
mandatory
14
All Rights reserved For JUST
EIGRP Concepts & Terminology
EIGRP routers that belong to different autonomous
systems (ASes) don’t automatically share routing
information
16
All Rights reserved For JUST
EIGRP Terminology and Operations
18
All Rights reserved For JUST
Diffusing Update Algorithm (DUAL)
All route computations in EIGRP are handled by DUAL
One of DUAL's tasks is maintaining a table of loop-free paths to
every destination.
This table is referred to as the topology table
DUAL saves all paths in the topology table
The least-cost path(s) is copied from the topology table to the
routing table
In the event of a failure, the topology table allows for very quick
convergence if another loop-free path is available
If a loop-free path is not found in the topology table, a route
recomputation must occur
DUAL queries its neighbors, who, in turn, may query their
neighbors, and so on...
Hence the name "Diffusing" Update Algorithm
19
All Rights reserved For JUST
VLSM Support
EIGRP supports the use of Variable- Length Subnet Masks
20
All Rights reserved For JUST
Discontiguous Network
Assignment
21
All Rights reserved For JUST
Configuring EIGRP
Router(config-router)#network network-number
200.0.0.10 200.0.0.13
255.255.255.252 R2 255.255.255.252
R1 R3
S0
S0 200.0.0.9
200.0.0.14 200.0.0.33
E0
200.0.0.17 E0
255.255.255.224
255.255.255.240 200.0.0.18 200.0.0.34
A B
R3#config t
R1#config t Enter configuration commands, one per line. End with
Enter configuration commands, one per line. End with CNTL/Z. CNTL/Z.
R1(config)#router eigrp 10
R3(config)#router eigrp 10
R1(config-router)#network 200.0.0.16
R3(config-router)#network 200.0.0. 32
R1(config-router)#network 200.0.0. 8
R1(config-router)#^Z R3(config-router)#network 200.0.0. 12
R3(config-router)#^Z
24
All Rights reserved For JUST
Verifying the EIGRP Configuration
To verify the EIGRP configuration a number of show
and debug commands are available.
25
All Rights reserved For JUST
26
All Rights reserved For JUST 26
Open Shortest Path First (OSPF)
27
All Rights reserved For JUST
Link State
28
All Rights reserved For JUST
OSPF Hello
B C
29
All Rights reserved For JUST
"Hello" Packets
30
All Rights reserved For JUST
Link State Advertisement (LSA)
31
All Rights reserved For JUST
Link State
32
All Rights reserved For JUST
Tables
Neighbor
Contain information about the neighbors
Neighbor is a router which shares a link on same network
Another relationship is adjacency
Not necessarily all neighbors
LSA updates are only when adjacency is established
33
All Rights reserved For JUST
Tables
Topology
Contain information about all network and path to reach any
network
All LSA’s are entered in to topology table
When topology changes LSA’s are generated and send new LSA’s
On topology table an algorithm is run to create a shortest path,
this algorithm is known as SPF or dijkstra algorithm
34
All Rights reserved For JUST
Tables
Routing Table
Also knows as forwarding database
Generated when an algorithm is run on the topology database
Routing table for each router is unique
35
All Rights reserved For JUST
OSPF Terms
Backbone area
Link
Internal routers
Router ID
Area Border Router
Neighbours (ABR)
Adjacency Autonomous System
OSPF Area Boundary Router
(ASBR)
36
All Rights reserved For JUST
Link
A network or router interface assigned to a given
network
Link (interface) will have "state" information
associated with it
Status (up or down)
IP Address
Network type (e.g. Fast Ethernet)
Bandwidth
Addresses of other routers attached to this interface
37
All Rights reserved For JUST
OSPF Term: Link
40
All Rights reserved For JUST
Neighbours
41
All Rights reserved For JUST
Adjacency
42
All Rights reserved For JUST
OSPF Design
Each router connects to the backbone called area 0, or the backbone area.
Routers that connect other areas to the backbone within an AS are called Area Border Routers (ABRs). One interface must
be in area 0.
OSPF runs inside an autonomous system, but can also connect multiple autonomous systems together. The router that
connects these ASes together is called an Autonomous System Boundary Router (ASBR).
43
All Rights reserved For JUST
OSPF Areas
44
All Rights reserved For JUST
Why areas?
Decreases routing overhead
Compare to multiple smaller broadcast domains instead
of one large one
Speeds convergence
46
All Rights reserved For JUST
Path Calculation
Changes to the topological database of a router trigger a
recalculation to re-establish the best route(s) to known
networks
Uses the SPF (shortest path first) algorithm developed
by a computer scientist named Dijkstra
This is done by each individual router using its detailed
"knowledge" of the whole network
Leads to rapid and accurate convergence
Based on detailed knowledge of every link in the area and
the OSPF "cost" of each
builds an OSPF tree with itself at the route
47
All Rights reserved For JUST
Terminology: Cost
Do not forget to
configure the
bandwidth`
command on serial
links to ensure
correct
default OSPF cost
48
All Rights reserved For JUST
Types of Neighbors
49
All Rights reserved For JUST
OSPF Network Types
50
All Rights reserved For JUST
Adjacencies
51
All Rights reserved For JUST
Point-to-Point Links
52
All Rights reserved For JUST
Multi-access Broadcast Network
The designated
router (DR) is
responsible for
generating LSAs
on behalf of all
routers
connected to the
same segment
55
All Rights reserved For JUST
Basic OSPF Configuration
56
All Rights reserved For JUST
Configuring OSPF Areas
After identifying the OSPF process, you need to identify the interfaces that
you want to activate OSPF communications
Lab_A#config t
Lab_A(config)#router ospf 1
Lab_A(config-router)#network 10.0.0.0 0.255.255.255
area ?
<0-4294967295> OSPF area ID as a decimal value
A.B.C.D OSPF area ID in IP address format
Lab_A(config-router)#network 10.0.0.0 0.255.255.255
area 0
Every OSPF network must have an area 0 (the backbone area) to which other
areas connect
So in a multiple area network, there must be an area 0
The wildcard mask represents the set of hosts supported by the network and
is really just the inverse of the subnet mask.
57
All Rights reserved For JUST
OSPF Configuration
OSPF Process ID number is irrelevant. It can be the same on every
router on the network
The arguments of the network command are the network number
(10.0.0.0) and the wildcard mask (0.255.255.255)
Wildcards - A 0 octet in the wildcard mask indicates that the
corresponding octet in the network must match exactly
A 255 indicates that you don’t care what the corresponding octet is in
the network number
A network and wildcard mask combination of 1.1.1.1 0.0.0.0 would
match 1.1.1.1 only, and nothing else.
The network and wildcard mask combination of 1.1.0.0 0.0.255.255
would match anything in the range 1.1.0.0–1.1.255.255
58
All Rights reserved For JUST
OSPF Configuration -1
S0 S1
20.0.0.2 30.0.0.1
R2
R1 R3
S0
S0 20.0.0.1
30.0.0.2 40.0.0.1
E0
10.0.0.1 E0
40.0.0.2
10.0.0.2
A B
59
All Rights reserved For JUST
OSPF Configuration -1
S0 S1
20.0.0.2 30.0.0.1
R2
R1 R3
S0
S0
30.0.0.2 40.0.0.1
E0
10.0.0.1 E0 20.0.0.1
40.0.0.2
10.0.0.2
A B
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router ospf 1
R1(config-router)#network 10.0.0.0 0.255.255.255 area 0
R1(config-router)#network 20.0.0.0 0.255.255.255 area 0
R1(config-router)#^Z
60
All Rights reserved For JUST
OSPF Configuration -2
S0 S1
200.0.0.8/30
200.0.0.12/30
R2
R1 R3
S0
S0
E0
E0
200.0.0.16/28 200.0.0.32/27
A B
61
All Rights reserved For JUST
OSPF Configuration -2
S0 S1
200.0.0.10 200.0.0.13
255.255.255.252 R2 255.255.255.252
R1 R3
S0
S0 200.0.0.9 200.0.0.14 200.0.0.33
E0
200.0.0.17 E0
255.255.255.224
255.255.255.240 200.0.0.18 200.0.0.34
A B
62
All Rights reserved For JUST
OSPF Configuration -2
S0 S1
200.0.0.10 200.0.0.13
255.255.255.252 R2 255.255.255.252
R1 R3
S0
S0 200.0.0.9
200.0.0.14 200.0.0.33
E0
200.0.0.17 E0
255.255.255.224
255.255.255.240 200.0.0.18 200.0.0.34
A B
R3#config t
R1#config t Enter configuration commands, one per line. End with
Enter configuration commands, one per line. End with CNTL/Z.
CNTL/Z. R3(config)#router ospf 1
R1(config)#router ospf 1 R3(config-router)#network 200.0.0. 32 0.0.0.31 area 0
R1(config-router)#network 200.0.0.16 0.0.0.15 area 0 R3(config-router)#network 200.0.0. 12 0.0.0.3 area 0
R1(config-router)#network 200.0.0. 8 0.0.0.3 area 0 R3(config-router)#^Z
R1(config-router)#^Z
63
All Rights reserved For JUST
OSPF and Loopback Interfaces
Configuring loopback interfaces when using the OSPF routing
protocol is important
Cisco suggests using them whenever you configure OSPF on a router
Loopback interfaces are logical interfaces, which are virtual,
software-only interfaces; they are not real router interfaces
Using loopback interfaces with your OSPF configuration ensures
that an interface is always active for OSPF processes.
The highest IP address on a router will become that router’s RID
The RID is used to advertise the routes as well as elect the DR and
BDR.
If you configure serial interface of your router with highest IP
Address this Address becomes RID of t is the RID of the router
because e router
If this interface goes down, then a re-election must occur
It can have an big impact when the above link is flapping
64
All Rights reserved For JUST
Configuring Loopback Interfaces
R1#config t
Enter configuration commands, one per line. End
with CNTL/Z.
R1(config)#int loopback 0
R1(config-if)#ip address 172.16.10.1
255.255.255.255
R1(config-if)#no shut
R1(config-if)#^Z
R1#
65
All Rights reserved For JUST
Verifying OSPF Operation
Router#
show ip protocols
Router#
show ip ospf
Router#
show ip ospf neighbor [detail]
68
All Rights reserved For JUST
The show ip ospf interface Command
69
All Rights reserved For JUST
The show ip ospf neighbor Command
70
All Rights reserved For JUST
show ip ospf neighbor detail
71
All Rights reserved For JUST
Setting Priority for DR Election
Router(config-if)#
ip ospf priority number
72
All Rights reserved For JUST
Question & Answer
73
All Rights reserved For JUST