SlideShare a Scribd company logo
1 of 491
Block-II Routing
Objectives Introduction of EIGRP, Features of EIGRP, Tables of EIGRP, Metric of EIGRP
 Configuration of EIGRP, Summarization with EIGRP
 EIGRP unequal cost load balancing, Variance, Authentication
 EIGRP stub router, Configure EIGRP Stub Network.
 EIGRP Summary
 Understanding OSPF Fundamentals, Configuring OSPF within Single Area, Cost
 Understanding the differences between OSPF Network Types, Using OSPF Across
Multiple Area- Features, Router Types
 Configure OSPF virtual Link & Summarization
 "Link- State Advertisements, Different Types Of Areas, Propagation of LSAs, Special
OSPF Area"
 Configure OSPF Stub Areas & Authentication
 OSPF Summary
 Introduction to BGP, Context for the BGP, BGP Route Stability, BGP Operation Basics,
When to use BGP, BGP States
 Configuring Default Routing with BGP, Configure BGP using AS_PATH attribute
 "BGP Attributes, Controlling BGP Route Selection using the Weight, Local-Preference,
MED"
 Configure IBGP and EBGP using Local Preference & MED attributes.
 WorkShop
Understanding
EIGRP Terminology
and Operation
 EIGRP is a Cisco-proprietary distance-vector protocol with link-state features.
 EIGRP features include:
• Fast convergence
• Partial updates
• Multiple network layer support
• Use of multicast and unicast communication
• Variable-length subnet masking (VLSM) support
• Seamless connectivity across all data link layer protocols and topologies
• By default, it performs automatic route summarization at major network boundaries
(can be disabled) but can also be configured to summarize on interfaces.
EIGRP Features
 Neighbor table
 Topology table
 Routing table
 Advertised Distance (AD)
 Feasible Distance (FD)
 Successor
 Feasible successor (FS)
 Passive Versus Active Routes
EIGRP Terminology
 Neighbor table
• Contains EIGRP neighbor addresses and the interface through which they can be reached.
 Topology table
• Contains all destinations advertised by neighboring routers.
 Routing table
• Contains EIGRP successor routes.
EIGRP Tables
 Advertised Distance (AD)
• Advertised distance (AD), also referred to as the Reported Distance, is the cost between the
next-hop router and the destination.
 Feasible Distance (FD)
• Feasible distance (FD) is the cost between the local router and the next-hop router plus the
next-hop router’s AD to the destination network.
AD versus FD
 Successor
◦ A successor is a neighboring router that has a least-cost path to a destination (the lowest FD)
that is guaranteed not to be part of a routing loop.
◦ Successor routes are offered to the routing table to be used for forwarding packets.
◦ Multiple successors can exist if they have the same FD.
 Feasible successor (FS)
◦ A feasible successor is a neighbor that is closer to the destination, but it is not the least-cost
path.
◦ A feasible successor ensures a loop-free topology because it must have an AD less than the FD of
the current successor route.
◦ Feasible successors are selected at the same time as successors but are kept in the topology
table as backups to the successor routes.
◦ The topology table can maintain multiple feasible successors for a destination.
Successor and Feasible Successor
 Passive Route
• A route is considered passive when the router is not performing recomputation on that route.
• Passive is the operational, stable state.
 Active route
• A route is active when it is undergoing recomputation.
Passive versus Active Routes
 Reliable Transport Protocol (RTP)
◦ Responsible for guaranteed, ordered delivery of EIGRP packets to all neighbors.
 Neighbor discovery/recovery mechanism
◦ Enables EIGRP routers to dynamically learn when their neighbors become unreachable or
inoperative by periodically sending small hello packets.
 Protocol-dependent modules (PDMs)
◦ Responsible for network layer protocol-specific requirements such as IP, IPv6, AppleTalk, and
Novell NetWare.
 DUAL finite-state machine
◦ Diffusing Update Algorithm (DUAL) is the routing algorithm that tracks all routes advertised
by all neighbors and uses distance information, known as the composite metric, to select
efficient, loop-free paths to all destinations.
Key EIGRP Technologies
 EIGRP cannot use the services of UDP or TCP since IPX and Appletalk do not use the TCP/IP
protocol suite.
 Reliable Transport Protocol (RTP) is the Transport layer protocol uniquely used by EIGRP for the
delivery and reception of EIGRP packets.
• RTP is similar to TCP but is a Cisco proprietary.
 RTP provides reliable or unreliable service as the situation warrants.
• Reliable packets (Update, Query, Reply) require explicit acknowledgement while unreliable
packets (Hello, ACK) do not.
Reliable Transport Protocol
 EIGRP routers actively establish relationships with their neighbors.
 Adjacencies are established using small Hello packets which are sent every 5 or 60 seconds.
• If a neighbor misses 3 consecutive Hello packets then the route is considered invalid.
• Default = 15 seconds or 180 seconds.
Neighbor Discovery / Recovery
 Various routed protocols are supported through its PDMs.
• Provides independence from routed protocols.
• PDMs are modular, scalable and adaptable.
• EIGRP can adapt to new or revised routed protocols.
• PDMs protect EIGRP from painstaking revision.
 Each PDM is responsible for all functions related to its specific routed protocol.
Protocol-Dependent Modules
EIGRP maintains
individual tables for
each routed protocol.
 DUAL uses the Neighbor and Topology tables to calculate route information.
 When a link fails, DUAL looks for a feasible successor in its Neighbor and Topology tables.
• It compares all routes advertised by neighbors by using a composite metric for each route.
• Lowest-cost paths are then inserted into the routing table.
DUAL finite-state machine
EIGRP Packet
Frame Header
Frame Payload
CRCIP
Header
Protocol Number
(EIGRP = 88)
EIGRP
Header
EIGRP
Message
On a LAN, the EIGRP
packet is encapsulated
in an Ethernet frame
with a destination
multicast MAC address:
01-00-5E-00-00-0A
The destination IP address is
set to the multicast 224.0.0.10
and the EIGRP protocol field
is 88.
The EIGRP
header identifies
the type of EIGRP
packet and
autonomous
system number.
The EIGRP
message
consists of
the Type /
Length /
Value (TLV).
 EIGRP uses these 5 packet types to maintain its various tables and establish complex relationships
with neighbor routers:
• Hello
• Acknowledgment
• Update
• Query
• Reply
EIGRP Header
EIGRP Packet
 EIGRP relies on Hello packets to discover, verify, and rediscover neighbor routers.
 EIGRP Hello packets are multicast to 224.0.0.10.
 Hello packets are always sent unreliably and therefore do not require acknowledgment.
Hello Packets
 Hellos are sent at a fixed (and configurable) interval, called the Hello interval.
• Hello/Hold timers do not need to match.
• To reset the Hello interval: no ip hello-interval eigrp as#
 Hello interval depends on the interface’s bandwidth.
• High bandwidth = 5 seconds
• Default interval on point-to-point serial links, multipoint circuits with bandwidth greater
than T1, and LANs.
• Low Bandwidth = 60 seconds
• Default interval on T1 or less multipoint WAN circuits.
 On hearing Hellos, a router creates a neighbor table and the continued receipt of Hellos maintains
the table.
 Hold time is the maximum amount of allowed time that Hellos are not heard from a neighbor.
• Three times the Hello Interval:
• Low Bandwidth (3 x 60 sec.) = 180 seconds
• High bandwidth (3 x 5 sec.) = 15 seconds
Hello Packets
Hello Packets
T3
 Are used to indicate receipt of any EIGRP packet during a "reliable" (i.e., RTP) exchange.
• To be reliable, a sender's message must be acknowledged by the recipient.
 Acknowledgment packets are:
• Dataless Hello packets.
• Unicast.
Acknowledgement Packets
 After the local router discovers a new neighbor, update packets are sent to the new neighbor.
 Update packets are also used when a router detects a topology change.
• The router sends a multicast Update packet to all neighbors, alerting them to the change.
 All Update packets are sent reliably.
Update Packets
Update packet
• Initially sent after a new neighbor is discovered.
• Sent when a topology change has been detected.
 Query and Reply packets are sent when a destination has no feasible successors.
 Both packet types are sent reliably.
 A Query packet is multicasted to other EIGRP routers during the route re-computation process.
• Query packets are always multicast.
 A Reply packet is used to respond to a query to instruct the originator not to recompute the route
because feasible successors exist.
• Reply packets are always unicast.
Query and Reply Packets
EIGRP Message
Packet Types
Packet Type Use
Hello Used to discover other EIGRP routers in the
network.
Acknowledgement Used to acknowledge the receipt of any EIGRP
packet.
Update Convey routing information to known destinations.
Query Used to get specific information from a neighbor
router.
Reply Used to respond to a query.
Initial Route Discovery
 EIGRP selects primary (successor) and backup (feasible successor) routes and injects those into the
topology table.
 The primary (successor) routes are then moved to the routing table.
EIGRP Operations
IP EIGRP Neighbor Table
Neighbor IP Address Local router exit
interface to neighbor
IP EIGRP Topology Table
Destination 1 FD / AD via each neighbor
IP Routing Table
Destination 1 Best route
List of directly connected adjacent EIGRP
neighbor routers and the local interface to exit
to reach it.
List of all routes learned from each EIGRP
neighbor and identifies successor routes and
feasible successor routes.
List of the best (successor) routes from the
EIGRP topology table and other routing
processes.
Example: EIGRP Tables
Router C’s tables:
R1# show ip eigrp neighbors
IP-EIGRP neighbors for process 100
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.1.102 Se0/0/1 11 00:07:22 10 2280 0 5
R1#
EIGRP Neighbor Table
Lists the order in
which a peering
session was
established with
the specified
neighbor, starting
with 0.
Neighbor’s
IP address
Local interface
receiving EIGRP
Hello packets.
Seconds remaining before declaring neighbor
down.
The current hold time and is reset to the
maximum hold time whenever a Hello packet
is received.
SRTT (Smooth Round Trip Timer) and RTO (Retransmit Interval) are used by
RTP to manage reliable EIGRP packets.
SRTT indicates how long it takes for this neighbor to respond to reliable
packets.
RTO indicates how long to wait before retransmitting if no ACK is received.
Queue count
should always be
zero otherwise
there’s
congestion on the
link.
The sequence
number of the
last update,
query, or reply
packet that was
received from
this neighbor.
Amount of time
since this
neighbor was
added to the
neighbor table.
R1# show ip eigrp topology
IP-EIGRP Topology Table for AS(100)/ID(192.168.1.101)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 172.17.0.0/16, 1 successors, FD is 40514560
via 192.168.1.102 (40514560/28160), Serial0/0/1
R1#
EIGRP Topology Table
Indicates if the
route is in passive
or active state.
Destination network. Number of
successors
Next-hop address
for successor.
Outbound interface
to reach the network.
Feasible distance (FD)
to the destination
Feasible
distance (FD)
to the
destination
Advertised
distance (AD)
from the
successor
EIGRP Routing Table
EIGRP
route
Destination
network
R1# show ip route
<output omitted>
Gateway of last resort is not set
D 172.17.0.0/16 [90/40514560] via 192.168.1.102, 00:02:22, Serial0/0/1
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
D 172.16.0.0/16 is a summary, 00:31:31, Null0
C 172.16.1.0/24 is directly connected, FastEthernet0/0
R1#
Administrative
distance
Feasible
distance
Next-hop address
to reach the
network
Time indicating
the last update
packet received
Local router exit
interface to
destination
network
Summary route automatically created as the result
of the default classful behavior of EIGRP.
 EIGRP default administrative distances
EIGRP Administrative Distance (AD)
Routes manually
summarized.
Routes redistributed into
EIGRP.
DUAL Example
(1)
10.1.1.0 /24
A
C
B
E
D
(2) (2) (1)
(1)
(1)
EIGRP FD AD Topology
10.1.1.0 /24 3 ***** Passive *****
via B 3 1 Successor
via D 4 2 Feasible Successor
via E 4 3
Router C
EIGRP FD AD Topology
10.1.1.0 /24 3 ***** Passive *****
via D 3 2 Successor
via C 4 3
Router E
EIGRP FD AD Topology
10.1.1.0 /24 2 ***** Passive *****
via B 2 1 Successor
via C 5 3
Router D
DUAL Example
(1)
10.1.1.0 /24
A
C
B
E
D
(2) (2) (1)
(1)
(1)
EIGRP FD AD Topology
10.1.1.0 /24 3 ***** Passive *****
via B 3 1 Successor
via D 4 2 Feasible Successor
via E 4 3
Router C
EIGRP FD AD Topology
10.1.1.0 /24 3 ***** Passive *****
via D 3 2 Successor
via C 4 3
Router E
EIGRP FD AD Topology
10.1.1.0 /24 2 ***** Passive *****
via B 2 1 Successor
via C 5 3
Router D
DUAL Example
(1)
10.1.1.0 /24
A
C
B
E
D
(2) (2) (1)
(1)
EIGRP FD AD Topology
10.1.1.0 /24 3 ***** Passive *****
via B 3 1 Successor
via D 4 2 Feasible Successor
via E 4 3
Router C
EIGRP FD AD Topology
10.1.1.0 /24 3 ***** Passive *****
via D 3 2 Successor
via C 4 3
Router E
EIGRP FD AD Topology
10.1.1.0 /24 -1 ***** ACTIVE ******
via E (Q) Query
via C 5 3 (Q) Query
Router D
Q
Q Q = Query
DUAL Example
(1)
10.1.1.0 /24
A
C
B
E
D
(2) (2) (1)
(1)
EIGRP FD AD Topology
10.1.1.0 /24 3 ***** Passive *****
via B 3 1 Successor
via D
via E 4 3
Router C
EIGRP FD AD Topology
10.1.1.0 /24 -1 ***** ACTIVE ******
via D
via C 4 3 (Q) Query
Router E
EIGRP FD AD Topology
10.1.1.0 /24 -1 ***** ACTIVE ******
via E (Q) Query
via C 5 3
Router D
R
Q
Q = Query
R = Reply
DUAL Example
(1)
10.1.1.0 /24
A
C
B
E
D
(2) (2) (1)
(1)
EIGRP FD AD Topology
10.1.1.0 /24 3 ***** Passive *****
via B 3 1 Successor
via D
via E
Router C
EIGRP FD AD Topology
10.1.1.0 /24 4 ***** Passive *****
via C 4 3 Successor
via D
Router E
EIGRP FD AD Topology
10.1.1.0 /24 -1 ***** ACTIVE ******
via E (Q) Query
via C 5 3
Router D
R
Q = Query
R = Reply
DUAL Example
(1)
10.1.1.0 /24
A
C
B
E
D
(2) (2) (1)
(1)
EIGRP FD AD Topology
10.1.1.0 /24 3 ***** Passive *****
via B 3 1 Successor
via D
via E
Router C
EIGRP FD AD Topology
10.1.1.0 /24 4 ***** Passive *****
via C 4 3 Successor
via D
Router E
EIGRP FD AD Topology
10.1.1.0 /24 5 ***** Passive *****
via C 5 3 Successor
via E 5 4 Successor
Router D
R
Q = Query
R = Reply
DUAL Example
(1)
10.1.1.0 /24
A
C
B
E
D
(2) (2) (1)
(1)
EIGRP FD AD Topology
10.1.1.0 /24 3 ***** Passive *****
via B 3 1 Successor
via D
via E
Router C
EIGRP FD AD Topology
10.1.1.0 /24 4 ***** Passive *****
via C 4 3 Successor
via D
Router E
EIGRP FD AD Topology
10.1.1.0 /24 5 ***** Passive *****
via C 5 3 Successor
via E 5 4 Successor
Router D
 EIGRP uses a composite metric which can be based on the following metrics:
◦ Bandwidth
◦ Delay
◦ Reliability
◦ Load
 Only Bandwidth and Delay are used by default.
Note: It is often incorrectly stated that EIGRP can also use the smallest MTU in the path. In actual fact,
the MTU is included in the EIGRP routing update, but is not actually used in the metric calculation.
EIGRP Metric Calculation
 EIGRP uses the slowest bandwidth (BW) in its metric calculation.
• Calculated BW = reference BW / slowest BW (kbps)
 The value of the bandwidth may or may not reflect the actual physical bandwidth of the interface.
• For example, most serial interfaces use the default bandwidth value of 1.544 Mbps but this may
not accurately reflect the links actual bandwidth.
 Because both EIGRP and OSPF use bandwidth in default metric calculations, a correct value for
bandwidth is very important to the accuracy of routing information.
◦ If the actual bandwidth of the link differs from the default bandwidth value, then the bandwidth
value should be modified.
 To modify the bandwidth value, use the bandwidth interface command.
Note: The bandwidth command does NOT change the physical bandwidth of the link.
EIGRP Bandwidth
EIGRP Delay
 Delay is a measure of the time it takes for a
packet to traverse a route.
• EIGRP uses the cumulative sum of all
outgoing interfaces.
• Calculated Delay = the sum of outgoing
interface delays / 10
 The delay (DLY) metric is a static value based
on the type of link to which the interface is
connected and is expressed in microseconds.
 Reliability (not a default EIGRP metric) is a measure of the likelihood that a link will fail.
• Measure dynamically & expressed as a fraction of 255.
• The higher the fraction the better the reliability
 Load (not a default EIGRP metric) reflects how much traffic is using a link
• Number is determined dynamically and is expressed as a fraction of 255
• The lower the fraction the less the load on the link
 These optional criteria can be used but are not recommended, because they typically result in
frequent recalculation of the topology table.
Other EIGRP Metrics
EIGRP Composite Metric Calculation
 The EIGRP composite metric formula consists of values K1 through K5, known as EIGRP metric
weights.
• By default, only K1 (bandwidth) and K3 (delay) are set to 1.
• K2 (load), K4 (reliability), and K5 (MTU) are set to 0.
 K values can be changed with the EIGRP router command:
Router(config-router)# metric weights tos k1 k2 k3 k4 k5
 EIGRP neighbors cannot use mismatched metric values.
• All EIGRP neighbors must use the same metrics.
• Metrics can be altered using the metric weights command.
Mismatched K Values
EIGRP Metric Calculation Example
Slowest bandwidth:
Plus the sum of the delays
 Bandwidth = 10,000,000 / 1024 = 9765 * 256 = 2499840
EIGRP Bandwidth Calculation Example
 Delay = 20,000 / 10 + (100 / 10) * 256 = 514560
EIGRP Delay Calculation Example
 EIGRP Metric = 2499840 + 514560 = 3014400
EIGRP Metric Calculation Example
Planning EIGRP
Routing
Implementations
 Prior to deploying an EIGRP routing solution, the following should be considered:
• IP addressing plan
• Network topology
• EIGRP traffic engineering
 Once the requirements have been assessed, the implementation plan can be created.
Planning to Deploy EIGRP
 The information necessary to implement EIGRP routing includes the following:
• The IP addresses to be configured on individual router interfaces
• The EIGRP AS number, used to enable EIGRP.
• A list of routers and interfaces on which EIGRP is to be enabled.
• Metrics that need to be applied to specific interfaces, or EIGRP traffic engineering.
 In the implementation plan, EIGRP the tasks include the following:
• Enabling the EIGRP routing protocol.
• Configuring the proper network statements.
• Optionally configuring the metric to appropriate interfaces.
Implementing EIGRP
 After implementing EIGRP, verification should confirm proper deployment on each router.
 Verification tasks include verifying:
• The EIGRP neighbor relationships.
• That the EIGRP topology table is populated with the necessary information.
• That IP routing table is populated with the necessary information.
• That there is connectivity in the network between routers and to other devices.
• That EIGRP behaves as expected in a case of a topology change, by testing link failure and router
failure events.
Verifying EIGRP
 After a successful EIGRP deployment, the solution and verification process and results should be
documented for future reference.
 Documentation should include:
• A topology map
• The IP addressing plan
• The AS number used
• The networks included in EIGRP on each router
• Any special metrics configured
Documenting
Configuring and
Verifying EIGRP
Enable EIGRP Routing
 Define EIGRP as the IP routing protocol.
Router(config)#
router eigrp autonomous-system-id
 To exchange routing updates, EIGRP routers must have the same autonomous system ID.
Identify EIGRP Networks
 Define EIGRP networks to advertise to EIGRP neighbors.
Router(config-router)#
network network [mask]
 The network parameter can be a network, a subnet, or the address of a directly connected interface.
 The mask is a wildcard mask (inverse mask) used to determine how to interpret the address.
• The mask has wildcard bits, where 0 is a match and 1 is “don’t care.”
• For example, 0.0.255.255 indicates a match in the first 2 octets.
 Most EIGRP references state that the wildcard mask is required.
 However, since IOS 12.0(4)T, the mask argument can actually be configured using wild card bits or a
regular subnet mask.
 For example, either format could be used to configure the 10.10.10.0 network:
network 10.10.10.0 0.0.0.3
or
network 10.10.10.0 255.255.255.252
Note on EIGRP Masks
Define the Interface Bandwidth
 Defines the interface’s bandwidth (optional).
Router(config-if)#
bandwidth kilobits
 The kilobits parameter indicates the intended bandwidth in kbps.
 For example, to set the bandwidth to 512,000 bps, use the bandwidth 512 command.
 The configured bandwidth is used by routing protocols in the metric calculation.
 The command does not actually change the speed of the interface.
Enable / Disable Automatic Summarization
 By default, EIGRP automatically summarizes subnets.
Router(config-router)#
auto-summary
 This makes EIGRP behave like a classful routing protocol and therefore summarizes subnets on the
classful boundary.
 Automatic summarization can be disabled using the no auto-summary router configuration command.
Configuring EIGRP Example: Classful
R1(config)# interface Fa0/0
R1(config-if)# ip address 172.16.1.1 255.255.255.0
R1(config-if)# no shut
R1(config-if)# interface S0/0/0
R1(config-if)# ip address 192.168.1.101 255.255.255.224
R1(config-if)# bandwidth 64
R1(config-if)# no shut
R1(config-if)# exit
Classful configuration example:
R2(config)# interface Fa0/0
R2(config-if)# ip address 172.16.2.1 255.255.255.0
R2(config-if)# no shut
R2(config-if)# interface S0/0/0
R2(config-if)# ip address 192.168.1.102 255.255.255.224
R2(config-if)# bandwidth 64
R2(config-if)# no shut
R2(config-if)# interface S0/0/1
R2(config-if)# ip address 192.168.1.1 255.255.255.224
R2(config-if)# bandwidth 64
R2(config-if)# no shut
R2(config-if)# exit
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
EIGRP AS 100
Internet
192.168.1.0 /27
S0/0/1
172.17.2.0 /24
S0/0/0
S0/0/0
64 kbps
192.168.1.96 /27
.101
.102 .1
.1.1
Configuring EIGRP Example: Classful
R1(config)# router eigrp 100
R1(config-router)# network 192.168.1.96
R1(config-router)# network 172.16.1.0
R1(config-router)#
Classful configuration example:
R2(config)# router eigrp 100
R2(config-router)# network 192.168.1.96
R2(config-router)# network 172.17.2.0
*Jul 26 10:02:25.963: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.101 (Serial0/0/0) is
up: new adjacency 172.17.2.0
R2(config-router)#
R2#
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
EIGRP AS 100
Internet
192.168.1.0 /27
S0/0/1
172.17.2.0 /24
S0/0/0
S0/0/0
64 kbps
192.168.1.96 /27
.101
.102 .1
.1.1
Verifying EIGRP Example
R1# show running-config | section router eigrp
router eigrp 100
network 172.16.0.0
network 192.168.1.0
auto-summary
R1# show ip route
<output omitted>
Gateway of last resort is not set
D 172.17.0.0/16 [90/40514560] via 192.168.1.102, 00:24:02, Serial0/0/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
D 172.16.0.0/16 is a summary, 00:25:27, Null0
C 172.16.1.0/24 is directly connected, FastEthernet0/0
192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks
C 192.168.1.96/27 is directly connected, Serial0/0/0
D 192.168.1.0/27 [90/41024000] via 192.168.1.102, 00:16:56, Serial0/0/0
D 192.168.1.0/24 is a summary, 00:25:27, Null0
R1#
Classful configuration example:
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
EIGRP AS 100
Internet
192.168.1.0 /27
S0/0/1
172.17.2.0 /24
S0/0/0
S0/0/0
64 kbps
192.168.1.96 /27
.101
.102 .1
.1.1
Verifying EIGRP Example
R2# show running-config | section router eigrp
router eigrp 100
network 172.17.0.0
network 192.168.1.0
auto-summary
R2# show ip route
<output omitted>
Gateway of last resort is not set
172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks
D 172.17.0.0/16 is a summary, 00:13:10, Null0
C 172.17.2.0/24 is directly connected, FastEthernet0/0
D 172.16.0.0/16 [90/40514560] via 192.168.1.101, 00:13:26, Serial0/0/0
192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks
C 192.168.1.96/27 is directly connected, Serial0/0/0
C 192.168.1.0/27 is directly connected, Serial0/0/1
D 192.168.1.0/24 is a summary, 00:13:10, Null0
R2#
Classful configuration example:
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
EIGRP AS 100
Internet
192.168.1.0 /27
S0/0/1
172.17.2.0 /24
S0/0/0
S0/0/0
64 kbps
192.168.1.96 /27
.101
.102 .1
.1.1
Verifying EIGRP Example
R2# show ip protocols
Routing Protocol is "eigrp 100"
<output omitted>
Automatic network summarization is in effect
Automatic address summarization:
192.168.1.0/24 for FastEthernet0/0
Summarizing with metric 40512000
172.17.0.0/16 for Serial0/0/0, Serial0/0/1
Summarizing with metric 28160
Maximum path: 4
Routing for Networks:
172.17.0.0
192.168.1.0
Routing Information Sources:
<output omitted>
R2#
Classful configuration example:
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
EIGRP AS 100
Internet
192.168.1.0 /27
S0/0/1
172.17.2.0 /24
S0/0/0
S0/0/0
64 kbps
192.168.1.96 /27
.101
.102 .1
.1.1
Configuring EIGRP Example: Classless
Classless configuration example:
R2(config)# no router eigrp 100
R2(config)# router eigrp 100
R2(config-router)# network 192.168.1.96 0.0.0.31
R2(config-router)# network 172.17.2.0 0.0.0.255
R2(config-router)# end
R2# show run | section router eigrp
router eigrp 100
network 172.17.2.0 0.0.0.255
network 192.168.1.96 0.0.0.31
auto-summary
R2#
Fa0/0Fa0/0
172.17.2.0 /24
R1 R2
172.16.1.0 /24
EIGRP AS 100
Internet
192.168.1.0 /27
64 kbps
192.168.1.96 /27
.101
.102
S0/0/1
S0/0/0
S0/0/0
.1
.1.1
R1(config)# no router eigrp 100
R1(config)# router eigrp 100
R1(config-router)# network 192.168.1.96 0.0.0.31
R1(config-router)# network 172.16.1.0 0.0.0.255
R1(config-router)# end
R1# show run | section router eigrp
router eigrp 100
network 172.16.1.0 0.0.0.255
network 192.168.1.96 0.0.0.31
auto-summary
R1#
Verifying EIGRP Example
R2# show ip protocols
Routing Protocol is "eigrp 100"
<output omitted>
Automatic network summarization is in effect
Automatic address summarization:
192.168.1.0/24 for FastEthernet0/0
Summarizing with metric 40512000
172.17.0.0/16 for Serial0/0/0
Summarizing with metric 28160
Maximum path: 4
Routing for Networks:
172.17.2.0/24
192.168.1.96/27
Routing Information Sources:
Gateway Distance Last Update
(this router) 90 00:00:06
Gateway Distance Last Update
192.168.1.101 90 00:00:26
Distance: internal 90 external 170
Classful configuration example:
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
EIGRP AS 100
Internet
192.168.1.0 /27
S0/0/1
172.17.2.0 /24
S0/0/0
S0/0/0
64 kbps
192.168.1.96 /27
.101
.102 .1
.1.1
Verifying EIGRP: show ip protocols
R1# show ip protocols
Routing Protocol is "eigrp 100"
<output omitted>
EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
EIGRP maximum hopcount 100
EIGRP maximum metric variance 1
Redistributing: eigrp 100
EIGRP NSF-aware route hold timer is 240s
Automatic network summarization is in effect
Automatic address summarization:
192.168.1.0/24 for FastEthernet0/0
Summarizing with metric 40512000
172.16.0.0/16 for Serial0/0/0
Summarizing with metric 28160
Maximum path: 4
Routing for Networks:
172.16.1.0/24
192.168.1.96/27
Routing Information Sources:
Gateway Distance Last Update
(this router) 90 00:08:56
Gateway Distance Last Update
192.168.1.102 90 00:07:59
Distance: internal 90 external 170
Verify routing protocol information on the router.
Verifying EIGRP: show ip eigrp neighbors
R1# show ip eigrp neighbors
IP-EIGRP neighbors for process 100
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.1.102 Se0/0/0 11 00:09:17 22 2280 0 5
R1#
EIGRP uses the Neighbor table to list adjacent routers.
Verifying EIGRP: show ip eigrp topology
R1# show ip eigrp topology
IP-EIGRP Topology Table for AS(100)/ID(192.168.1.101)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 192.168.1.96/27, 1 successors, FD is 40512000
via Connected, Serial0/0/0
P 192.168.1.0/24, 1 successors, FD is 40512000
via Summary (40512000/0), Null0
P 172.16.0.0/16, 1 successors, FD is 28160
via Summary (28160/0), Null0
P 172.17.0.0/16, 1 successors, FD is 40514560
via 192.168.1.102 (40514560/28160), Serial0/0/0
P 172.16.1.0/24, 1 successors, FD is 28160
via Connected, FastEthernet0/0
R1#
Verify routing protocol information on the router.
Verifying EIGRP: show ip route eigrp
R1# show ip route eigrp
D 172.17.0.0/16 [90/40514560] via 192.168.1.102, 00:10:18, Serial0/0/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
D 172.16.0.0/16 is a summary, 00:11:19, Null0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
D 192.168.1.0/24 is a summary, 00:11:19, Null0
R1#
R1# show ip route
<output omitted>
Gateway of last resort is not set
D 172.17.0.0/16 [90/40514560] via 192.168.1.102, 00:10:35, Serial0/0/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
D 172.16.0.0/16 is a summary, 00:11:37, Null0
C 172.16.1.0/24 is directly connected, FastEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.96/27 is directly connected, Serial0/0/0
D 192.168.1.0/24 is a summary, 00:11:37, Null0
R1#
Verify that the router recognizes EIGRP routes.
Verifying EIGRP: show ip eigrp interfaces
R1# show ip eigrp interfaces
IP-EIGRP interfaces for process 100
Xmit Queue Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Se0/0/0 1 0/0 22 10/380 468 0
Fa0/0 0 0/0 0 0/1 0 0
R1#
Verify EIGRP configured interfaces.
Verifying EIGRP: show ip eigrp traffic
R1# show ip eigrp traffic
IP-EIGRP Traffic Statistics for AS 100
Hellos sent/received: 338/166
Updates sent/received: 7/7
Queries sent/received: 0/0
Replies sent/received: 0/0
Acks sent/received: 2/2
SIA-Queries sent/received: 0/0
SIA-Replies sent/received: 0/0
Hello Process ID: 228
PDM Process ID: 226
IP Socket queue: 0/2000/1/0 (current/max/highest/drops)
Eigrp input queue: 0/2000/1/0 (current/max/highest/drops)
R1#
Verify EIGRP traffic information.
Verifying EIGRP: debug eigrp packets
R2# debug eigrp packets
*Jul 26 10:51:24.051: EIGRP: Sending HELLO on Serial0/0/0
*Jul 26 10:51:24.051: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Jul 26 10:51:24.111: EIGRP: Sending HELLO on FastEthernet0/0
*Jul 26 10:51:24.111: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Jul 26 10:51:26.667: EIGRP: Received HELLO on Serial0/0/0 nbr 192.168.1.101
*Jul 26 10:51:26.667: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/re
ly 0/0
*Jul 26 10:51:28.451: EIGRP: Sending HELLO on FastEthernet0/0
*Jul 26 10:51:28.451: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Jul 26 10:51:29.027: EIGRP: Sending HELLO on Serial0/0/0
*Jul 26 10:51:29.027: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Jul 26 10:51:31.383: EIGRP: Received HELLO on Serial0/0/0 nbr 192.168.1.101
*Jul 26 10:51:31.383: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/re
ly 0/0
*Jul 26 10:51:33.339: EIGRP: Sending HELLO on FastEthernet0/0
*Jul 26 10:51:33.339: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Jul 26 10:51:33.511: EIGRP: Sending HELLO on Serial0/0/0
*Jul 26 10:51:33.511: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Jul 26 10:51:36.347: EIGRP: Received HELLO on Serial0/0/0 nbr 192.168.1.101
*Jul 26 10:51:36.347: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/re
ly 0/0
*Jul 26 10:51:37.847: EIGRP: Sending HELLO on Serial0/0/0
*Jul 26 10:51:37.847: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Jul 26 10:51:37.899: EIGRP: Sending HELLO on FastEthernet0/0
Traces transmission and receipt of EIGRP packets.
EIGRP Passive-Interface
 Prevent EIGRP updates out a specified router interface.
Router(config-router)#
passive-interface type number [default]
 Set a particular interface or all router interfaces to passive.
 The default option sets all router interfaces to passive.
 For EIGRP, the command:
 Prevents neighbor relationships from being established.
 Routing updates from a neighbor are ignored.
 Allows a subnet on a passive interface to be announced in EIGRP
Passive-Interface Example
R1(config)# router eigrp 100
R1(config-router)# passive-interface fa0/0
R1(config-router)#
R2(config)# router eigrp 100
R2(config-router)# passive-interface fa0/0
R2(config-router)#
Alternate configuration:
R1(config)# router eigrp 100
R1(config-router)# passive-interface default
R1(config-router)# no passive-interface S0/0/0
R2(config)# router eigrp 100
R2(config-router)# passive-interface default
R2(config-router)# no passive-interface S0/0/0
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
EIGRP AS 100
Internet
192.168.1.0 /27
172.17.2.0 /24
64 kbps
192.168.1.96 /27
.101
.102
S0/0/1
S0/0/0
S0/0/0
.1
.1.1
 To propagate a default route in EIGRP, use either the:
ip default-network network-number global configuration command.
Or
ip route 0.0.0.0 0.0.0.0 next-hop | interface router configuration
command.
 Once configured, the default route has to be propagated into the EIGRP AS.
Propagating a Default Route
ip default-network Command
 Configures a router to advertise a network as the gateway of last resort.
Router(config)#
ip default-network network
 Other routers use their next-hop address to the advertised network as their default route.
 There is no parameter to specify the subnet mask therefore the command can only be used to
advertise a classful network.
 The specified network must be reachable before it is configured.
 If the specified network is reachable through:
 EIGRP, then the default route is propagated automatically to other EIGRP routers in the AS.
 A static route, then the static route must be redistributed into EIGRP.
ip default-network Example
R2# show ip route
<output omitted>
Gateway of last resort is not set
172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks
D 172.17.0.0/16 is a summary, 02:27:56, Null0
C 172.17.2.0/24 is directly connected, FastEthernet0/0
D 172.16.0.0/16 [90/40514560] via 192.168.1.101, 02:27:56, Serial0/0/0
192.168.1.0/27 is subnetted, 2 subnets
C 192.168.1.96 is directly connected, Serial0/0/0
C 192.168.1.0 is directly connected, Serial0/0/1
R2#
R1# show ip route
<output omitted>
Gateway of last resort is not set
<output omitted>
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
64 kbps
EIGRP AS 100
Internet
172.31.0.0 /16192.168.1.96 /27
172.17.2.0 /24
.101
.102
S0/0/1
S0/0/0
S0/0/0
.1
.1.1
192.168.1.0 /27
.2
ip default-network Example
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
64 kbps
EIGRP AS 100
Internet
172.31.0.0 /16192.168.1.96 /27
172.17.2.0 /24
.101
.102
S0/0/1
S0/0/0
S0/0/0
.1
.1.1
192.168.1.0 /27
.2
R2(config)# ip route 172.31.0.0 255.255.0.0 192.168.1.2
R2(config)# do ping 172.31.0.0
<output omitted>
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/28/28 ms
R2(config)# ip default-network 172.31.0.0
R2(config)# router eigrp 100
R2(config-router)# redistribute static
R2(config-router)# end
R2#
ip default-network Example
R2# show ip route
<output omitted>
Gateway of last resort is 192.168.1.2 to network 172.31.0.0
<output omitted>
S* 172.31.0.0/16 [1/0] via 192.168.1.2
192.168.1.0/27 is subnetted, 2 subnets
C 192.168.1.96 is directly connected, Serial0/0/0
C 192.168.1.0 is directly connected, Serial0/0/1
R2#
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
64 kbps
EIGRP AS 100
Internet
172.31.0.0 /16192.168.1.96 /27
172.17.2.0 /24
.101
.102
S0/0/1
S0/0/0
S0/0/0
.1
.1.1
192.168.1.0 /27
.2
R1# show ip route
<output omitted>
Gateway of last resort is 192.168.1.102 to network 172.31.0.0
<output omitted.
D*EX 172.31.0.0/16 [170/41024000] via 192.168.1.102, 00:00:20, Serial0/0/0
192.168.1.0/27 is subnetted, 1 subnets
C 192.168.1.96 is directly connected, Serial0/0/0
R1#
ip route 0.0.0.0 0.0.0.0 next-hop | interface Command
 Configures a router to advertise a default route as the gateway of last
resort.
Router(config)#
ip route 0.0.0.0 0.0.0.0 interface | next-hop
 The choice of parameter affects the next selection of commands.
 If the interface parameter is used, then only the network 0.0.0.0
needs to also be entered.
 If the next-hop parameter is used, then the network 0.0.0.0 and
the redistribute static command must be configured.
ip route 0.0.0.0 0.0.0.0 interface Example
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
64 kbps
EIGRP AS 100
Internet
172.31.0.0 /16192.168.1.96 /27
172.17.2.0 /24
.101
.102
S0/0/1
S0/0/0
S0/0/0
.1
.1.1
192.168.1.0 /27
.2
R2(config)# ip route 0.0.0.0 0.0.0.0 S0/0/1
R2(config)# router eigrp 100
R2(config-router)# network 0.0.0.0
R2(config-router)# do show ip route
<output omitted>
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks
D 172.17.0.0/16 is a summary, 03:13:25, Null0
C 172.17.2.0/24 is directly connected, FastEthernet0/0
D 172.16.0.0/16 [90/40514560] via 192.168.1.101, 03:13:25, Serial0/0/0
192.168.1.0/27 is subnetted, 2 subnets
C 192.168.1.96 is directly connected, Serial0/0/0
C 192.168.1.0 is directly connected, Serial0/0/1
S* 0.0.0.0/0 is directly connected, Serial0/0/1
R2(config-router)#
ip route 0.0.0.0 0.0.0.0 next-hop Example
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
64 kbps
EIGRP AS 100
Internet
172.31.0.0 /16192.168.1.96 /27
172.17.2.0 /24
.101
.102
S0/0/1
S0/0/0
S0/0/0
.1
.1.1
192.168.1.0 /27
.2
R2(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.2
R2(config)# router eigrp 100
R2(config-router)# network 0.0.0.0
R2(config-router)# redistribute static
R2(config-router)# do show ip route
<output omitted>
Gateway of last resort is 192.168.1.2 to network 0.0.0.0
172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks
D 172.17.0.0/16 is a summary, 02:53:48, Null0
C 172.17.2.0/24 is directly connected, FastEthernet0/0
D 172.16.0.0/16 [90/40514560] via 192.168.1.101, 02:53:48, Serial0/0/0
192.168.1.0/27 is subnetted, 2 subnets
C 192.168.1.96 is directly connected, Serial0/0/0
C 192.168.1.0 is directly connected, Serial0/0/1
S* 0.0.0.0/0 [1/0] via 192.168.1.2
R2(config-router)#
 EIGRP automatically summarizes routes at a major network boundary by default.
• Due to the pre-configured auto-summary router configuration command.
• In most cases, auto summarization is a good thing as it keeps routing tables as compact as
possible.
• Sometimes it’s not a good thing such as when there is a discontiguous subnetwork.
 Typically for routing to work properly, auto-summarization should be disabled using the no
auto-summary router configuration command.
EIGRP Route Summarization
Summarization in Discontiguous Networks
R1 R2
10.10.10.0 /24
EIGRP AS 100
192.168.1.96 /30 10.20.20.0 /24
 EIGRP Update: Connected to 10.0.0.0 /8
R1# show running-config | section router eigrp
router eigrp 100
passive-interface FastEthernet0/0
network 10.10.10.0 0.0.0.255
network 192.168.1.96 0.0.0.31
auto-summary
R1# show ip protocols
Routing Protocol is "eigrp 100"
<output omitted>
Automatic network summarization is in effect
Automatic address summarization:
10.0.0.0/8 for Serial0/0/0
Summarizing with metric 28160
Maximum path: 4
Routing for Networks:
10.10.10.0/24
192.168.1.96/27
Passive Interface(s):
FastEthernet0/0
<output omitted>
Summarization in Discontiguous Networks
R2# show ip route
<output omitted>
Gateway of last resort is 192.168.1.2 to network 0.0.0.0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.20.20.0/24 is directly connected, FastEthernet0/0
D 10.0.0.0/8 is a summary, 00:13:35, Null0
192.168.1.0/27 is subnetted, 2 subnets
C 192.168.1.96 is directly connected, Serial0/0/0
C 192.168.1.0 is directly connected, Serial0/0/1
S* 0.0.0.0/0 [1/0] via 192.168.1.2
R2#
R1 R2
10.10.10.0 /24
EIGRP AS 100
192.168.1.96 /30 10.20.20.0 /24
 EIGRP Update: Connected to 10.0.0.0 /8
R2 ignores the R1 update
because it is already
connected to the classful
10.0.0.0/8 network.
 Notice that the summarized route (10.0.0.0/8) has an entry pointing to null0.
• Null0 is automatically added to the table and are called summary routes.
• Null 0 is a directly connected, software-only interface.
• The use of the null0 interface prevents the router from trying to forward traffic to other routers
in search of a more precise, longer match.
Null 0
R2# show ip route
<output omitted>
Gateway of last resort is 192.168.1.2 to network 0.0.0.0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.20.20.0/24 is directly connected, FastEthernet0/0
D 10.0.0.0/8 is a summary, 00:13:35, Null0
192.168.1.0/27 is subnetted, 2 subnets
C 192.168.1.96 is directly connected, Serial0/0/0
C 192.168.1.0 is directly connected, Serial0/0/1
S* 0.0.0.0/0 [1/0] via 192.168.1.2
R2#
Disabling Automatic Summarization
R1 R2
10.10.10.0 /24
EIGRP AS 100
192.168.1.96 /30 10.20.20.0 /24
 EIGRP Update: Connected to 10.0.0.0 /8
R1(config)# router eigrp 100
R1(config-router)# no auto-summary
R1(config-router)#
*Jul 26 22:14:07.183: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.102
(Serial0/0/0) is resync: summary configured
R1(config-router)# end
R1# show ip protocols
Routing Protocol is "eigrp 100“
<output omitted>
Automatic network summarization is not in effect
Maximum path: 4
Routing for Networks:
10.10.10.0/24
192.168.1.96/27
<output omitted>
Disable Automatic Summarization
R1 R2
10.10.10.0 /24
EIGRP AS 100
192.168.1.96 /30 10.20.20.0 /24
 EIGRP Update: Connected to 10.0.0.0 /8
R2(config)# router eigrp 100
R2(config)# no auto-summary
R2(config)# end
R2# show ip route
<output omitted>
Gateway of last resort is 192.168.1.2 to network 0.0.0.0
10.0.0.0/24 is subnetted, 2 subnets
C 10.20.20.0 is directly connected, FastEthernet0/0
D 10.10.10.0 [90/40514560] via 192.168.1.101, 00:05:21, Serial0/0/0
192.168.1.0/27 is subnetted, 2 subnets
C 192.168.1.96 is directly connected, Serial0/0/0
C 192.168.1.0 is directly connected, Serial0/0/1
S* 0.0.0.0/0 [1/0] via 192.168.1.2
R2#
 Earlier distance vector protocols were unable to create summary routes other than the classful
boundaries or /8, /16/ or /24.
 To address this shortcoming, EIGRP added the ip summary-address eigrp interface
configuration command.
◦ The command is used to create one or more summary routes within a network on any bit
boundary (as long as a more specific route exists in the routing table).
 IP EIGRP summary routes are given an administrative distance value of 5.
◦ Standard EIGRP routes receive an administrative distance of 90
◦ External EIGRP routes receive an administrative distance of 170.
Summarizing on an Interface
ip summary-address eigrp
 Manually create a summary route at an arbitrary bit boundary.
Router(config-if)#
ip summary-address eigrp as-number address mask [admin-distance]
Parameter Description
as-number The number of the EIGRP AS is identified.
address
The IP address being advertised as the summary
address. This address does not need to be aligned
on Class A, B, or C boundaries.
mask The IP subnet mask used to create the summary
address.
admin-distance (Optional) Administrative distance. A value from 0 to
255.
EIGRP Route Summarization
R1(config)# router eigrp 100
R1(config)# no auto-summary
R2(config)# router eigrp 100
R2(config)# no auto-summary
Fa0/0Fa0/0
R1 R2
10.10.10.0 /24
EIGRP AS 100
WAN
192.168.3.1
S0/0/0
10.10.20.0 /24
10.0.0.0 /8
R3
R3(config)# interface S0/0/0
R3(config-if)# ip address 192.168.3.1 255.255.255.0
R3(config-if)# ip summary-address eigrp 1 10.10.0.0 255.255.0.0
R3(config-if)# no shut
R3(config-if)# exit
R3# show ip protocols
Routing Protocol is "eigrp 100"
<output omitted>
Automatic network summarization is not in effect
Address Summarization:
10.10.0.0/16 for Serial0/0/0
<output omitted>
 Routes with a metric equal to the minimum metric are installed in the routing table.
• Referred to as “equal-cost load balancing”.
• All IP routing protocols on Cisco routers can perform equal-cost load balancing.
 The maximum-paths maximum-path command can be used to allow up to 6 equal-cost paths.
• Default is 4.
• Setting the maximum-path option to 1 disables load balancing.
EIGRP Load Balancing
EIGRP Equal-Cost Load Balancing
R1(config)# router eigrp 100
R1(config-router)# network 172.16.1.0 0.0.0.255
R1(config-router)# network 192.168.1.0
R1(config-router)# network 192.168.2.0
R1(config-router)# network 192.168.3.0
R1(config-router)# network 192.168.4.0
R1(config-router)# maximum–paths 3
R1(config-router)#
R1 Topology Table
Advertised Distance (AD)
Network Neighbor AD FD
172.16.2.0/24 R2 20 40
R3 20 40
R4 20 40
R5 20 40
 EIGRP can also balance traffic across multiple routes that have different metrics.
• Referred to as unequal-cost load balancing.
 The degree to which EIGRP performs load balancing is controlled with the variance
multiplier command.
• The multiplier is a value, between 1 and 128, used for load balancing.
• The default is 1, which means equal-cost load balancing.
• Setting a variance value greater than 1 allows EIGRP to install multiple loop-free routes with
unequal cost in the routing table.
• EIGRP will always install successors (the best routes) in the routing table.
• The variance allows feasible successors (and only feasible successor routes) as candidate
routes to potentially be installed in the routing table.
Unequal Cost Load Balancing
EIGRP Unequal-Cost Load Balancing
R1(config)# router eigrp 100
R1(config-router)# variance 2
R1(config-router)#
R1 Topology Table
Advertised Distance (AD)
Network Neighbor AD FD
172.16.2.0/24 R2 10 30
R3 10 20
R4 25 45
R5 10 50
Configuring and
Verifying EIGRP
Authentication
 Many routing protocols support authentication such that a router authenticates the source of each
routing update packet that it receives.
 Simple password authentication is supported by:
• IS-IS
• OSPF
• RIPv2
 MD5 authentication is supported by:
• OSPF
• RIPv2
• BGP
• EIGRP
Router Authentication
 Simple password authentication:
• Router sends packet and key.
• Neighbor checks if received key matches its key.
• Is not secure.
 MD5 authentication:
• Configure a “key” (password) and key-id; router generates a message digest, or hash, of the key,
key-id and message.
• Message digest is sent with packet; key is not sent.
• Is secure.
Simple Password vs. MD5 Authentication
 EIGRP supports MD5 authentication.
 Router generates and checks every EIGRP packet. Router authenticates the source of each routing
update packet that it receives.
 Configure a “key” (password) and key-id; each participating neighbor must have same key
configured.
EIGRP MD5 Authentication
 EIGRP MD5 authentication:
• Router generates a message digest, or hash, of the key, key-id, and message.
• EIGRP allows keys to be managed using key chains.
• Specify key-id (number, key, and lifetime of key).
• First valid activated key, in order of key numbers, is used.
MD5 Authentication
 The following key parameters must be defined in enough detail before configuring EIGRP
authentication:
◦ The EIGRP AS number
◦ The authentication mode (MD5)
◦ The definition of one or more keys to authenticate EIGRP packets, according to the network
security plan.
◦ The keys’ lifetime, if multiple keys are defined.
 Once defined, the following steps may be implemented:
1. Configure the authentication mode for EIGRP.
2. Configure the key chain.
3. Optionally configure the keys’ lifetime parameters.
4. Enable authentication to use the key(s) in the key chain.
Planning for EIGRP
Configure the Authentication Mode for EIGRP
 Specify MD5 authentication for EIGRP packets.
Router(config-if)#
ip authentication mode eigrp autonomous-system md5
 Enable EIGRP packet authentication using key in the key-chain.
Router(config-if)#
ip authentication key-chain eigrp autonomous-system name-
of-chain
Configure the Key Chain
 Define the keychain in key chain configuration mode.
Router(config)#
key chain name-of-chain
 Identify the key and enter the key-id configuration mode.
Router(config-keychain)#
key key-id
Router(config-keychain-key)#
key-string text
 Identify key string (password)
Configure Keys Lifetime Parameters (Optional)
 Specify when the key will be accepted for received packets.
Router(config-keychain-key)#
accept-lifetime start-time {infinite | end-time |
duration seconds}
 Specify when the key can be used for sending EIGRP
packets.Router(config-keychain-key)#
send-lifetime start-time {infinite | end-time |
duration seconds}
Enable Authentication to Use the Key Chain
 Enable EIGRP packet authentication using key in the key-chain.
Router(config-if)#
ip authentication key-chain eigrp autonomous-system
name-of-chain
Configuring EIGRP MD5 Authentication
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
EIGRP AS 100R1# show running-config
!
<output omitted>
!
key chain R1chain
key 1
key-string FIRST-KEY
accept-lifetime 04:00:00 Jan 1 2009 infinite
send-lifetime 04:00:00 Jan 1 2009 04:00:00 Jan 31 2009
key 2
key-string SECOND-KEY
accept-lifetime 04:00:00 Jan 25 2009 infinite
send-lifetime 04:00:00 Jan 25 2009 infinite
!
<output omitted>
!
interface FastEthernet0/0
ip address 172.16.1.1 255.255.255.0
!
interface Serial0/0/0
bandwidth 64
ip address 192.168.1.101 255.255.255.224
ip authentication mode eigrp 100 md5
ip authentication key-chain eigrp 100 R1chain
!
router eigrp 100
network 172.16.1.0 0.0.0.255
network 192.168.1.0
auto-summary
172.17.2.0 /24
S0/0/0
S0/0/0
64 kbps
192.168.1.96 /27
.101
.102
.1.1
Configuring EIGRP MD5 Authentication
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
EIGRP AS 100
R2# show running-config
!
<output omitted>
!
key chain R2chain
key 1
key-string FIRST-KEY
accept-lifetime 04:00:00 Jan 1 2009 infinite
send-lifetime 04:00:00 Jan 1 2009 infinite
key 2
key-string SECOND-KEY
accept-lifetime 04:00:00 Jan 25 2009 infinite
send-lifetime 04:00:00 Jan 25 2009 infinite
!
<output omitted>
!
interface FastEthernet0/0
ip address 172.17.2.2 255.255.255.0
!
interface Serial0/0/0
bandwidth 64
ip address 192.168.1.102 255.255.255.224
ip authentication mode eigrp 100 md5
ip authentication key-chain eigrp 100 R2chain
!
router eigrp 100
network 172.17.2.0 0.0.0.255
network 192.168.1.0
auto-summary
172.17.2.0 /24
S0/0/0
S0/0/0
64 kbps
192.168.1.96 /27
.101
.102
.1.1
Verifying MD5 Authentication
R1#
*Apr 21 16:23:30.517: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.102
(Serial0/0/0) is up: new adjacency
R1#
R1# show ip eigrp neighbors
IP-EIGRP neighbors for process 100
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.1.102 Se0/0/0 12 00:03:10 17 2280 0 14
R1#
R1# show ip route
<output omitted>
Gateway of last resort is not set
D 172.17.0.0/16 [90/40514560] via 192.168.1.102, 00:02:22, Serial0/0/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
D 172.16.0.0/16 is a summary, 00:31:31, Null0
C 172.16.1.0/24 is directly connected, FastEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.96/27 is directly connected, Serial0/0/0
D 192.168.1.0/24 is a summary, 00:31:31, Null0
R1#
R1# ping 172.17.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.17.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/15/16 ms
Verifying MD5 Authentication
R1# show key chain
Key-chain R1chain:
key 1 -- text “FIRST-KEY"
accept lifetime (04:00:00 Jan 1 2009) - (always valid) [valid now]
send lifetime (04:00:00 Jan 1 2009) - (04:00:00 Jan 31 2009)
key 2 -- text “SECOND-KEY"
accept lifetime (04:00:00 Jan 25 2009) - (always valid) [valid now]
send lifetime (04:00:00 Jan 25 2009) - (always valid) [valid now]
Troubleshooting MD5 Authentication
R1# debug eigrp packets
EIGRP Packets debugging is on
(UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUERY, SIAREPLY)
*Jan 21 16:38:51.745: EIGRP: received packet with MD5 authentication, key id = 1
*Jan 21 16:38:51.745: EIGRP: Received HELLO on Serial0/0/0 nbr 192.168.1.102
*Jan 21 16:38:51.745: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely
0/0
R2# debug eigrp packets
EIGRP Packets debugging is on
(UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUERY, SIAREPLY)
R2#
*Jan 21 16:38:38.321: EIGRP: received packet with MD5 authentication, key id = 2
*Jan 21 16:38:38.321: EIGRP: Received HELLO on Serial0/0/0 nbr 192.168.1.101
*Jan 21 16:38:38.321: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely
0/0
Configuring EIGRP MD5 Authentication
Fa0/0Fa0/0
R1 R2
172.16.1.0 /24
EIGRP AS 100
R1(config-if)# key chain R1chain
R1(config-keychain)# key 2
R1(config-keychain-key)# key-string wrongkey
R1(config-keychain-key)#
172.17.2.0 /24
S0/0/0
S0/0/0
64 kbps
192.168.1.96 /27
.101
.102
.1.1
R2# debug eigrp packets
EIGRP Packets debugging is on
(UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUERY, SIAREPLY)
*Jan 21 16:50:18.749: EIGRP: pkt key id = 2, authentication mismatch
*Jan 21 16:50:18.749: EIGRP: Serial0/0/0: ignored packet from 192.168.1.101, opcode = 5 (invalid
authentication)
*Jan 21 16:50:18.749: EIGRP: Dropping peer, invalid authentication
*Jan 21 16:50:18.749: EIGRP: Sending HELLO on Serial0/0/0
*Jan 21 16:50:18.749: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Jan 21 16:50:18.753: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.101
(Serial0/0/0) is down: Auth failure
R2#
R2# show ip eigrp neighbors
IP-EIGRP neighbors for process 100
R2#
Optimizing EIGRP
Implementations
 Quantity of routing information exchanged between peers: without proper route summarization,
this can be excessive.
 Number of routers that must be involved when a topology change occurs.
 Depth of topology: the number of hops that information must travel to reach all routers.
 Number of alternate paths through the network.
Factors That Influence EIGRP Scalability
 Queries are sent when a route is lost and no feasible successor is available.
 The lost route is now in “active” state.
 Queries are sent to all neighboring routers on all interfaces except the interface to the successor.
 If the neighbors do not have their lost-route information, queries are sent to their neighbors.
 If a router has an alternate route, it answers the query; this stops the query from spreading in
that branch of the network.
EIGRP Query Process
 In a large internetwork EIGRP queries can generate many resources.
 Several solutions exist to optimize the query propagation process and to limit the amount of
unnecessary EIGRP load on the links, including:
◦ Summarization
◦ Redistribution
◦ EIGRP stub routing feature.
Overwhelming EIGRP Query Process
 If a router does not receive a reply to all the outstanding queries within default 3 minutes (180
seconds), the route goes into Stuck-in-Active (SIA) state.
 Common SIA reasons:
• A router is too busy to answer the query.
• A router cannot allocate the memory to process the query.
• The circuit between the two routers is not reliable.
• The router has unidirectional links.
 SIA solutions:
• Redesign the network to limit the query range by route summarization and the ip
summary-address eigrp command.
• Configure the remote routers as stub EIGRP routers.
Stuck-in-Active
SIA Solution: Summarization
 Poorly designed networks can make summarization difficult.
 Manually summarize the routes whenever possible to support a hierarchical network
design.
 The more networks EIGRP summarizes, the lower the number of queries being sent out.
• Ultimately reduces the occurrence of SIA errors.
SIA Solution: Summarization
 This network design is better because subnet addresses from individual major networks are
localized within each cloud, allowing summary routes configured using the ip summary-
address eigrp command to be injected into the core.
 As an added benefit, the summary routes act as a boundary for the queries generated by a
topology change.
 The EIGRP Stub Routing feature:
• Improves network stability
• Reduces resource utilization and
• Simplifies remote router (spoke) configuration
SIA Solution: Stub Networks
 Stub routing is commonly used in hub-and-spoke topology.
 Stub router sends a special peer information packet to all neighboring routers to report its status
as a stub router.
• Any neighbor that receives a packet informing it of the stub status does not query the stub
router for any routes.
• Stub routers are not queried and instead, hub routers connected to the stub router answer the
query on behalf of the stub router.
 Only the remote routers are configured as stubs.
EIGRP Stub Routing
EIGRP Stub
 Configure a router as a stub router.
Router(config-router)#
eigrp stub [receive-only | connected | static | summary | redistributed]
Parameter Description
receive-only
Restricts the router from sharing any of its routes with any other router within an
EIGRP AS.
Keyword cannot be combined with any other keyword.
connected
Permits the EIGRP stub routing feature to send connected routes.
This option is enabled by default and is the most widely practical stub option.
static
Permits the EIGRP stub routing feature to send static routes.
Redistributing static routes with the redistribute static command is still necessary.
summary
Permits the EIGRP stub routing feature to send automatically summarized and / or
manually summarized routes.
This option is enabled by default.
redistributed
Permits the EIGRP stub routing feature to send redistributed routes.
Redistributing routes with the redistribute command is still necessary.
Example: EIGRP Stub Parameters
 If stub connected is configured:
• B will advertise 10.1.2.0/24 to A.
• B will not advertise 10.1.2.0/23, 10.1.3.0/23, or
10.1.4.0/24.
 If stub summary is configured:
• B will advertise 10.1.2.0/23 to A.
• B will not advertise 10.1.2.0/24, 10.1.3.0/24, or
10.1.4.0/24.
Example: EIGRP Stub Parameters (Cont.)
 If stub static is configured:
• B will advertise 10.1.4.0/24 to A.
• B will not advertise 10.1.2.0/24,
10.1.2.0/23, or 10.1.3.0/24.
 If stub receive-only is configured:
• B won’t advertise anything to A, so A needs
to have a static route to the networks
behind B to reach them.
Graceful Shutdown
The chapter focused on the following topics:
 Features of EIGRP, including fast convergence, use of partial updates, multiple network layer
support, use of multicast and unicast, VLSM support, seamless connectivity across all data link
layer protocols and topologies, and sophisticated metric.
 EIGRP’s underlying processes and technologies—neighbor discovery/recovery mechanism, RTP,
DUAL finite state machine, and protocol-dependent modules.
 EIGRP's tables—neighbor table, topology table, and routing table
 EIGRP terminology:
• Advertised distance (the metric for an EIGRP neighbor router to reach the destination; the
metric between the next-hop router and the destination)
• Feasible distance (the sum of the AD from the next-hop neighbor, and the cost between the local
router and the next-hop router)
• Successor (a neighboring router that has a least-cost loop-free path to a destination, the lowest
FD)
• Feasible successor (a neighboring router that has a loop-free backup path to a destination).
• Passive routes, those not undergoing recomputation; active routes, those undergoing
recomputation
 The five EIGRP packet types: hello, update, query, reply, and acknowledgment.
• Updates, queries, and replies are sent reliably.
Summary
◦ EIGRP initial route discovery process, started by a router sending hello packets. Neighboring
routers reply with update packets, which populate the router's topology table. The router
chooses the successor routes and offers them to the routing table.
◦ The DUAL process including selecting FSs. To qualify as an FS, a next-hop router must have an
AD less than the FD of the current successor route for the particular network, to ensure a loop-
free network.
◦ The EIGRP metric calculation, which defaults to bandwidth (the slowest bandwidth between the
source and destination) + delay (the cumulative interface delay along the path).
◦ Planning EIGRP implementations, including:
 IP addressing
 Network topology
 EIGRP traffic engineering.
◦ The list of tasks for each router in the network include:
 Enabling the EIGRP routing protocol (with the correct AS number)
 Configuring the proper network statements
 Optionally configuring the metric to appropriate interfaces.
Summary
• Basic EIGRP configuration commands.
• Commands for verifying EIGRP operation.
• Configuring a passive-interface.
• Propagating a default route.
• EIGRP summarization.
• EIGRP over Frame Relay.
• EIGRP over MPLS.
• EIGRP load-balancing
• Configuring, verifying, and troubleshooting EIGRP MD5 authentication.
• EIGRP scalability factors, including the amount of information exchanged, the number of
routers, the depth of the topology, and the number of alternative paths through the network.
• The SIA state and how to limit the query range to help reduce SIAs.
• Configuring the remote routers as stub EIGRP routers.
• Graceful shutdown, which broadcasts a goodbye message (in a hello packet, with all K values
set to 255) when an EIGRP routing process is shut down, to inform neighbors
Summary (continued)
Understanding
OSPF Terminology
and Operation
 OSPF is a standards-based link-state IP routing protocol described in RFC 2328.
◦ It was developed to meet RIP’s inability to scale beyond 15 routers.
◦ Proposed by IETF in 1988 and formalized in 1991.
◦ There are 2 versions; OSPFv2 is for IPv4 and OSPFv3 is for IPv6.
Open Shortest Path First (OSPF)
 OSPF features include:
◦ Fast convergence
◦ Supports VLSM
◦ Efficient use of bandwidth - Routing changes trigger routing updates (no periodic updates)
◦ Supports large network size
◦ Routing based on best path selection
◦ Grouping of members into Areas
OSPF Features
 With link-state routing protocols, each router has the full picture of the network topology, and
can independently make a decision based on an accurate picture of the network topology.
 To do so, each link-state router keeps a record of:
◦ Its immediate neighbor routers.
◦ All the other routers in the network, or in its area of the network, and their attached
networks.
◦ The best paths to each destination.
Link-State Protocol Characteristics
 Respond quickly to network changes.
 Send triggered updates when a network change occurs.
 Send periodic updates (link-state refresh), at long intervals, such as every 30 minutes.
◦ Uses LSAs to confirm topology information before the information ages out of the link-state
database.
Link-State Protocol Advantages
 OSPF databases / tables:
◦ OSPF adjacency database = Neighbor table
◦ OSPF link-state database = Topology table
◦ OSPF forwarding database = Routing table
 Link-state advertisements (LSAs)
 Link-State Database (LSDB)
 Shortest-Path First (SPF) Routing Algorithm
◦ Dijkstra algorithm
 SPF Tree
 OSPF Areas
◦ Backbone (transit) and standard areas.
 Types of OSPF routers:
◦ Internal router, backbone router, Area Border Router (ABR), Autonomous System Boundary
Router (ASBR)
◦ Designated Router (DR) and Backup Designated Router (BDR)
OSPF Terminology
OSPF Router Tables / Databases
 OSPF maintains three databases which are used to create three tables.
Database Table Description
Adjacency
Database
Neighbor
Table
• List of all neighbors routers to which a router has established
bidirectional communication.
• This table is unique for each router.
• Can be viewed using the show ip ospf neighbor command.
Link-state
Database
Topology
Table
• List of information about all other routers in the network.
• The database shows the network topology.
• All routers within an area have identical link-state databases.
• Can be viewed using the show ip ospf database command.
Forwarding
Database
Routing
Table
• List of routes generated when an algorithm is run on the link-
state database.
• Each router’s routing table is unique and contains information on
how and where to send packets to other routers.
• Can be viewed using the show ip route command.
Link-State Advertisements (LSAs)
 When a change occurs in the network topology, the
router experiencing the change creates a link-state
advertisement (LSA) concerning that link.
◦ LSAs are also called link-state protocol data units
(PDUs).
 The LSA is multicasted to all neighboring devices
using either 224.0.0.5 or 224.0.0.6.
 Routers receiving the LSA immediately forward it to
all neighboring routers.
Link-State Database (LSDB)
 Routers receiving add the LSA to their link-state
database (LSDB).
 The LSDB is used to calculate the best paths
through the network.
 OSPF best route calculation is based on Edsger
Dijkstra's shortest path first (SPF) algorithm.
SPF Routing Algorithm
 The SPF algorithm accumulates costs along each
path, from source to destination.
◦ The accumulated costs is then used by the router
to build a topology table.
SPF Tree and Routing Table
 The topology table is essentially an SPF tree which
contains a listing of all OSPF networks and the costs
to reach them.
 The resulting best routes are then considered to be
added to the routing table.
 To minimize processing and memory requirements, OSPF can divide the routing topology into a
two-layer hierarchy called areas.
 Characteristics of OSPF areas include:
◦ Minimizes routing table entries.
◦ Localizes impact of a topology change within an area.
◦ Detailed LSA flooding stops at the area boundary.
◦ Requires a hierarchical network design.
OSPF Areas
OSPF Two-Layer Hierarchy
 Backbone Area
◦ Referred to as Area 0
◦ Also known as the Transit Area.
 Regular (Standard) Areas
◦ Also known as a nonbackbone areas.
◦ All regular areas must connect to the
backbone area.
◦ Standard areas can be further defined
as stub areas, totally stubby areas, and
Not-so-stubby areas (NSSAs).
 The optimal number of routers per area varies based on factors such as network stability, but Cisco
recommends:
• An area should have no more than 50 routers.
• A router should not be in more than 3 areas.
 How OSPF routers exchange information is based on:
◦ The function of the router.
◦ The type of LSAs it can forward.
◦ The type of area it resides in.
 OSPF routers may function as either:
◦ Internal router
◦ Backbone router
◦ Area Border Router (ABR)
◦ Autonomous System Boundary Router (ASBR)
 Note:
◦ A router can exist as more than one router type.
OSPF Router Types
OSPF Router Types
Internal
Router
Internal
Routers
Internal
Router
All
Backbone
Routers
ABR and
Backbone
Router
ABR and
Backbone
Router
ASBR and
Backbone
Router
 Routers that have all their interfaces within the same area.
 Internal routers in the same area:
◦ Have identical LSDBs.
◦ Run a single copy of the routing algorithm.
Internal Router
 OSPF design rules require that all areas be connected to a single backbone area (Area 0).
◦ Area 0 is also known as Area 0.0.0.0
 An Area 0 router is referred to as a backbone router.
◦ Depending on where it resides in Area 0, it may also be called an Internal router, an ABR, or an
ASBR.
Backbone Router
 Routers with interfaces attached to multiple areas and responsible for:
◦ Joining areas together.
◦ Maintaining separate link-state databases for each area.
◦ Routing traffic destined to/arriving from other areas.
◦ Summarizing information about each area connected and flooding the information through area
0 to the other areas connected.
◦ An area can have one or more ABR.
 ABR cannot send LSU’s to other areas until the entire intra-area is synchronized.
Area Border Router (ABR)
 Routers that have at least one interface connected to another AS, such as a non-OSPF network.
 Routers support redistribution.
◦ They can import non-OSPF network information to the OSPF network.
 Should reside in the backbone area.
Autonomous System Boundary Router (ASBR)
OSPF Router Types
 Routers A, B, C, D and E are backbone routers.
• Backbone routers make up Area 0.
 Routers C, D and E are area border routers (ABRs).
• ABRs attach all other areas to Area 0.
 Routers A, B, F, G, and H are internal routers.
• Internal routers are completely within an area and do not interconnect to any other area or
autonomous system (AS).
 To reduce the amount of OSPF traffic on multiaccess broadcast networks such as Ethernet, OSPF
elects:
◦ A Designated Router (DR)
◦ A Backup Designated Router (BDR)
 The DR is responsible for updating all other OSPF routers (called DROTHERs) when a change
occurs in the multiaccess network.
◦ The BDR monitors the DR and takes over should the DR fail.
 A router connected to multiple broadcast networks can be a DR on one segment and a regular
(DROTHER) router on another segment.
DR and BDR Routers
OSPF Metric Calculation
 The OSPF metric calculation is based on cost.
 Cost is an indication of the overhead required to send
packets across a certain interface.
 The cost of an interface is inversely proportional to the
bandwidth of that interface.
◦ A higher bandwidth is attributed a lower cost.
◦ A lower bandwidth is attributed a higher cost.
Bandwidth
High
Low
Lower Cost
Higher Cost
OSPF Cost Formula
 Cost = 100,000,000 / Bandwidth (bps)
 For example:
• 10BaseT = 100,000,000 / 10,000,000 = 10
• T1 = 100,000,000 / 1,544,000 = 64
OSPF Packets
 OSPF packets are used to perform several functions, including:
◦ Neighbor discovery, to form adjacencies.
◦ Flooding link-state information, to facilitate LSDBs being built in each router.
◦ Running SPF to calculate the shortest path to all known destinations.
◦ Populating the routing table with the best routes to all known destinations.
OSPF Packet
OSPF Packet
Frame Header
Frame Payload
CRC
IP
Header
Protocol Number
(OSPF = 89)
OSPF
Header
OSPF
Message
On a LAN, the OSPF
packet is encapsulated in
an Ethernet frame with a
destination multicast MAC
address of either:
• 01-00-5E-00-00-05
• 01-00-5E-00-00-06
The destination multicast IP
address is set to either:
• 224.0.0.5 (All OSPF routers
listen to this address.)
• 224.0.0.6 (All DR and BDR
routers listen to this address.
The OSPF protocol field is 89.
The OSPF header
identifies the type
of OSPF packet,
the router ID and
the area number.
The OSPF
message
contains the
packet type
specific
message
information.
OSPF Header
OSPF Packet Types
OSPF Packet Types
 Five packet types make OSPF capable of sophisticated and
complex communications.
Type Packet Name Description
1 Hello
Discovers neighbors and builds
adjacencies between them.
2 DBD
Database description
Checks for database synchronization
between routers.
3 LSR
Link-state request
Requests specific link-state records from
another router.
4 LSU
Link-state update
Sends specifically requested link-state
records.
5 LSAck
Link-State Acknowledgment
Acknowledges the other packet types.
OSPF Message
Frame
Header
Frame Payload
CRC
IP
Header
Protocol
Number
(OSPF = 89)
OSPF Header OSPF MessageOSPF Message
The OSPF message contains different information, depending on the packet type:
Packet Type Contains
Type 1 - Hello Contains a list of known neighbors.
Type 2 - DBD
Contains a summary of the LSDB, which includes all known router IDs and their last sequence number,
among a number of other fields.
Type 3 - LSR Contains the type of LSU needed and the router ID of the router that has the needed LSU.
Type 4 - LSU Contains the full LSA entries. Multiple LSA entries can fit in one OSPF update packet.
Type 5 - LSAck Data field is empty.
 Hello packets are used to:
◦ Discover directly connected OSPF neighbors.
◦ Establish and maintain neighbor adjacencies with these directly connected neighbors.
◦ Advertise parameters on which two routers must agree to become neighbors.
◦ Elect the Designated Router (DR) and Backup Designated Router (BDR) on multi-access
networks like Ethernet and Frame Relay.
Type 1 - OSPF Hello Packet
Type 1 - OSPF Hello Packet
 Hello packet fields must match on neighboring routers for them to establish an adjacency:
◦ Hello interval
◦ Dead interval
◦ Network type.
◦ Area id
◦ Authentication password
◦ Stub area flag
 Two routers on the same network segment may not form an OSPF adjacency if:
◦ They are not in the same area
◦ The subnet masks do not match, causing the routers to be on separate networks.
◦ The OSPF Hello or Dead Timers do not match.
◦ The OSPF network types do not match.
◦ The OSPF network command is missing or incorrect.
Type 1 - OSPF Hello Packet
 By default, OSPF Hello packets are transmitted to 224.0.0.5 (all OSPF routers) every:
◦ 10 seconds (Default on multiaccess and point-to-point networks).
◦ 30 seconds (Default on NBMA networks – Frame Relay).
 The Dead interval is the period, expressed in seconds, that the router will wait to receive a Hello
packet before declaring the neighbor "down."
◦ If the Dead interval expires before the routers receive a Hello packet, OSPF will remove that
neighbor from its link-state database.
◦ The router floods the link-state information about the "down" neighbor out all OSPF enabled
interfaces.
 Cisco uses a default of 4 times the Hello interval.
◦ 40 seconds (Default on multiaccess and point-to-point networks).
◦ 120 seconds (Default on NBMA networks – Frame Relay).
Type 1 - OSPF Hello Packet
 The Database Description (DBD) packets contain an abbreviated list of the sending router's link-
state database and is used by receiving routers to check against the local link-state database.
 The link-state database must be identical on all link-state routers within an area to construct an
accurate SPF tree.
Type 2 - OSPF DBD Packet
 The Link State Request (LSR) packet is used by the receiving routers to request more information
about any entry in the DBD.
Type 3 - OSPF LSR Packet
 The Link-State Update (LSU) packets are used for OSPF routing updates.
◦ They reply to LSRs as well as to announce new information.
 LSUs contain seven different types of Link-State Advertisements (LSAs).
 LSUs contains the full LSA entries.
◦ Multiple LSA entries can fit in one OSPF update packet.
Type 4 - OSPF LSU Packet
 LSAck - Link-State Acknowledgement Packet:
◦ When an LSU is received, the router sends a LSAck to confirm receipt of the LSU.
◦ The LSAck data field is empty.
Type 5 - OSPF LSAck Packet
 When an OSPF router is initially
connected to a network it
attempts to create adjacencies
with neighbors.
 To do so, it progresses through
these various states using the 5
OSPF packet types.
OSPF States
Down State
Init State
Two-Way State
ExStart State
Exchange State
Loading State
Full State
No Hello packets received = Down
Send Hello Packets
Transit to Init state
Neighbor Discovery – Hello Protocol
Hello packets received from the neighbor and it
contains the initial router’s router ID.
Transit to two-way state
(Optional) DR and BDR election
Transit to ExStart state
Database Synchronization
Negotiate master / slave relationship and DBD
packet sequence number
DBD exchanged as LSAs are requested and sent
Transit to either Loading or Full state after
completing the database description
Newly learned routes are asked for and current
database is being processed
Route Calculations
Router is synchronized with the neighbor and
route calculations using the SPF algorithm begins
More LSAs
required
Yes
No
Neighbor Discovery – Hello Protocol
R1 R2
172.16.5.0 /24
Fa0/0
.1 .2
Fa0/1
Down State
Init State 
Hello! I’m router ID 172.16.5.1. Is there anyone else on this link?
Hello
Hello! I’m router ID 172.16.5.2 and I see 172.16.5.1.
Hello
R2 neighbor list:
172.16.5.1, int Fa0/1
Unicast to R1
R1 neighbor list:
172.16.5.2, int Fa0/0
Two-Way State
Attempt State
Database Synchronization & Route Calc
R1 R2
172.16.5.0 /24
Fa0/0
.1 .2
Fa0/1
ExStart State 
I will start the exchange because I have router ID 172.16.5.1.
Hello
No, I will start the exchange because I have a higher router ID.
Hello
Here is a summary of my link-state database.
DBD

Here is a summary of my link-state database.
DBD
Exchange State

Thanks for the information!
LSAck
LSAck
Loading State

I need more information on the 172.16.6.0 network.
LSR
Here is the entry for 172.16.6.0/24.
LSU

Thanks for the information!
LSAck
Full State
 Once neighbors adjacencies have been established, the Hello packet continues to be transmitted
every 10 seconds (default) between neighbors.
◦ As long as the other routers keep receiving the Hello packets, the transmitting router and its
networks reside in the topology database.
 After the topological databases are synchronized, updates (LSUs) are sent only to neighbors when:
◦ A change is perceived (Incremental updates)
◦ Every 30 minutes (Condensed version is forwarded).
Adjacent OSPF Neighbors
 Each LSA entry has its own aging timer, which the link-state age field carries.
 The default aging timer value for OSPF is 30 minutes (1800 seconds).
 After an LSA entry ages, the router that originated the entry sends the LSA, with a higher sequence
number, in a link-state update (LSU), to verify that the link is still active.
◦ The LSU can contain one or more LSAs.
◦ This LSA validation method saves on bandwidth compared to distance-vector routers, which
send their entire routing table at short, periodic intervals.
Link-State Data Structures
Link-State Data Structures
OSPF Administrative Distance
Route Source Administrative Distance
Connected 0
Static 1
EIGRP Summary 5
External BGP 20
Internal EIGRP 90
IGRP 100
OSPF 110
IS IS 115
RIP 120
External EIGRP 170
Internal BGP 200
Planning OSPF
Routing
Implementations
 Prior to deploying an OSPF routing solution, the following should be considered:
◦ IP addressing plan
◦ Network topology
◦ OSPF areas
 Once the requirements have been assessed, the implementation plan can be created.
Planning to Deploy OSPF
 The information necessary to implement OSPF routing includes the following:
◦ The IP addresses to be configured on individual router interfaces.
◦ A list of routers on which OSPF is to be enabled, along with the OSPF process number to use and
the connected networks that are to run OSPF and that need to be advertised (per individual
router).
◦ The area in which each interface is to be configured.
◦ Metrics that need to be applied to specific interfaces, or OSPF traffic engineering.
 In the implementation plan, OSPF tasks include the following:
◦ Enabling the OSPF routing protocol, directly on an interface or by using the correct network
command under the OSPF routing process configuration mode.
◦ Assigning the correct area id to the interface, via the OSPF configuration on the interface or
under the OSPF routing process configuration mode.
◦ Optionally configuring the metric to appropriate interfaces.
Implementing OSPF
 After implementing OSPF, verification should confirm proper deployment on each router.
 Verification tasks include verifying:
◦ Verifying that the appropriate OSPF neighbor relationships and adjacencies are established
◦ Verifying that the OSPF LSDB is populated with the necessary information.
◦ Verifying that IP routing table is populated with the necessary information.
◦ Verifying that there is connectivity in the network between routers and to other devices.
◦ Verifying that OSPF behaves as expected in a case of a topology change, by testing link failure
and router failure events.
Verifying OSPF
 After a successful OSPF deployment, the solution and verification process and results should be
documented for future reference.
 Documentation should include:
◦ A topology map
◦ The IP addressing plan
◦ The area hierarchy
◦ The networks and interfaces included in OSPF on each router
◦ The default and any special metrics configured
◦ The verification results.
Documenting
Configuring and
Verifying Basic
OSPF
Enable OSPF Routing
 Define OSPF as the IP routing protocol.
Router(config)#
router ospf process-id
 The process-id is an internally used number that identifies the OSPF routing process.
 The process-id does not need to match process IDs on other routers
 It can be any positive integer in the range from 1 to 65535.
Identify OSPF Networks
 Define OSPF networks to advertise to OSPF neighbors.
Router(config-router)#
network ip-address [wildcard-mask] area area-id
 The ip-address parameter can be a network, a subnet, or the address of a directly
connected interface.
 The wildcard-mask is an inverse mask used to determine how to interpret the address.
• The mask has wildcard bits, where 0 is a match and 1 is “don’t care.”
• For example, 0.0.255.255 indicates a match in the first 2 octets.
• The area-id parameter specifies the OSPF area to be associated with the address.
 Recall that a wildcard mask is the inverse of a subnet mask.
 An easy way to calculate the inverse of the subnet mask, is to subtract the subnet mask from
255.255.255.255.
 For example, the inverse of subnet mask 255.255.255.252 is 0.0.0.3.
The Wildcard Mask
255.255.255.255
– 255.255.255.252
0. 0. 0. 3
Identify OSPF Networks
 Optional method to enable OSPF explicitly on an interface.
Router(config-if)#
ip ospf process-id area area-id
 The process-id parameter can be a network, a subnet, or the address of a directly
connected interface.
• The area-id parameter specifies the OSPF area to be associated with the address.
• Because this command is configured explicitly for the interface, it takes precedence over the
network area command.
Define the Interface Bandwidth
 Defines the interface’s bandwidth (optional).
Router(config-if)#
bandwidth kilobits
 The kilobits parameter indicates the intended bandwidth in kbps.
 For example, to set the bandwidth to 512,000 bps, use the bandwidth 512 command.
 The configured bandwidth is used by routing protocols in the metric calculation.
 The command does not actually change the speed of the interface.
Configuring Single-Area OSPF Example
R2 R3
OSPF Area 0
S0/0/1
S0/0/1
64 kbps
10.2.1.0 /24
.2
.1
R1 Fa0/0
.1
Fa0/0
.2
10.64.0.0 /24
R2(config)# interface Fa0/0
R2(config-if)# ip address 10.64.0.2 255.255.255.0
R2(config-if)# no shut
R2(config-if)# interface S0/0/1
R2(config-if)# ip address 10.2.1.2 255.255.255.0
R2(config-if)# bandwidth 64
R2(config-if)# no shut
R2(config-if)# exit
R2(config)#
R1(config)# interface Fa0/0
R1(config-if)# ip address 10.64.0.1 255.255.255.0
R1(config-if)# no shut
R1(config-if)# exit
R1(config)#
R3(config)# interface S0/0/1
R3(config-if)# ip address 10.2.1.1 255.255.255.0
R3(config-if)# bandwidth 64
R3(config-if)# no shut
R3(config-if)# exit
R3(config)#
Configuring Single-Area OSPF Example
R2 R3
OSPF Area 0
S0/0/1
S0/0/1
64 kbps
10.2.1.0 /24
.2
.1
R1 Fa0/0
.1
Fa0/0
.2
10.64.0.0 /24
R1(config)# router ospf 1
R1(config-router)# network 10.0.0.0 0.255.255.255 area 0
R1(config-router)#
R2(config)# router ospf 50
R2(config-router)# network 10.2.1.2 0.0.0.0 area 0
R2(config-router)# network 10.64.0.2 0.0.0.0 area 0
R2(config-router)#
R3(config)# router ospf 100
R3(config-router)# network 10.2.1.1 0.0.0.0 area 0
R3(config-router)#
Configuring Multi-Area OSPF Example
R2 R3
OSPF Area 0
S0/0/1
S0/0/1
64 kbps
10.2.1.0 /24
.2
.1
R1 Fa0/0
.1
Fa0/0
.2
10.64.0.0 /24
OSPF Area 1
R1(config)# router ospf 1
R1(config-router)# network 10.0.0.0 0.255.255.255 area 0
R1(config-router)#
R2(config)# router ospf 50
R2(config-router)# network 10.2.1.2 0.0.0.0 area 1
R2(config-router)# network 10.64.0.2 0.0.0.0 area 0
R2(config-router)#
R3(config)# router ospf 100
R3(config-router)# network 10.2.1.1 0.0.0.0 area 1
R3(config-router)#
Alternate Multi-Area OSPF Configuration
R2 R3
OSPF Area 0
S0/0/1
S0/0/1
64 kbps
10.2.1.0 /24
.2
.1
R1 Fa0/0
.1
Fa0/0
.2
10.64.0.0 /24
OSPF Area 1
R1(config)# router ospf 1
R1(config-router)# network 10.0.0.0 0.255.255.255 area 0
R1(config-router)#
R2(config)# interface S0/0/1
R2(config-if)# ip ospf 50 area 1
R2(config-if)# exit
R2(config)#
R2(config)# router ospf 50
R2(config-router)# network 10.64.0.2 0.0.0.0 area 0
R2(config-router)#
R3(config)# router ospf 100
R3(config-router)# network 10.2.1.1 0.0.0.0 area 1
R3(config-router)#
 A router is known to OSPF by the OSPF router ID number.
◦ LSDBs use the OSPF router ID to differentiate one router from the next.
 By default, the router ID is the highest IP address on an active interface at the moment of OSPF
process startup.
◦ However, for stability reason, it is recommended that the router-id command or a
loopback interface be configured.
OSPF Router ID
OSPF Router ID
Router ID
explicitly
configured?
Use that as
the Router-ID
Yes
No
Loopback
interface
configured?
Yes
No
Use the highest active
configured IP address
Use the highest
configured loopback IP
address
Define the Router ID
 Assign a specific router ID to the router.
Router(config-router)#
router-id ip-address
 Any unique arbitrary 32-bit value in an IP address format (dotted decimal) can be used.
 If this command is used on an OSPF process that is already active, then the new router ID
takes effect:
 After the next router reload.
 After a manual restarting of the OSPF process using the clear ip ospf process
privileged EXEC command.
Verifying the Router-ID
R2 R3
OSPF Area 0
S0/0/1
S0/0/1
64 kbps
10.2.1.0 /24
.2
.1
R1 Fa0/0
.1
Fa0/0
.2
10.64.0.0 /24
OSPF Area 1
R2# show ip ospf
Routing Process “ospf 50” with ID 10.64.0.2
<output omitted>
Command Description
show ip protocols Displays OSPF process ID, router ID, networks
router is advertising & administrative distance
show ip ospf neighbors Displays OSPF neighbor relationships.
show ip route Displays the routing table.
show ip ospf interface Displays hello interval and dead interval
show ip ospf
Displays OSPF process ID, router ID, OSPF area
information & the last time SPF algorithm
calculated
Verifying OSPF
Verifying OSPF: show ip protocols
R1# show ip protocols
Routing Protocol is “ospf 1”
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 10.64.0.1
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
10.0.0.0 0.255.255.255 area 0
Reference bandwidth unit is 100 mbps
<output omitted>
Verify routing protocol information on the router.
Verifying OSPF: show ip ospf neighbors
R2# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.64.0.1 1 FULL/DROTHER 00:00:30 10.64.0.1 FastEthernet0/0
10.2.1.1 1 FULL/ - 00:00:34 10.2.1.1 Serial0/0/1
Display OSPF neighbors.
Lists the neighbors
in the order they
were learned.
The OSPF priority
of the interface.
The OSPF state of the interface.
FULL state means that the router
and its neighbor have identical
OSPF link-state databases.
The amount of time remaining that
the router will wait to receive an
OSPF Hello packet from the
neighbor before declaring the
neighbor down.
The IP address of the neighbor's
interface to which this router is
directly connected.
The interface on which
this router has formed
adjacency with the
neighbor.
Verifying OSPF: show ip route ospf
R1# show ip route ospf
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O IA 10.2.1.0/24 [110/782] via 10.64.0.2, 00:03:05, FastEthernet0/0
R1#
Verify that the router recognizes OSPF routes.
 To clear all routes from the IP routing table, use:
Router# clear ip route *
 To clear a specific route from the IP routing table, use:
Router# clear ip route A.B.C.D
Clearing the OSPF Routing Table
Verifying OSPF: show ip ospf interface
R1# show ip ospf interface fastEthernet 0/0
FastEthernet0/0 is up, line protocol is up
Internet Address 10.64.0.1/24, Area 0
Process ID 1, Router ID 10.64.0.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DROTHER, Priority 0
Designated Router (ID) 10.64.0.2, Interface address 10.64.0.2
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:04
Supports Link-local Signaling (LLS)
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 4
Last flood scan time is 0 msec, maximum is 4 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 10.64.0.2 (Designated Router)
Suppress hello for 0 neighbor(s)
Verify OSPF configured interfaces.
Verifying OSPF: show ip ospf
R2# show ip ospf
Routing Process “ospf 50” with ID 10.64.0.2
<output omitted>
Area BACKBONE(0)
Area has no authentication
SPF algorithm last executed 00:01:25.028 ago
SPF algorithm executed 7 times
<output omitted>
Area 1
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm last executed 00:00:54.636 ago
SPF algorithm executed 3 times
<output omitted>
R2#
Verify general OSPF information.
Understanding OSPF
Network Types
 OSPF defines three types of network:
OSPF Network Types
Network Type Description Example
Broadcast
• A multiaccess broadcast network.
• DR / BDR required.
All Ethernet networks
Point-to-point
• A network that joins a single pair of routers.
• No DR / BDR required.
Serial link using PPP /
HDLC
Nonbroadcast
multiaccess
(NBMA)
• A network that interconnects more than two routers but
that has no broadcast capability.
• DR / BDR may or may not be required.
• There are five modes of OSPF operation available for
NBMA networks:
• RFC-compliant modes:
• non-broadcast
• point-to-multipoint
• Cisco proprietary modes:
• broadcast
• point-to-multipoint non-broadcast
• point-to-point
• The choice of mode depends on the topology of the
NBMA network.
Frame Relay
ATM
X.25
Broadcast
 DR /BDR election required since there could be many devices.
• Establishing adjacencies with all routers in a broadcast network would easily overload a router
due to the overhead of maintaining those adjacencies.
• Instead, OSPF routers form full adjacencies with the DR and BDR only.
 Packets to all OSPF routers are forwarded to 224.0.0.5.
 Packets to the DR / BDR are forwarded to 224.0.0.6.
Broadcast Challenge: Multiple Adjacencies
 A challenge of broadcast network is the number of adjacencies that would be required.
• One adjacency for every pair of routers.
• This would increase network traffic and load on each router to manage each individual adjacency.
Broadcast Challenge: Extensive LSAs
 Another challenge is the increase in network LSAs.
• Every LSA sent out also requires an acknowledgement.
 Consequence:
• Lots of bandwidth consumed
• Chaotic traffic
Solution: Designated Router
 A designated router (DR) and backup designated router (BDR) solve these challenges because they:
• Reduce routing update traffic
• Manage link-state synchronization
 The DR is elected and becomes responsible for maintaining the topology table for the segment.
 This DR has two main functions:
◦ To become adjacent to all other routers on the network segment.
◦ To act as a spokesperson for the network.
 As spokesperson the DR becomes the focal point for collecting and sending routing information
(LSAs).
Designated Router (DR)
 For fault tolerance, a second router is elected as the BDR.
◦ The BDR must also become adjacent to all routers on the network and must serve as a second
focal point for LSAs.
◦ However, the BDR is not responsible for updating the other routers or sending network LSAs.
 The BDR keeps a timer on the DR's update activity to ensure that it is operational.
◦ If the BDR does not detect activity from the DR after the timer expires, the BDR immediately
becomes the DR and a new BDR is elected.
Backup Designated Router (BDR)
 DRs and BDRs are elected on a per-network basis and therefore each network segment has its own
DR and BDR.
◦ For example, a router connected to multiple multiaccess broadcast networks can be a DR on one
segment and a regular (DROTHER) router on another segment.
 The election process is accomplished dynamically using the Hello protocol.
◦ However, the election can be manually manipulated the ip ospf priority number
interface configuration command.
 After a DR and BDR have been selected, any router added to the broadcast network establishes full
adjacencies with the DR and BDR only.
DR/BDR
Assigning Router Priority
 Assign a specific OSPF priority to the router.
Router(config-if)#
ip ospf priority number
 A router interface can have a priority number between 0 - 255:
 0 = DROTHER - Router cannot be a DR
 1 = Favorable - Default for all routers
 255 = Very favorable- Ensures at least of a tie.
 The priority must be configured before the election takes place to figure into the election.
 To display an interface's priority value and other key information use the show ip ospf interface
command.
1. All neighbors with a priority > 0 are listed.
2. The router with highest priority is elected BDR.
If there is a tie, the highest router IDs are used.
3. If there is no DR, the BDR is promoted as DR.
4. The neighbor with the next highest priority is elected BDR.
The Election of the DR
 The DR / BDR maintain these roles until they fail even when more routers with higher priorities
show up on the network.
 To influence the election of DR & BDR, do one of the following:
◦ Boot up the DR first, followed by the BDR, and then boot all other routers.
OR
◦ Shut down the interface on all routers, followed by a no shutdown on the DR, then the BDR,
and then all other routers.
Manipulating the Election Process
Point-to-Point
 Both routers become fully adjacent to each another.
 Usually a serial interface running either PPP or HDLC.
• May also be a point-to-point subinterface running Frame Relay or ATM.
 No DR /BDR election required since there are only two devices.
 OSPF autodetects this type of network.
 Packets are sent to 224.0.0.5.
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail
Routing Protocol in detail

More Related Content

What's hot

Chapter 19 : single-area ospf
Chapter 19 : single-area ospfChapter 19 : single-area ospf
Chapter 19 : single-area ospf
teknetir
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
arpit
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
Kashif Latif
 

What's hot (20)

CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4
 
OSPF by Abdullah Mukhtar
OSPF by Abdullah MukhtarOSPF by Abdullah Mukhtar
OSPF by Abdullah Mukhtar
 
Ospf.ppt
Ospf.pptOspf.ppt
Ospf.ppt
 
CCNA3 Verson6 Chapter7
CCNA3 Verson6 Chapter7CCNA3 Verson6 Chapter7
CCNA3 Verson6 Chapter7
 
Ospf
OspfOspf
Ospf
 
OSPF Basics
OSPF BasicsOSPF Basics
OSPF Basics
 
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
 
Eigrp.ppt
Eigrp.pptEigrp.ppt
Eigrp.ppt
 
Chapter 19 : single-area ospf
Chapter 19 : single-area ospfChapter 19 : single-area ospf
Chapter 19 : single-area ospf
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
 
CCNA3 Verson6 Chapter8
CCNA3 Verson6 Chapter8CCNA3 Verson6 Chapter8
CCNA3 Verson6 Chapter8
 
CCNP v6 Route: Implementing IP Routing Chapter 2
CCNP v6 Route: Implementing IP Routing Chapter 2CCNP v6 Route: Implementing IP Routing Chapter 2
CCNP v6 Route: Implementing IP Routing Chapter 2
 
CCNA3 Verson6 Chapter5
CCNA3 Verson6 Chapter5CCNA3 Verson6 Chapter5
CCNA3 Verson6 Chapter5
 
CCNAS :Multi Area OSPF
CCNAS :Multi Area OSPFCCNAS :Multi Area OSPF
CCNAS :Multi Area OSPF
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
20407473 ospf
20407473 ospf20407473 ospf
20407473 ospf
 
CCNP ROUTE V7 CH5
CCNP ROUTE V7 CH5CCNP ROUTE V7 CH5
CCNP ROUTE V7 CH5
 
acit mumbai - ospf rouitng
acit mumbai - ospf rouitng acit mumbai - ospf rouitng
acit mumbai - ospf rouitng
 
CCNP ROUTE V7 CH4
CCNP ROUTE V7 CH4CCNP ROUTE V7 CH4
CCNP ROUTE V7 CH4
 
Cisco ospf
Cisco ospf Cisco ospf
Cisco ospf
 

Similar to Routing Protocol in detail

Enhanced Interior Gateway Routing Protocol - Wikipedia, the free encyclopedia
Enhanced Interior Gateway Routing Protocol - Wikipedia, the free encyclopediaEnhanced Interior Gateway Routing Protocol - Wikipedia, the free encyclopedia
Enhanced Interior Gateway Routing Protocol - Wikipedia, the free encyclopedia
Hoàng Hải Nguyễn
 
Ospf and eigrp concepts and configuration
Ospf and eigrp concepts and configurationOspf and eigrp concepts and configuration
Ospf and eigrp concepts and configuration
IT Tech
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
robertoxe
 

Similar to Routing Protocol in detail (20)

EIGRP (enhanced interior gateway routing protocol)
EIGRP (enhanced interior gateway routing protocol)EIGRP (enhanced interior gateway routing protocol)
EIGRP (enhanced interior gateway routing protocol)
 
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOLEnhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
 
EIGRP Protocol.pptx
EIGRP Protocol.pptxEIGRP Protocol.pptx
EIGRP Protocol.pptx
 
6978106.ppt
6978106.ppt6978106.ppt
6978106.ppt
 
Final Presentation on the Network layer
Final Presentation on the Network layerFinal Presentation on the Network layer
Final Presentation on the Network layer
 
Internet standard routing protocols
Internet standard routing protocolsInternet standard routing protocols
Internet standard routing protocols
 
Eigrp Summary (Ccna4.Com)
Eigrp Summary  (Ccna4.Com)Eigrp Summary  (Ccna4.Com)
Eigrp Summary (Ccna4.Com)
 
Lecture number 5 Theory.pdf(machine learning)
Lecture  number  5 Theory.pdf(machine learning)Lecture  number  5 Theory.pdf(machine learning)
Lecture number 5 Theory.pdf(machine learning)
 
EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)
 
Dynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And BasicsDynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And Basics
 
Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)
 
EIGRP interview questions and answers part 1
EIGRP interview questions and answers part 1EIGRP interview questions and answers part 1
EIGRP interview questions and answers part 1
 
Dynamic routing
Dynamic routingDynamic routing
Dynamic routing
 
Enhanced Interior Gateway Routing Protocol - Wikipedia, the free encyclopedia
Enhanced Interior Gateway Routing Protocol - Wikipedia, the free encyclopediaEnhanced Interior Gateway Routing Protocol - Wikipedia, the free encyclopedia
Enhanced Interior Gateway Routing Protocol - Wikipedia, the free encyclopedia
 
Ospf and eigrp concepts and configuration
Ospf and eigrp concepts and configurationOspf and eigrp concepts and configuration
Ospf and eigrp concepts and configuration
 
Eigrp new
Eigrp newEigrp new
Eigrp new
 
CCCNP ROUTE v6_ch02
CCCNP ROUTE v6_ch02CCCNP ROUTE v6_ch02
CCCNP ROUTE v6_ch02
 
13. eigrp and ospf
13. eigrp and ospf13. eigrp and ospf
13. eigrp and ospf
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 

Recently uploaded

Recently uploaded (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 

Routing Protocol in detail

  • 2. Objectives Introduction of EIGRP, Features of EIGRP, Tables of EIGRP, Metric of EIGRP  Configuration of EIGRP, Summarization with EIGRP  EIGRP unequal cost load balancing, Variance, Authentication  EIGRP stub router, Configure EIGRP Stub Network.  EIGRP Summary  Understanding OSPF Fundamentals, Configuring OSPF within Single Area, Cost  Understanding the differences between OSPF Network Types, Using OSPF Across Multiple Area- Features, Router Types  Configure OSPF virtual Link & Summarization  "Link- State Advertisements, Different Types Of Areas, Propagation of LSAs, Special OSPF Area"  Configure OSPF Stub Areas & Authentication  OSPF Summary  Introduction to BGP, Context for the BGP, BGP Route Stability, BGP Operation Basics, When to use BGP, BGP States  Configuring Default Routing with BGP, Configure BGP using AS_PATH attribute  "BGP Attributes, Controlling BGP Route Selection using the Weight, Local-Preference, MED"  Configure IBGP and EBGP using Local Preference & MED attributes.  WorkShop
  • 4.  EIGRP is a Cisco-proprietary distance-vector protocol with link-state features.  EIGRP features include: • Fast convergence • Partial updates • Multiple network layer support • Use of multicast and unicast communication • Variable-length subnet masking (VLSM) support • Seamless connectivity across all data link layer protocols and topologies • By default, it performs automatic route summarization at major network boundaries (can be disabled) but can also be configured to summarize on interfaces. EIGRP Features
  • 5.  Neighbor table  Topology table  Routing table  Advertised Distance (AD)  Feasible Distance (FD)  Successor  Feasible successor (FS)  Passive Versus Active Routes EIGRP Terminology
  • 6.  Neighbor table • Contains EIGRP neighbor addresses and the interface through which they can be reached.  Topology table • Contains all destinations advertised by neighboring routers.  Routing table • Contains EIGRP successor routes. EIGRP Tables
  • 7.  Advertised Distance (AD) • Advertised distance (AD), also referred to as the Reported Distance, is the cost between the next-hop router and the destination.  Feasible Distance (FD) • Feasible distance (FD) is the cost between the local router and the next-hop router plus the next-hop router’s AD to the destination network. AD versus FD
  • 8.  Successor ◦ A successor is a neighboring router that has a least-cost path to a destination (the lowest FD) that is guaranteed not to be part of a routing loop. ◦ Successor routes are offered to the routing table to be used for forwarding packets. ◦ Multiple successors can exist if they have the same FD.  Feasible successor (FS) ◦ A feasible successor is a neighbor that is closer to the destination, but it is not the least-cost path. ◦ A feasible successor ensures a loop-free topology because it must have an AD less than the FD of the current successor route. ◦ Feasible successors are selected at the same time as successors but are kept in the topology table as backups to the successor routes. ◦ The topology table can maintain multiple feasible successors for a destination. Successor and Feasible Successor
  • 9.  Passive Route • A route is considered passive when the router is not performing recomputation on that route. • Passive is the operational, stable state.  Active route • A route is active when it is undergoing recomputation. Passive versus Active Routes
  • 10.  Reliable Transport Protocol (RTP) ◦ Responsible for guaranteed, ordered delivery of EIGRP packets to all neighbors.  Neighbor discovery/recovery mechanism ◦ Enables EIGRP routers to dynamically learn when their neighbors become unreachable or inoperative by periodically sending small hello packets.  Protocol-dependent modules (PDMs) ◦ Responsible for network layer protocol-specific requirements such as IP, IPv6, AppleTalk, and Novell NetWare.  DUAL finite-state machine ◦ Diffusing Update Algorithm (DUAL) is the routing algorithm that tracks all routes advertised by all neighbors and uses distance information, known as the composite metric, to select efficient, loop-free paths to all destinations. Key EIGRP Technologies
  • 11.  EIGRP cannot use the services of UDP or TCP since IPX and Appletalk do not use the TCP/IP protocol suite.  Reliable Transport Protocol (RTP) is the Transport layer protocol uniquely used by EIGRP for the delivery and reception of EIGRP packets. • RTP is similar to TCP but is a Cisco proprietary.  RTP provides reliable or unreliable service as the situation warrants. • Reliable packets (Update, Query, Reply) require explicit acknowledgement while unreliable packets (Hello, ACK) do not. Reliable Transport Protocol
  • 12.  EIGRP routers actively establish relationships with their neighbors.  Adjacencies are established using small Hello packets which are sent every 5 or 60 seconds. • If a neighbor misses 3 consecutive Hello packets then the route is considered invalid. • Default = 15 seconds or 180 seconds. Neighbor Discovery / Recovery
  • 13.  Various routed protocols are supported through its PDMs. • Provides independence from routed protocols. • PDMs are modular, scalable and adaptable. • EIGRP can adapt to new or revised routed protocols. • PDMs protect EIGRP from painstaking revision.  Each PDM is responsible for all functions related to its specific routed protocol. Protocol-Dependent Modules EIGRP maintains individual tables for each routed protocol.
  • 14.  DUAL uses the Neighbor and Topology tables to calculate route information.  When a link fails, DUAL looks for a feasible successor in its Neighbor and Topology tables. • It compares all routes advertised by neighbors by using a composite metric for each route. • Lowest-cost paths are then inserted into the routing table. DUAL finite-state machine
  • 15. EIGRP Packet Frame Header Frame Payload CRCIP Header Protocol Number (EIGRP = 88) EIGRP Header EIGRP Message On a LAN, the EIGRP packet is encapsulated in an Ethernet frame with a destination multicast MAC address: 01-00-5E-00-00-0A The destination IP address is set to the multicast 224.0.0.10 and the EIGRP protocol field is 88. The EIGRP header identifies the type of EIGRP packet and autonomous system number. The EIGRP message consists of the Type / Length / Value (TLV).
  • 16.  EIGRP uses these 5 packet types to maintain its various tables and establish complex relationships with neighbor routers: • Hello • Acknowledgment • Update • Query • Reply EIGRP Header
  • 18.  EIGRP relies on Hello packets to discover, verify, and rediscover neighbor routers.  EIGRP Hello packets are multicast to 224.0.0.10.  Hello packets are always sent unreliably and therefore do not require acknowledgment. Hello Packets
  • 19.  Hellos are sent at a fixed (and configurable) interval, called the Hello interval. • Hello/Hold timers do not need to match. • To reset the Hello interval: no ip hello-interval eigrp as#  Hello interval depends on the interface’s bandwidth. • High bandwidth = 5 seconds • Default interval on point-to-point serial links, multipoint circuits with bandwidth greater than T1, and LANs. • Low Bandwidth = 60 seconds • Default interval on T1 or less multipoint WAN circuits.  On hearing Hellos, a router creates a neighbor table and the continued receipt of Hellos maintains the table.  Hold time is the maximum amount of allowed time that Hellos are not heard from a neighbor. • Three times the Hello Interval: • Low Bandwidth (3 x 60 sec.) = 180 seconds • High bandwidth (3 x 5 sec.) = 15 seconds Hello Packets
  • 21.  Are used to indicate receipt of any EIGRP packet during a "reliable" (i.e., RTP) exchange. • To be reliable, a sender's message must be acknowledged by the recipient.  Acknowledgment packets are: • Dataless Hello packets. • Unicast. Acknowledgement Packets
  • 22.  After the local router discovers a new neighbor, update packets are sent to the new neighbor.  Update packets are also used when a router detects a topology change. • The router sends a multicast Update packet to all neighbors, alerting them to the change.  All Update packets are sent reliably. Update Packets Update packet • Initially sent after a new neighbor is discovered. • Sent when a topology change has been detected.
  • 23.  Query and Reply packets are sent when a destination has no feasible successors.  Both packet types are sent reliably.  A Query packet is multicasted to other EIGRP routers during the route re-computation process. • Query packets are always multicast.  A Reply packet is used to respond to a query to instruct the originator not to recompute the route because feasible successors exist. • Reply packets are always unicast. Query and Reply Packets
  • 25. Packet Types Packet Type Use Hello Used to discover other EIGRP routers in the network. Acknowledgement Used to acknowledge the receipt of any EIGRP packet. Update Convey routing information to known destinations. Query Used to get specific information from a neighbor router. Reply Used to respond to a query.
  • 27.  EIGRP selects primary (successor) and backup (feasible successor) routes and injects those into the topology table.  The primary (successor) routes are then moved to the routing table. EIGRP Operations IP EIGRP Neighbor Table Neighbor IP Address Local router exit interface to neighbor IP EIGRP Topology Table Destination 1 FD / AD via each neighbor IP Routing Table Destination 1 Best route List of directly connected adjacent EIGRP neighbor routers and the local interface to exit to reach it. List of all routes learned from each EIGRP neighbor and identifies successor routes and feasible successor routes. List of the best (successor) routes from the EIGRP topology table and other routing processes.
  • 29. R1# show ip eigrp neighbors IP-EIGRP neighbors for process 100 H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 0 192.168.1.102 Se0/0/1 11 00:07:22 10 2280 0 5 R1# EIGRP Neighbor Table Lists the order in which a peering session was established with the specified neighbor, starting with 0. Neighbor’s IP address Local interface receiving EIGRP Hello packets. Seconds remaining before declaring neighbor down. The current hold time and is reset to the maximum hold time whenever a Hello packet is received. SRTT (Smooth Round Trip Timer) and RTO (Retransmit Interval) are used by RTP to manage reliable EIGRP packets. SRTT indicates how long it takes for this neighbor to respond to reliable packets. RTO indicates how long to wait before retransmitting if no ACK is received. Queue count should always be zero otherwise there’s congestion on the link. The sequence number of the last update, query, or reply packet that was received from this neighbor. Amount of time since this neighbor was added to the neighbor table.
  • 30. R1# show ip eigrp topology IP-EIGRP Topology Table for AS(100)/ID(192.168.1.101) Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia Status P 172.17.0.0/16, 1 successors, FD is 40514560 via 192.168.1.102 (40514560/28160), Serial0/0/1 R1# EIGRP Topology Table Indicates if the route is in passive or active state. Destination network. Number of successors Next-hop address for successor. Outbound interface to reach the network. Feasible distance (FD) to the destination Feasible distance (FD) to the destination Advertised distance (AD) from the successor
  • 31. EIGRP Routing Table EIGRP route Destination network R1# show ip route <output omitted> Gateway of last resort is not set D 172.17.0.0/16 [90/40514560] via 192.168.1.102, 00:02:22, Serial0/0/1 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks D 172.16.0.0/16 is a summary, 00:31:31, Null0 C 172.16.1.0/24 is directly connected, FastEthernet0/0 R1# Administrative distance Feasible distance Next-hop address to reach the network Time indicating the last update packet received Local router exit interface to destination network Summary route automatically created as the result of the default classful behavior of EIGRP.
  • 32.  EIGRP default administrative distances EIGRP Administrative Distance (AD) Routes manually summarized. Routes redistributed into EIGRP.
  • 33. DUAL Example (1) 10.1.1.0 /24 A C B E D (2) (2) (1) (1) (1) EIGRP FD AD Topology 10.1.1.0 /24 3 ***** Passive ***** via B 3 1 Successor via D 4 2 Feasible Successor via E 4 3 Router C EIGRP FD AD Topology 10.1.1.0 /24 3 ***** Passive ***** via D 3 2 Successor via C 4 3 Router E EIGRP FD AD Topology 10.1.1.0 /24 2 ***** Passive ***** via B 2 1 Successor via C 5 3 Router D
  • 34. DUAL Example (1) 10.1.1.0 /24 A C B E D (2) (2) (1) (1) (1) EIGRP FD AD Topology 10.1.1.0 /24 3 ***** Passive ***** via B 3 1 Successor via D 4 2 Feasible Successor via E 4 3 Router C EIGRP FD AD Topology 10.1.1.0 /24 3 ***** Passive ***** via D 3 2 Successor via C 4 3 Router E EIGRP FD AD Topology 10.1.1.0 /24 2 ***** Passive ***** via B 2 1 Successor via C 5 3 Router D
  • 35. DUAL Example (1) 10.1.1.0 /24 A C B E D (2) (2) (1) (1) EIGRP FD AD Topology 10.1.1.0 /24 3 ***** Passive ***** via B 3 1 Successor via D 4 2 Feasible Successor via E 4 3 Router C EIGRP FD AD Topology 10.1.1.0 /24 3 ***** Passive ***** via D 3 2 Successor via C 4 3 Router E EIGRP FD AD Topology 10.1.1.0 /24 -1 ***** ACTIVE ****** via E (Q) Query via C 5 3 (Q) Query Router D Q Q Q = Query
  • 36. DUAL Example (1) 10.1.1.0 /24 A C B E D (2) (2) (1) (1) EIGRP FD AD Topology 10.1.1.0 /24 3 ***** Passive ***** via B 3 1 Successor via D via E 4 3 Router C EIGRP FD AD Topology 10.1.1.0 /24 -1 ***** ACTIVE ****** via D via C 4 3 (Q) Query Router E EIGRP FD AD Topology 10.1.1.0 /24 -1 ***** ACTIVE ****** via E (Q) Query via C 5 3 Router D R Q Q = Query R = Reply
  • 37. DUAL Example (1) 10.1.1.0 /24 A C B E D (2) (2) (1) (1) EIGRP FD AD Topology 10.1.1.0 /24 3 ***** Passive ***** via B 3 1 Successor via D via E Router C EIGRP FD AD Topology 10.1.1.0 /24 4 ***** Passive ***** via C 4 3 Successor via D Router E EIGRP FD AD Topology 10.1.1.0 /24 -1 ***** ACTIVE ****** via E (Q) Query via C 5 3 Router D R Q = Query R = Reply
  • 38. DUAL Example (1) 10.1.1.0 /24 A C B E D (2) (2) (1) (1) EIGRP FD AD Topology 10.1.1.0 /24 3 ***** Passive ***** via B 3 1 Successor via D via E Router C EIGRP FD AD Topology 10.1.1.0 /24 4 ***** Passive ***** via C 4 3 Successor via D Router E EIGRP FD AD Topology 10.1.1.0 /24 5 ***** Passive ***** via C 5 3 Successor via E 5 4 Successor Router D R Q = Query R = Reply
  • 39. DUAL Example (1) 10.1.1.0 /24 A C B E D (2) (2) (1) (1) EIGRP FD AD Topology 10.1.1.0 /24 3 ***** Passive ***** via B 3 1 Successor via D via E Router C EIGRP FD AD Topology 10.1.1.0 /24 4 ***** Passive ***** via C 4 3 Successor via D Router E EIGRP FD AD Topology 10.1.1.0 /24 5 ***** Passive ***** via C 5 3 Successor via E 5 4 Successor Router D
  • 40.  EIGRP uses a composite metric which can be based on the following metrics: ◦ Bandwidth ◦ Delay ◦ Reliability ◦ Load  Only Bandwidth and Delay are used by default. Note: It is often incorrectly stated that EIGRP can also use the smallest MTU in the path. In actual fact, the MTU is included in the EIGRP routing update, but is not actually used in the metric calculation. EIGRP Metric Calculation
  • 41.  EIGRP uses the slowest bandwidth (BW) in its metric calculation. • Calculated BW = reference BW / slowest BW (kbps)  The value of the bandwidth may or may not reflect the actual physical bandwidth of the interface. • For example, most serial interfaces use the default bandwidth value of 1.544 Mbps but this may not accurately reflect the links actual bandwidth.  Because both EIGRP and OSPF use bandwidth in default metric calculations, a correct value for bandwidth is very important to the accuracy of routing information. ◦ If the actual bandwidth of the link differs from the default bandwidth value, then the bandwidth value should be modified.  To modify the bandwidth value, use the bandwidth interface command. Note: The bandwidth command does NOT change the physical bandwidth of the link. EIGRP Bandwidth
  • 42. EIGRP Delay  Delay is a measure of the time it takes for a packet to traverse a route. • EIGRP uses the cumulative sum of all outgoing interfaces. • Calculated Delay = the sum of outgoing interface delays / 10  The delay (DLY) metric is a static value based on the type of link to which the interface is connected and is expressed in microseconds.
  • 43.  Reliability (not a default EIGRP metric) is a measure of the likelihood that a link will fail. • Measure dynamically & expressed as a fraction of 255. • The higher the fraction the better the reliability  Load (not a default EIGRP metric) reflects how much traffic is using a link • Number is determined dynamically and is expressed as a fraction of 255 • The lower the fraction the less the load on the link  These optional criteria can be used but are not recommended, because they typically result in frequent recalculation of the topology table. Other EIGRP Metrics
  • 44. EIGRP Composite Metric Calculation  The EIGRP composite metric formula consists of values K1 through K5, known as EIGRP metric weights. • By default, only K1 (bandwidth) and K3 (delay) are set to 1. • K2 (load), K4 (reliability), and K5 (MTU) are set to 0.  K values can be changed with the EIGRP router command: Router(config-router)# metric weights tos k1 k2 k3 k4 k5
  • 45.  EIGRP neighbors cannot use mismatched metric values. • All EIGRP neighbors must use the same metrics. • Metrics can be altered using the metric weights command. Mismatched K Values
  • 46. EIGRP Metric Calculation Example Slowest bandwidth: Plus the sum of the delays
  • 47.  Bandwidth = 10,000,000 / 1024 = 9765 * 256 = 2499840 EIGRP Bandwidth Calculation Example
  • 48.  Delay = 20,000 / 10 + (100 / 10) * 256 = 514560 EIGRP Delay Calculation Example
  • 49.  EIGRP Metric = 2499840 + 514560 = 3014400 EIGRP Metric Calculation Example
  • 51.  Prior to deploying an EIGRP routing solution, the following should be considered: • IP addressing plan • Network topology • EIGRP traffic engineering  Once the requirements have been assessed, the implementation plan can be created. Planning to Deploy EIGRP
  • 52.  The information necessary to implement EIGRP routing includes the following: • The IP addresses to be configured on individual router interfaces • The EIGRP AS number, used to enable EIGRP. • A list of routers and interfaces on which EIGRP is to be enabled. • Metrics that need to be applied to specific interfaces, or EIGRP traffic engineering.  In the implementation plan, EIGRP the tasks include the following: • Enabling the EIGRP routing protocol. • Configuring the proper network statements. • Optionally configuring the metric to appropriate interfaces. Implementing EIGRP
  • 53.  After implementing EIGRP, verification should confirm proper deployment on each router.  Verification tasks include verifying: • The EIGRP neighbor relationships. • That the EIGRP topology table is populated with the necessary information. • That IP routing table is populated with the necessary information. • That there is connectivity in the network between routers and to other devices. • That EIGRP behaves as expected in a case of a topology change, by testing link failure and router failure events. Verifying EIGRP
  • 54.  After a successful EIGRP deployment, the solution and verification process and results should be documented for future reference.  Documentation should include: • A topology map • The IP addressing plan • The AS number used • The networks included in EIGRP on each router • Any special metrics configured Documenting
  • 56. Enable EIGRP Routing  Define EIGRP as the IP routing protocol. Router(config)# router eigrp autonomous-system-id  To exchange routing updates, EIGRP routers must have the same autonomous system ID.
  • 57. Identify EIGRP Networks  Define EIGRP networks to advertise to EIGRP neighbors. Router(config-router)# network network [mask]  The network parameter can be a network, a subnet, or the address of a directly connected interface.  The mask is a wildcard mask (inverse mask) used to determine how to interpret the address. • The mask has wildcard bits, where 0 is a match and 1 is “don’t care.” • For example, 0.0.255.255 indicates a match in the first 2 octets.
  • 58.  Most EIGRP references state that the wildcard mask is required.  However, since IOS 12.0(4)T, the mask argument can actually be configured using wild card bits or a regular subnet mask.  For example, either format could be used to configure the 10.10.10.0 network: network 10.10.10.0 0.0.0.3 or network 10.10.10.0 255.255.255.252 Note on EIGRP Masks
  • 59. Define the Interface Bandwidth  Defines the interface’s bandwidth (optional). Router(config-if)# bandwidth kilobits  The kilobits parameter indicates the intended bandwidth in kbps.  For example, to set the bandwidth to 512,000 bps, use the bandwidth 512 command.  The configured bandwidth is used by routing protocols in the metric calculation.  The command does not actually change the speed of the interface.
  • 60. Enable / Disable Automatic Summarization  By default, EIGRP automatically summarizes subnets. Router(config-router)# auto-summary  This makes EIGRP behave like a classful routing protocol and therefore summarizes subnets on the classful boundary.  Automatic summarization can be disabled using the no auto-summary router configuration command.
  • 61. Configuring EIGRP Example: Classful R1(config)# interface Fa0/0 R1(config-if)# ip address 172.16.1.1 255.255.255.0 R1(config-if)# no shut R1(config-if)# interface S0/0/0 R1(config-if)# ip address 192.168.1.101 255.255.255.224 R1(config-if)# bandwidth 64 R1(config-if)# no shut R1(config-if)# exit Classful configuration example: R2(config)# interface Fa0/0 R2(config-if)# ip address 172.16.2.1 255.255.255.0 R2(config-if)# no shut R2(config-if)# interface S0/0/0 R2(config-if)# ip address 192.168.1.102 255.255.255.224 R2(config-if)# bandwidth 64 R2(config-if)# no shut R2(config-if)# interface S0/0/1 R2(config-if)# ip address 192.168.1.1 255.255.255.224 R2(config-if)# bandwidth 64 R2(config-if)# no shut R2(config-if)# exit Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 EIGRP AS 100 Internet 192.168.1.0 /27 S0/0/1 172.17.2.0 /24 S0/0/0 S0/0/0 64 kbps 192.168.1.96 /27 .101 .102 .1 .1.1
  • 62. Configuring EIGRP Example: Classful R1(config)# router eigrp 100 R1(config-router)# network 192.168.1.96 R1(config-router)# network 172.16.1.0 R1(config-router)# Classful configuration example: R2(config)# router eigrp 100 R2(config-router)# network 192.168.1.96 R2(config-router)# network 172.17.2.0 *Jul 26 10:02:25.963: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.101 (Serial0/0/0) is up: new adjacency 172.17.2.0 R2(config-router)# R2# Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 EIGRP AS 100 Internet 192.168.1.0 /27 S0/0/1 172.17.2.0 /24 S0/0/0 S0/0/0 64 kbps 192.168.1.96 /27 .101 .102 .1 .1.1
  • 63. Verifying EIGRP Example R1# show running-config | section router eigrp router eigrp 100 network 172.16.0.0 network 192.168.1.0 auto-summary R1# show ip route <output omitted> Gateway of last resort is not set D 172.17.0.0/16 [90/40514560] via 192.168.1.102, 00:24:02, Serial0/0/0 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks D 172.16.0.0/16 is a summary, 00:25:27, Null0 C 172.16.1.0/24 is directly connected, FastEthernet0/0 192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks C 192.168.1.96/27 is directly connected, Serial0/0/0 D 192.168.1.0/27 [90/41024000] via 192.168.1.102, 00:16:56, Serial0/0/0 D 192.168.1.0/24 is a summary, 00:25:27, Null0 R1# Classful configuration example: Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 EIGRP AS 100 Internet 192.168.1.0 /27 S0/0/1 172.17.2.0 /24 S0/0/0 S0/0/0 64 kbps 192.168.1.96 /27 .101 .102 .1 .1.1
  • 64. Verifying EIGRP Example R2# show running-config | section router eigrp router eigrp 100 network 172.17.0.0 network 192.168.1.0 auto-summary R2# show ip route <output omitted> Gateway of last resort is not set 172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks D 172.17.0.0/16 is a summary, 00:13:10, Null0 C 172.17.2.0/24 is directly connected, FastEthernet0/0 D 172.16.0.0/16 [90/40514560] via 192.168.1.101, 00:13:26, Serial0/0/0 192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks C 192.168.1.96/27 is directly connected, Serial0/0/0 C 192.168.1.0/27 is directly connected, Serial0/0/1 D 192.168.1.0/24 is a summary, 00:13:10, Null0 R2# Classful configuration example: Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 EIGRP AS 100 Internet 192.168.1.0 /27 S0/0/1 172.17.2.0 /24 S0/0/0 S0/0/0 64 kbps 192.168.1.96 /27 .101 .102 .1 .1.1
  • 65. Verifying EIGRP Example R2# show ip protocols Routing Protocol is "eigrp 100" <output omitted> Automatic network summarization is in effect Automatic address summarization: 192.168.1.0/24 for FastEthernet0/0 Summarizing with metric 40512000 172.17.0.0/16 for Serial0/0/0, Serial0/0/1 Summarizing with metric 28160 Maximum path: 4 Routing for Networks: 172.17.0.0 192.168.1.0 Routing Information Sources: <output omitted> R2# Classful configuration example: Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 EIGRP AS 100 Internet 192.168.1.0 /27 S0/0/1 172.17.2.0 /24 S0/0/0 S0/0/0 64 kbps 192.168.1.96 /27 .101 .102 .1 .1.1
  • 66. Configuring EIGRP Example: Classless Classless configuration example: R2(config)# no router eigrp 100 R2(config)# router eigrp 100 R2(config-router)# network 192.168.1.96 0.0.0.31 R2(config-router)# network 172.17.2.0 0.0.0.255 R2(config-router)# end R2# show run | section router eigrp router eigrp 100 network 172.17.2.0 0.0.0.255 network 192.168.1.96 0.0.0.31 auto-summary R2# Fa0/0Fa0/0 172.17.2.0 /24 R1 R2 172.16.1.0 /24 EIGRP AS 100 Internet 192.168.1.0 /27 64 kbps 192.168.1.96 /27 .101 .102 S0/0/1 S0/0/0 S0/0/0 .1 .1.1 R1(config)# no router eigrp 100 R1(config)# router eigrp 100 R1(config-router)# network 192.168.1.96 0.0.0.31 R1(config-router)# network 172.16.1.0 0.0.0.255 R1(config-router)# end R1# show run | section router eigrp router eigrp 100 network 172.16.1.0 0.0.0.255 network 192.168.1.96 0.0.0.31 auto-summary R1#
  • 67. Verifying EIGRP Example R2# show ip protocols Routing Protocol is "eigrp 100" <output omitted> Automatic network summarization is in effect Automatic address summarization: 192.168.1.0/24 for FastEthernet0/0 Summarizing with metric 40512000 172.17.0.0/16 for Serial0/0/0 Summarizing with metric 28160 Maximum path: 4 Routing for Networks: 172.17.2.0/24 192.168.1.96/27 Routing Information Sources: Gateway Distance Last Update (this router) 90 00:00:06 Gateway Distance Last Update 192.168.1.101 90 00:00:26 Distance: internal 90 external 170 Classful configuration example: Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 EIGRP AS 100 Internet 192.168.1.0 /27 S0/0/1 172.17.2.0 /24 S0/0/0 S0/0/0 64 kbps 192.168.1.96 /27 .101 .102 .1 .1.1
  • 68. Verifying EIGRP: show ip protocols R1# show ip protocols Routing Protocol is "eigrp 100" <output omitted> EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 EIGRP maximum hopcount 100 EIGRP maximum metric variance 1 Redistributing: eigrp 100 EIGRP NSF-aware route hold timer is 240s Automatic network summarization is in effect Automatic address summarization: 192.168.1.0/24 for FastEthernet0/0 Summarizing with metric 40512000 172.16.0.0/16 for Serial0/0/0 Summarizing with metric 28160 Maximum path: 4 Routing for Networks: 172.16.1.0/24 192.168.1.96/27 Routing Information Sources: Gateway Distance Last Update (this router) 90 00:08:56 Gateway Distance Last Update 192.168.1.102 90 00:07:59 Distance: internal 90 external 170 Verify routing protocol information on the router.
  • 69. Verifying EIGRP: show ip eigrp neighbors R1# show ip eigrp neighbors IP-EIGRP neighbors for process 100 H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 0 192.168.1.102 Se0/0/0 11 00:09:17 22 2280 0 5 R1# EIGRP uses the Neighbor table to list adjacent routers.
  • 70. Verifying EIGRP: show ip eigrp topology R1# show ip eigrp topology IP-EIGRP Topology Table for AS(100)/ID(192.168.1.101) Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia Status P 192.168.1.96/27, 1 successors, FD is 40512000 via Connected, Serial0/0/0 P 192.168.1.0/24, 1 successors, FD is 40512000 via Summary (40512000/0), Null0 P 172.16.0.0/16, 1 successors, FD is 28160 via Summary (28160/0), Null0 P 172.17.0.0/16, 1 successors, FD is 40514560 via 192.168.1.102 (40514560/28160), Serial0/0/0 P 172.16.1.0/24, 1 successors, FD is 28160 via Connected, FastEthernet0/0 R1# Verify routing protocol information on the router.
  • 71. Verifying EIGRP: show ip route eigrp R1# show ip route eigrp D 172.17.0.0/16 [90/40514560] via 192.168.1.102, 00:10:18, Serial0/0/0 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks D 172.16.0.0/16 is a summary, 00:11:19, Null0 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks D 192.168.1.0/24 is a summary, 00:11:19, Null0 R1# R1# show ip route <output omitted> Gateway of last resort is not set D 172.17.0.0/16 [90/40514560] via 192.168.1.102, 00:10:35, Serial0/0/0 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks D 172.16.0.0/16 is a summary, 00:11:37, Null0 C 172.16.1.0/24 is directly connected, FastEthernet0/0 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.96/27 is directly connected, Serial0/0/0 D 192.168.1.0/24 is a summary, 00:11:37, Null0 R1# Verify that the router recognizes EIGRP routes.
  • 72. Verifying EIGRP: show ip eigrp interfaces R1# show ip eigrp interfaces IP-EIGRP interfaces for process 100 Xmit Queue Mean Pacing Time Multicast Pending Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes Se0/0/0 1 0/0 22 10/380 468 0 Fa0/0 0 0/0 0 0/1 0 0 R1# Verify EIGRP configured interfaces.
  • 73. Verifying EIGRP: show ip eigrp traffic R1# show ip eigrp traffic IP-EIGRP Traffic Statistics for AS 100 Hellos sent/received: 338/166 Updates sent/received: 7/7 Queries sent/received: 0/0 Replies sent/received: 0/0 Acks sent/received: 2/2 SIA-Queries sent/received: 0/0 SIA-Replies sent/received: 0/0 Hello Process ID: 228 PDM Process ID: 226 IP Socket queue: 0/2000/1/0 (current/max/highest/drops) Eigrp input queue: 0/2000/1/0 (current/max/highest/drops) R1# Verify EIGRP traffic information.
  • 74. Verifying EIGRP: debug eigrp packets R2# debug eigrp packets *Jul 26 10:51:24.051: EIGRP: Sending HELLO on Serial0/0/0 *Jul 26 10:51:24.051: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 *Jul 26 10:51:24.111: EIGRP: Sending HELLO on FastEthernet0/0 *Jul 26 10:51:24.111: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 *Jul 26 10:51:26.667: EIGRP: Received HELLO on Serial0/0/0 nbr 192.168.1.101 *Jul 26 10:51:26.667: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/re ly 0/0 *Jul 26 10:51:28.451: EIGRP: Sending HELLO on FastEthernet0/0 *Jul 26 10:51:28.451: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 *Jul 26 10:51:29.027: EIGRP: Sending HELLO on Serial0/0/0 *Jul 26 10:51:29.027: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 *Jul 26 10:51:31.383: EIGRP: Received HELLO on Serial0/0/0 nbr 192.168.1.101 *Jul 26 10:51:31.383: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/re ly 0/0 *Jul 26 10:51:33.339: EIGRP: Sending HELLO on FastEthernet0/0 *Jul 26 10:51:33.339: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 *Jul 26 10:51:33.511: EIGRP: Sending HELLO on Serial0/0/0 *Jul 26 10:51:33.511: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 *Jul 26 10:51:36.347: EIGRP: Received HELLO on Serial0/0/0 nbr 192.168.1.101 *Jul 26 10:51:36.347: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/re ly 0/0 *Jul 26 10:51:37.847: EIGRP: Sending HELLO on Serial0/0/0 *Jul 26 10:51:37.847: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 *Jul 26 10:51:37.899: EIGRP: Sending HELLO on FastEthernet0/0 Traces transmission and receipt of EIGRP packets.
  • 75. EIGRP Passive-Interface  Prevent EIGRP updates out a specified router interface. Router(config-router)# passive-interface type number [default]  Set a particular interface or all router interfaces to passive.  The default option sets all router interfaces to passive.  For EIGRP, the command:  Prevents neighbor relationships from being established.  Routing updates from a neighbor are ignored.  Allows a subnet on a passive interface to be announced in EIGRP
  • 76. Passive-Interface Example R1(config)# router eigrp 100 R1(config-router)# passive-interface fa0/0 R1(config-router)# R2(config)# router eigrp 100 R2(config-router)# passive-interface fa0/0 R2(config-router)# Alternate configuration: R1(config)# router eigrp 100 R1(config-router)# passive-interface default R1(config-router)# no passive-interface S0/0/0 R2(config)# router eigrp 100 R2(config-router)# passive-interface default R2(config-router)# no passive-interface S0/0/0 Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 EIGRP AS 100 Internet 192.168.1.0 /27 172.17.2.0 /24 64 kbps 192.168.1.96 /27 .101 .102 S0/0/1 S0/0/0 S0/0/0 .1 .1.1
  • 77.  To propagate a default route in EIGRP, use either the: ip default-network network-number global configuration command. Or ip route 0.0.0.0 0.0.0.0 next-hop | interface router configuration command.  Once configured, the default route has to be propagated into the EIGRP AS. Propagating a Default Route
  • 78. ip default-network Command  Configures a router to advertise a network as the gateway of last resort. Router(config)# ip default-network network  Other routers use their next-hop address to the advertised network as their default route.  There is no parameter to specify the subnet mask therefore the command can only be used to advertise a classful network.  The specified network must be reachable before it is configured.  If the specified network is reachable through:  EIGRP, then the default route is propagated automatically to other EIGRP routers in the AS.  A static route, then the static route must be redistributed into EIGRP.
  • 79. ip default-network Example R2# show ip route <output omitted> Gateway of last resort is not set 172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks D 172.17.0.0/16 is a summary, 02:27:56, Null0 C 172.17.2.0/24 is directly connected, FastEthernet0/0 D 172.16.0.0/16 [90/40514560] via 192.168.1.101, 02:27:56, Serial0/0/0 192.168.1.0/27 is subnetted, 2 subnets C 192.168.1.96 is directly connected, Serial0/0/0 C 192.168.1.0 is directly connected, Serial0/0/1 R2# R1# show ip route <output omitted> Gateway of last resort is not set <output omitted> Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 64 kbps EIGRP AS 100 Internet 172.31.0.0 /16192.168.1.96 /27 172.17.2.0 /24 .101 .102 S0/0/1 S0/0/0 S0/0/0 .1 .1.1 192.168.1.0 /27 .2
  • 80. ip default-network Example Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 64 kbps EIGRP AS 100 Internet 172.31.0.0 /16192.168.1.96 /27 172.17.2.0 /24 .101 .102 S0/0/1 S0/0/0 S0/0/0 .1 .1.1 192.168.1.0 /27 .2 R2(config)# ip route 172.31.0.0 255.255.0.0 192.168.1.2 R2(config)# do ping 172.31.0.0 <output omitted> Success rate is 100 percent (5/5), round-trip min/avg/max = 28/28/28 ms R2(config)# ip default-network 172.31.0.0 R2(config)# router eigrp 100 R2(config-router)# redistribute static R2(config-router)# end R2#
  • 81. ip default-network Example R2# show ip route <output omitted> Gateway of last resort is 192.168.1.2 to network 172.31.0.0 <output omitted> S* 172.31.0.0/16 [1/0] via 192.168.1.2 192.168.1.0/27 is subnetted, 2 subnets C 192.168.1.96 is directly connected, Serial0/0/0 C 192.168.1.0 is directly connected, Serial0/0/1 R2# Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 64 kbps EIGRP AS 100 Internet 172.31.0.0 /16192.168.1.96 /27 172.17.2.0 /24 .101 .102 S0/0/1 S0/0/0 S0/0/0 .1 .1.1 192.168.1.0 /27 .2 R1# show ip route <output omitted> Gateway of last resort is 192.168.1.102 to network 172.31.0.0 <output omitted. D*EX 172.31.0.0/16 [170/41024000] via 192.168.1.102, 00:00:20, Serial0/0/0 192.168.1.0/27 is subnetted, 1 subnets C 192.168.1.96 is directly connected, Serial0/0/0 R1#
  • 82. ip route 0.0.0.0 0.0.0.0 next-hop | interface Command  Configures a router to advertise a default route as the gateway of last resort. Router(config)# ip route 0.0.0.0 0.0.0.0 interface | next-hop  The choice of parameter affects the next selection of commands.  If the interface parameter is used, then only the network 0.0.0.0 needs to also be entered.  If the next-hop parameter is used, then the network 0.0.0.0 and the redistribute static command must be configured.
  • 83. ip route 0.0.0.0 0.0.0.0 interface Example Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 64 kbps EIGRP AS 100 Internet 172.31.0.0 /16192.168.1.96 /27 172.17.2.0 /24 .101 .102 S0/0/1 S0/0/0 S0/0/0 .1 .1.1 192.168.1.0 /27 .2 R2(config)# ip route 0.0.0.0 0.0.0.0 S0/0/1 R2(config)# router eigrp 100 R2(config-router)# network 0.0.0.0 R2(config-router)# do show ip route <output omitted> Gateway of last resort is 0.0.0.0 to network 0.0.0.0 172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks D 172.17.0.0/16 is a summary, 03:13:25, Null0 C 172.17.2.0/24 is directly connected, FastEthernet0/0 D 172.16.0.0/16 [90/40514560] via 192.168.1.101, 03:13:25, Serial0/0/0 192.168.1.0/27 is subnetted, 2 subnets C 192.168.1.96 is directly connected, Serial0/0/0 C 192.168.1.0 is directly connected, Serial0/0/1 S* 0.0.0.0/0 is directly connected, Serial0/0/1 R2(config-router)#
  • 84. ip route 0.0.0.0 0.0.0.0 next-hop Example Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 64 kbps EIGRP AS 100 Internet 172.31.0.0 /16192.168.1.96 /27 172.17.2.0 /24 .101 .102 S0/0/1 S0/0/0 S0/0/0 .1 .1.1 192.168.1.0 /27 .2 R2(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.2 R2(config)# router eigrp 100 R2(config-router)# network 0.0.0.0 R2(config-router)# redistribute static R2(config-router)# do show ip route <output omitted> Gateway of last resort is 192.168.1.2 to network 0.0.0.0 172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks D 172.17.0.0/16 is a summary, 02:53:48, Null0 C 172.17.2.0/24 is directly connected, FastEthernet0/0 D 172.16.0.0/16 [90/40514560] via 192.168.1.101, 02:53:48, Serial0/0/0 192.168.1.0/27 is subnetted, 2 subnets C 192.168.1.96 is directly connected, Serial0/0/0 C 192.168.1.0 is directly connected, Serial0/0/1 S* 0.0.0.0/0 [1/0] via 192.168.1.2 R2(config-router)#
  • 85.  EIGRP automatically summarizes routes at a major network boundary by default. • Due to the pre-configured auto-summary router configuration command. • In most cases, auto summarization is a good thing as it keeps routing tables as compact as possible. • Sometimes it’s not a good thing such as when there is a discontiguous subnetwork.  Typically for routing to work properly, auto-summarization should be disabled using the no auto-summary router configuration command. EIGRP Route Summarization
  • 86. Summarization in Discontiguous Networks R1 R2 10.10.10.0 /24 EIGRP AS 100 192.168.1.96 /30 10.20.20.0 /24  EIGRP Update: Connected to 10.0.0.0 /8 R1# show running-config | section router eigrp router eigrp 100 passive-interface FastEthernet0/0 network 10.10.10.0 0.0.0.255 network 192.168.1.96 0.0.0.31 auto-summary R1# show ip protocols Routing Protocol is "eigrp 100" <output omitted> Automatic network summarization is in effect Automatic address summarization: 10.0.0.0/8 for Serial0/0/0 Summarizing with metric 28160 Maximum path: 4 Routing for Networks: 10.10.10.0/24 192.168.1.96/27 Passive Interface(s): FastEthernet0/0 <output omitted>
  • 87. Summarization in Discontiguous Networks R2# show ip route <output omitted> Gateway of last resort is 192.168.1.2 to network 0.0.0.0 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 10.20.20.0/24 is directly connected, FastEthernet0/0 D 10.0.0.0/8 is a summary, 00:13:35, Null0 192.168.1.0/27 is subnetted, 2 subnets C 192.168.1.96 is directly connected, Serial0/0/0 C 192.168.1.0 is directly connected, Serial0/0/1 S* 0.0.0.0/0 [1/0] via 192.168.1.2 R2# R1 R2 10.10.10.0 /24 EIGRP AS 100 192.168.1.96 /30 10.20.20.0 /24  EIGRP Update: Connected to 10.0.0.0 /8 R2 ignores the R1 update because it is already connected to the classful 10.0.0.0/8 network.
  • 88.  Notice that the summarized route (10.0.0.0/8) has an entry pointing to null0. • Null0 is automatically added to the table and are called summary routes. • Null 0 is a directly connected, software-only interface. • The use of the null0 interface prevents the router from trying to forward traffic to other routers in search of a more precise, longer match. Null 0 R2# show ip route <output omitted> Gateway of last resort is 192.168.1.2 to network 0.0.0.0 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 10.20.20.0/24 is directly connected, FastEthernet0/0 D 10.0.0.0/8 is a summary, 00:13:35, Null0 192.168.1.0/27 is subnetted, 2 subnets C 192.168.1.96 is directly connected, Serial0/0/0 C 192.168.1.0 is directly connected, Serial0/0/1 S* 0.0.0.0/0 [1/0] via 192.168.1.2 R2#
  • 89. Disabling Automatic Summarization R1 R2 10.10.10.0 /24 EIGRP AS 100 192.168.1.96 /30 10.20.20.0 /24  EIGRP Update: Connected to 10.0.0.0 /8 R1(config)# router eigrp 100 R1(config-router)# no auto-summary R1(config-router)# *Jul 26 22:14:07.183: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.102 (Serial0/0/0) is resync: summary configured R1(config-router)# end R1# show ip protocols Routing Protocol is "eigrp 100“ <output omitted> Automatic network summarization is not in effect Maximum path: 4 Routing for Networks: 10.10.10.0/24 192.168.1.96/27 <output omitted>
  • 90. Disable Automatic Summarization R1 R2 10.10.10.0 /24 EIGRP AS 100 192.168.1.96 /30 10.20.20.0 /24  EIGRP Update: Connected to 10.0.0.0 /8 R2(config)# router eigrp 100 R2(config)# no auto-summary R2(config)# end R2# show ip route <output omitted> Gateway of last resort is 192.168.1.2 to network 0.0.0.0 10.0.0.0/24 is subnetted, 2 subnets C 10.20.20.0 is directly connected, FastEthernet0/0 D 10.10.10.0 [90/40514560] via 192.168.1.101, 00:05:21, Serial0/0/0 192.168.1.0/27 is subnetted, 2 subnets C 192.168.1.96 is directly connected, Serial0/0/0 C 192.168.1.0 is directly connected, Serial0/0/1 S* 0.0.0.0/0 [1/0] via 192.168.1.2 R2#
  • 91.  Earlier distance vector protocols were unable to create summary routes other than the classful boundaries or /8, /16/ or /24.  To address this shortcoming, EIGRP added the ip summary-address eigrp interface configuration command. ◦ The command is used to create one or more summary routes within a network on any bit boundary (as long as a more specific route exists in the routing table).  IP EIGRP summary routes are given an administrative distance value of 5. ◦ Standard EIGRP routes receive an administrative distance of 90 ◦ External EIGRP routes receive an administrative distance of 170. Summarizing on an Interface
  • 92. ip summary-address eigrp  Manually create a summary route at an arbitrary bit boundary. Router(config-if)# ip summary-address eigrp as-number address mask [admin-distance] Parameter Description as-number The number of the EIGRP AS is identified. address The IP address being advertised as the summary address. This address does not need to be aligned on Class A, B, or C boundaries. mask The IP subnet mask used to create the summary address. admin-distance (Optional) Administrative distance. A value from 0 to 255.
  • 93. EIGRP Route Summarization R1(config)# router eigrp 100 R1(config)# no auto-summary R2(config)# router eigrp 100 R2(config)# no auto-summary Fa0/0Fa0/0 R1 R2 10.10.10.0 /24 EIGRP AS 100 WAN 192.168.3.1 S0/0/0 10.10.20.0 /24 10.0.0.0 /8 R3 R3(config)# interface S0/0/0 R3(config-if)# ip address 192.168.3.1 255.255.255.0 R3(config-if)# ip summary-address eigrp 1 10.10.0.0 255.255.0.0 R3(config-if)# no shut R3(config-if)# exit R3# show ip protocols Routing Protocol is "eigrp 100" <output omitted> Automatic network summarization is not in effect Address Summarization: 10.10.0.0/16 for Serial0/0/0 <output omitted>
  • 94.  Routes with a metric equal to the minimum metric are installed in the routing table. • Referred to as “equal-cost load balancing”. • All IP routing protocols on Cisco routers can perform equal-cost load balancing.  The maximum-paths maximum-path command can be used to allow up to 6 equal-cost paths. • Default is 4. • Setting the maximum-path option to 1 disables load balancing. EIGRP Load Balancing
  • 95. EIGRP Equal-Cost Load Balancing R1(config)# router eigrp 100 R1(config-router)# network 172.16.1.0 0.0.0.255 R1(config-router)# network 192.168.1.0 R1(config-router)# network 192.168.2.0 R1(config-router)# network 192.168.3.0 R1(config-router)# network 192.168.4.0 R1(config-router)# maximum–paths 3 R1(config-router)# R1 Topology Table Advertised Distance (AD) Network Neighbor AD FD 172.16.2.0/24 R2 20 40 R3 20 40 R4 20 40 R5 20 40
  • 96.  EIGRP can also balance traffic across multiple routes that have different metrics. • Referred to as unequal-cost load balancing.  The degree to which EIGRP performs load balancing is controlled with the variance multiplier command. • The multiplier is a value, between 1 and 128, used for load balancing. • The default is 1, which means equal-cost load balancing. • Setting a variance value greater than 1 allows EIGRP to install multiple loop-free routes with unequal cost in the routing table. • EIGRP will always install successors (the best routes) in the routing table. • The variance allows feasible successors (and only feasible successor routes) as candidate routes to potentially be installed in the routing table. Unequal Cost Load Balancing
  • 97. EIGRP Unequal-Cost Load Balancing R1(config)# router eigrp 100 R1(config-router)# variance 2 R1(config-router)# R1 Topology Table Advertised Distance (AD) Network Neighbor AD FD 172.16.2.0/24 R2 10 30 R3 10 20 R4 25 45 R5 10 50
  • 99.  Many routing protocols support authentication such that a router authenticates the source of each routing update packet that it receives.  Simple password authentication is supported by: • IS-IS • OSPF • RIPv2  MD5 authentication is supported by: • OSPF • RIPv2 • BGP • EIGRP Router Authentication
  • 100.  Simple password authentication: • Router sends packet and key. • Neighbor checks if received key matches its key. • Is not secure.  MD5 authentication: • Configure a “key” (password) and key-id; router generates a message digest, or hash, of the key, key-id and message. • Message digest is sent with packet; key is not sent. • Is secure. Simple Password vs. MD5 Authentication
  • 101.  EIGRP supports MD5 authentication.  Router generates and checks every EIGRP packet. Router authenticates the source of each routing update packet that it receives.  Configure a “key” (password) and key-id; each participating neighbor must have same key configured. EIGRP MD5 Authentication
  • 102.  EIGRP MD5 authentication: • Router generates a message digest, or hash, of the key, key-id, and message. • EIGRP allows keys to be managed using key chains. • Specify key-id (number, key, and lifetime of key). • First valid activated key, in order of key numbers, is used. MD5 Authentication
  • 103.  The following key parameters must be defined in enough detail before configuring EIGRP authentication: ◦ The EIGRP AS number ◦ The authentication mode (MD5) ◦ The definition of one or more keys to authenticate EIGRP packets, according to the network security plan. ◦ The keys’ lifetime, if multiple keys are defined.  Once defined, the following steps may be implemented: 1. Configure the authentication mode for EIGRP. 2. Configure the key chain. 3. Optionally configure the keys’ lifetime parameters. 4. Enable authentication to use the key(s) in the key chain. Planning for EIGRP
  • 104. Configure the Authentication Mode for EIGRP  Specify MD5 authentication for EIGRP packets. Router(config-if)# ip authentication mode eigrp autonomous-system md5  Enable EIGRP packet authentication using key in the key-chain. Router(config-if)# ip authentication key-chain eigrp autonomous-system name- of-chain
  • 105. Configure the Key Chain  Define the keychain in key chain configuration mode. Router(config)# key chain name-of-chain  Identify the key and enter the key-id configuration mode. Router(config-keychain)# key key-id Router(config-keychain-key)# key-string text  Identify key string (password)
  • 106. Configure Keys Lifetime Parameters (Optional)  Specify when the key will be accepted for received packets. Router(config-keychain-key)# accept-lifetime start-time {infinite | end-time | duration seconds}  Specify when the key can be used for sending EIGRP packets.Router(config-keychain-key)# send-lifetime start-time {infinite | end-time | duration seconds}
  • 107. Enable Authentication to Use the Key Chain  Enable EIGRP packet authentication using key in the key-chain. Router(config-if)# ip authentication key-chain eigrp autonomous-system name-of-chain
  • 108. Configuring EIGRP MD5 Authentication Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 EIGRP AS 100R1# show running-config ! <output omitted> ! key chain R1chain key 1 key-string FIRST-KEY accept-lifetime 04:00:00 Jan 1 2009 infinite send-lifetime 04:00:00 Jan 1 2009 04:00:00 Jan 31 2009 key 2 key-string SECOND-KEY accept-lifetime 04:00:00 Jan 25 2009 infinite send-lifetime 04:00:00 Jan 25 2009 infinite ! <output omitted> ! interface FastEthernet0/0 ip address 172.16.1.1 255.255.255.0 ! interface Serial0/0/0 bandwidth 64 ip address 192.168.1.101 255.255.255.224 ip authentication mode eigrp 100 md5 ip authentication key-chain eigrp 100 R1chain ! router eigrp 100 network 172.16.1.0 0.0.0.255 network 192.168.1.0 auto-summary 172.17.2.0 /24 S0/0/0 S0/0/0 64 kbps 192.168.1.96 /27 .101 .102 .1.1
  • 109. Configuring EIGRP MD5 Authentication Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 EIGRP AS 100 R2# show running-config ! <output omitted> ! key chain R2chain key 1 key-string FIRST-KEY accept-lifetime 04:00:00 Jan 1 2009 infinite send-lifetime 04:00:00 Jan 1 2009 infinite key 2 key-string SECOND-KEY accept-lifetime 04:00:00 Jan 25 2009 infinite send-lifetime 04:00:00 Jan 25 2009 infinite ! <output omitted> ! interface FastEthernet0/0 ip address 172.17.2.2 255.255.255.0 ! interface Serial0/0/0 bandwidth 64 ip address 192.168.1.102 255.255.255.224 ip authentication mode eigrp 100 md5 ip authentication key-chain eigrp 100 R2chain ! router eigrp 100 network 172.17.2.0 0.0.0.255 network 192.168.1.0 auto-summary 172.17.2.0 /24 S0/0/0 S0/0/0 64 kbps 192.168.1.96 /27 .101 .102 .1.1
  • 110. Verifying MD5 Authentication R1# *Apr 21 16:23:30.517: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.102 (Serial0/0/0) is up: new adjacency R1# R1# show ip eigrp neighbors IP-EIGRP neighbors for process 100 H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 0 192.168.1.102 Se0/0/0 12 00:03:10 17 2280 0 14 R1# R1# show ip route <output omitted> Gateway of last resort is not set D 172.17.0.0/16 [90/40514560] via 192.168.1.102, 00:02:22, Serial0/0/0 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks D 172.16.0.0/16 is a summary, 00:31:31, Null0 C 172.16.1.0/24 is directly connected, FastEthernet0/0 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.96/27 is directly connected, Serial0/0/0 D 192.168.1.0/24 is a summary, 00:31:31, Null0 R1# R1# ping 172.17.2.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.17.2.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 12/15/16 ms
  • 111. Verifying MD5 Authentication R1# show key chain Key-chain R1chain: key 1 -- text “FIRST-KEY" accept lifetime (04:00:00 Jan 1 2009) - (always valid) [valid now] send lifetime (04:00:00 Jan 1 2009) - (04:00:00 Jan 31 2009) key 2 -- text “SECOND-KEY" accept lifetime (04:00:00 Jan 25 2009) - (always valid) [valid now] send lifetime (04:00:00 Jan 25 2009) - (always valid) [valid now]
  • 112. Troubleshooting MD5 Authentication R1# debug eigrp packets EIGRP Packets debugging is on (UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUERY, SIAREPLY) *Jan 21 16:38:51.745: EIGRP: received packet with MD5 authentication, key id = 1 *Jan 21 16:38:51.745: EIGRP: Received HELLO on Serial0/0/0 nbr 192.168.1.102 *Jan 21 16:38:51.745: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0 R2# debug eigrp packets EIGRP Packets debugging is on (UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUERY, SIAREPLY) R2# *Jan 21 16:38:38.321: EIGRP: received packet with MD5 authentication, key id = 2 *Jan 21 16:38:38.321: EIGRP: Received HELLO on Serial0/0/0 nbr 192.168.1.101 *Jan 21 16:38:38.321: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0
  • 113. Configuring EIGRP MD5 Authentication Fa0/0Fa0/0 R1 R2 172.16.1.0 /24 EIGRP AS 100 R1(config-if)# key chain R1chain R1(config-keychain)# key 2 R1(config-keychain-key)# key-string wrongkey R1(config-keychain-key)# 172.17.2.0 /24 S0/0/0 S0/0/0 64 kbps 192.168.1.96 /27 .101 .102 .1.1 R2# debug eigrp packets EIGRP Packets debugging is on (UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUERY, SIAREPLY) *Jan 21 16:50:18.749: EIGRP: pkt key id = 2, authentication mismatch *Jan 21 16:50:18.749: EIGRP: Serial0/0/0: ignored packet from 192.168.1.101, opcode = 5 (invalid authentication) *Jan 21 16:50:18.749: EIGRP: Dropping peer, invalid authentication *Jan 21 16:50:18.749: EIGRP: Sending HELLO on Serial0/0/0 *Jan 21 16:50:18.749: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 *Jan 21 16:50:18.753: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.101 (Serial0/0/0) is down: Auth failure R2# R2# show ip eigrp neighbors IP-EIGRP neighbors for process 100 R2#
  • 115.  Quantity of routing information exchanged between peers: without proper route summarization, this can be excessive.  Number of routers that must be involved when a topology change occurs.  Depth of topology: the number of hops that information must travel to reach all routers.  Number of alternate paths through the network. Factors That Influence EIGRP Scalability
  • 116.  Queries are sent when a route is lost and no feasible successor is available.  The lost route is now in “active” state.  Queries are sent to all neighboring routers on all interfaces except the interface to the successor.  If the neighbors do not have their lost-route information, queries are sent to their neighbors.  If a router has an alternate route, it answers the query; this stops the query from spreading in that branch of the network. EIGRP Query Process
  • 117.  In a large internetwork EIGRP queries can generate many resources.  Several solutions exist to optimize the query propagation process and to limit the amount of unnecessary EIGRP load on the links, including: ◦ Summarization ◦ Redistribution ◦ EIGRP stub routing feature. Overwhelming EIGRP Query Process
  • 118.  If a router does not receive a reply to all the outstanding queries within default 3 minutes (180 seconds), the route goes into Stuck-in-Active (SIA) state.  Common SIA reasons: • A router is too busy to answer the query. • A router cannot allocate the memory to process the query. • The circuit between the two routers is not reliable. • The router has unidirectional links.  SIA solutions: • Redesign the network to limit the query range by route summarization and the ip summary-address eigrp command. • Configure the remote routers as stub EIGRP routers. Stuck-in-Active
  • 119. SIA Solution: Summarization  Poorly designed networks can make summarization difficult.  Manually summarize the routes whenever possible to support a hierarchical network design.  The more networks EIGRP summarizes, the lower the number of queries being sent out. • Ultimately reduces the occurrence of SIA errors.
  • 120. SIA Solution: Summarization  This network design is better because subnet addresses from individual major networks are localized within each cloud, allowing summary routes configured using the ip summary- address eigrp command to be injected into the core.  As an added benefit, the summary routes act as a boundary for the queries generated by a topology change.
  • 121.  The EIGRP Stub Routing feature: • Improves network stability • Reduces resource utilization and • Simplifies remote router (spoke) configuration SIA Solution: Stub Networks
  • 122.  Stub routing is commonly used in hub-and-spoke topology.  Stub router sends a special peer information packet to all neighboring routers to report its status as a stub router. • Any neighbor that receives a packet informing it of the stub status does not query the stub router for any routes. • Stub routers are not queried and instead, hub routers connected to the stub router answer the query on behalf of the stub router.  Only the remote routers are configured as stubs. EIGRP Stub Routing
  • 123. EIGRP Stub  Configure a router as a stub router. Router(config-router)# eigrp stub [receive-only | connected | static | summary | redistributed] Parameter Description receive-only Restricts the router from sharing any of its routes with any other router within an EIGRP AS. Keyword cannot be combined with any other keyword. connected Permits the EIGRP stub routing feature to send connected routes. This option is enabled by default and is the most widely practical stub option. static Permits the EIGRP stub routing feature to send static routes. Redistributing static routes with the redistribute static command is still necessary. summary Permits the EIGRP stub routing feature to send automatically summarized and / or manually summarized routes. This option is enabled by default. redistributed Permits the EIGRP stub routing feature to send redistributed routes. Redistributing routes with the redistribute command is still necessary.
  • 124. Example: EIGRP Stub Parameters  If stub connected is configured: • B will advertise 10.1.2.0/24 to A. • B will not advertise 10.1.2.0/23, 10.1.3.0/23, or 10.1.4.0/24.  If stub summary is configured: • B will advertise 10.1.2.0/23 to A. • B will not advertise 10.1.2.0/24, 10.1.3.0/24, or 10.1.4.0/24.
  • 125. Example: EIGRP Stub Parameters (Cont.)  If stub static is configured: • B will advertise 10.1.4.0/24 to A. • B will not advertise 10.1.2.0/24, 10.1.2.0/23, or 10.1.3.0/24.  If stub receive-only is configured: • B won’t advertise anything to A, so A needs to have a static route to the networks behind B to reach them.
  • 127. The chapter focused on the following topics:  Features of EIGRP, including fast convergence, use of partial updates, multiple network layer support, use of multicast and unicast, VLSM support, seamless connectivity across all data link layer protocols and topologies, and sophisticated metric.  EIGRP’s underlying processes and technologies—neighbor discovery/recovery mechanism, RTP, DUAL finite state machine, and protocol-dependent modules.  EIGRP's tables—neighbor table, topology table, and routing table  EIGRP terminology: • Advertised distance (the metric for an EIGRP neighbor router to reach the destination; the metric between the next-hop router and the destination) • Feasible distance (the sum of the AD from the next-hop neighbor, and the cost between the local router and the next-hop router) • Successor (a neighboring router that has a least-cost loop-free path to a destination, the lowest FD) • Feasible successor (a neighboring router that has a loop-free backup path to a destination). • Passive routes, those not undergoing recomputation; active routes, those undergoing recomputation  The five EIGRP packet types: hello, update, query, reply, and acknowledgment. • Updates, queries, and replies are sent reliably. Summary
  • 128. ◦ EIGRP initial route discovery process, started by a router sending hello packets. Neighboring routers reply with update packets, which populate the router's topology table. The router chooses the successor routes and offers them to the routing table. ◦ The DUAL process including selecting FSs. To qualify as an FS, a next-hop router must have an AD less than the FD of the current successor route for the particular network, to ensure a loop- free network. ◦ The EIGRP metric calculation, which defaults to bandwidth (the slowest bandwidth between the source and destination) + delay (the cumulative interface delay along the path). ◦ Planning EIGRP implementations, including:  IP addressing  Network topology  EIGRP traffic engineering. ◦ The list of tasks for each router in the network include:  Enabling the EIGRP routing protocol (with the correct AS number)  Configuring the proper network statements  Optionally configuring the metric to appropriate interfaces. Summary
  • 129. • Basic EIGRP configuration commands. • Commands for verifying EIGRP operation. • Configuring a passive-interface. • Propagating a default route. • EIGRP summarization. • EIGRP over Frame Relay. • EIGRP over MPLS. • EIGRP load-balancing • Configuring, verifying, and troubleshooting EIGRP MD5 authentication. • EIGRP scalability factors, including the amount of information exchanged, the number of routers, the depth of the topology, and the number of alternative paths through the network. • The SIA state and how to limit the query range to help reduce SIAs. • Configuring the remote routers as stub EIGRP routers. • Graceful shutdown, which broadcasts a goodbye message (in a hello packet, with all K values set to 255) when an EIGRP routing process is shut down, to inform neighbors Summary (continued)
  • 131.  OSPF is a standards-based link-state IP routing protocol described in RFC 2328. ◦ It was developed to meet RIP’s inability to scale beyond 15 routers. ◦ Proposed by IETF in 1988 and formalized in 1991. ◦ There are 2 versions; OSPFv2 is for IPv4 and OSPFv3 is for IPv6. Open Shortest Path First (OSPF)
  • 132.  OSPF features include: ◦ Fast convergence ◦ Supports VLSM ◦ Efficient use of bandwidth - Routing changes trigger routing updates (no periodic updates) ◦ Supports large network size ◦ Routing based on best path selection ◦ Grouping of members into Areas OSPF Features
  • 133.  With link-state routing protocols, each router has the full picture of the network topology, and can independently make a decision based on an accurate picture of the network topology.  To do so, each link-state router keeps a record of: ◦ Its immediate neighbor routers. ◦ All the other routers in the network, or in its area of the network, and their attached networks. ◦ The best paths to each destination. Link-State Protocol Characteristics
  • 134.  Respond quickly to network changes.  Send triggered updates when a network change occurs.  Send periodic updates (link-state refresh), at long intervals, such as every 30 minutes. ◦ Uses LSAs to confirm topology information before the information ages out of the link-state database. Link-State Protocol Advantages
  • 135.  OSPF databases / tables: ◦ OSPF adjacency database = Neighbor table ◦ OSPF link-state database = Topology table ◦ OSPF forwarding database = Routing table  Link-state advertisements (LSAs)  Link-State Database (LSDB)  Shortest-Path First (SPF) Routing Algorithm ◦ Dijkstra algorithm  SPF Tree  OSPF Areas ◦ Backbone (transit) and standard areas.  Types of OSPF routers: ◦ Internal router, backbone router, Area Border Router (ABR), Autonomous System Boundary Router (ASBR) ◦ Designated Router (DR) and Backup Designated Router (BDR) OSPF Terminology
  • 136. OSPF Router Tables / Databases  OSPF maintains three databases which are used to create three tables. Database Table Description Adjacency Database Neighbor Table • List of all neighbors routers to which a router has established bidirectional communication. • This table is unique for each router. • Can be viewed using the show ip ospf neighbor command. Link-state Database Topology Table • List of information about all other routers in the network. • The database shows the network topology. • All routers within an area have identical link-state databases. • Can be viewed using the show ip ospf database command. Forwarding Database Routing Table • List of routes generated when an algorithm is run on the link- state database. • Each router’s routing table is unique and contains information on how and where to send packets to other routers. • Can be viewed using the show ip route command.
  • 137. Link-State Advertisements (LSAs)  When a change occurs in the network topology, the router experiencing the change creates a link-state advertisement (LSA) concerning that link. ◦ LSAs are also called link-state protocol data units (PDUs).  The LSA is multicasted to all neighboring devices using either 224.0.0.5 or 224.0.0.6.  Routers receiving the LSA immediately forward it to all neighboring routers.
  • 138. Link-State Database (LSDB)  Routers receiving add the LSA to their link-state database (LSDB).  The LSDB is used to calculate the best paths through the network.  OSPF best route calculation is based on Edsger Dijkstra's shortest path first (SPF) algorithm.
  • 139. SPF Routing Algorithm  The SPF algorithm accumulates costs along each path, from source to destination. ◦ The accumulated costs is then used by the router to build a topology table.
  • 140. SPF Tree and Routing Table  The topology table is essentially an SPF tree which contains a listing of all OSPF networks and the costs to reach them.  The resulting best routes are then considered to be added to the routing table.
  • 141.  To minimize processing and memory requirements, OSPF can divide the routing topology into a two-layer hierarchy called areas.  Characteristics of OSPF areas include: ◦ Minimizes routing table entries. ◦ Localizes impact of a topology change within an area. ◦ Detailed LSA flooding stops at the area boundary. ◦ Requires a hierarchical network design. OSPF Areas
  • 142. OSPF Two-Layer Hierarchy  Backbone Area ◦ Referred to as Area 0 ◦ Also known as the Transit Area.  Regular (Standard) Areas ◦ Also known as a nonbackbone areas. ◦ All regular areas must connect to the backbone area. ◦ Standard areas can be further defined as stub areas, totally stubby areas, and Not-so-stubby areas (NSSAs).  The optimal number of routers per area varies based on factors such as network stability, but Cisco recommends: • An area should have no more than 50 routers. • A router should not be in more than 3 areas.
  • 143.  How OSPF routers exchange information is based on: ◦ The function of the router. ◦ The type of LSAs it can forward. ◦ The type of area it resides in.  OSPF routers may function as either: ◦ Internal router ◦ Backbone router ◦ Area Border Router (ABR) ◦ Autonomous System Boundary Router (ASBR)  Note: ◦ A router can exist as more than one router type. OSPF Router Types
  • 144. OSPF Router Types Internal Router Internal Routers Internal Router All Backbone Routers ABR and Backbone Router ABR and Backbone Router ASBR and Backbone Router
  • 145.  Routers that have all their interfaces within the same area.  Internal routers in the same area: ◦ Have identical LSDBs. ◦ Run a single copy of the routing algorithm. Internal Router
  • 146.  OSPF design rules require that all areas be connected to a single backbone area (Area 0). ◦ Area 0 is also known as Area 0.0.0.0  An Area 0 router is referred to as a backbone router. ◦ Depending on where it resides in Area 0, it may also be called an Internal router, an ABR, or an ASBR. Backbone Router
  • 147.  Routers with interfaces attached to multiple areas and responsible for: ◦ Joining areas together. ◦ Maintaining separate link-state databases for each area. ◦ Routing traffic destined to/arriving from other areas. ◦ Summarizing information about each area connected and flooding the information through area 0 to the other areas connected. ◦ An area can have one or more ABR.  ABR cannot send LSU’s to other areas until the entire intra-area is synchronized. Area Border Router (ABR)
  • 148.  Routers that have at least one interface connected to another AS, such as a non-OSPF network.  Routers support redistribution. ◦ They can import non-OSPF network information to the OSPF network.  Should reside in the backbone area. Autonomous System Boundary Router (ASBR)
  • 149. OSPF Router Types  Routers A, B, C, D and E are backbone routers. • Backbone routers make up Area 0.  Routers C, D and E are area border routers (ABRs). • ABRs attach all other areas to Area 0.  Routers A, B, F, G, and H are internal routers. • Internal routers are completely within an area and do not interconnect to any other area or autonomous system (AS).
  • 150.  To reduce the amount of OSPF traffic on multiaccess broadcast networks such as Ethernet, OSPF elects: ◦ A Designated Router (DR) ◦ A Backup Designated Router (BDR)  The DR is responsible for updating all other OSPF routers (called DROTHERs) when a change occurs in the multiaccess network. ◦ The BDR monitors the DR and takes over should the DR fail.  A router connected to multiple broadcast networks can be a DR on one segment and a regular (DROTHER) router on another segment. DR and BDR Routers
  • 151. OSPF Metric Calculation  The OSPF metric calculation is based on cost.  Cost is an indication of the overhead required to send packets across a certain interface.  The cost of an interface is inversely proportional to the bandwidth of that interface. ◦ A higher bandwidth is attributed a lower cost. ◦ A lower bandwidth is attributed a higher cost. Bandwidth High Low Lower Cost Higher Cost
  • 152. OSPF Cost Formula  Cost = 100,000,000 / Bandwidth (bps)  For example: • 10BaseT = 100,000,000 / 10,000,000 = 10 • T1 = 100,000,000 / 1,544,000 = 64
  • 154.  OSPF packets are used to perform several functions, including: ◦ Neighbor discovery, to form adjacencies. ◦ Flooding link-state information, to facilitate LSDBs being built in each router. ◦ Running SPF to calculate the shortest path to all known destinations. ◦ Populating the routing table with the best routes to all known destinations. OSPF Packet
  • 155. OSPF Packet Frame Header Frame Payload CRC IP Header Protocol Number (OSPF = 89) OSPF Header OSPF Message On a LAN, the OSPF packet is encapsulated in an Ethernet frame with a destination multicast MAC address of either: • 01-00-5E-00-00-05 • 01-00-5E-00-00-06 The destination multicast IP address is set to either: • 224.0.0.5 (All OSPF routers listen to this address.) • 224.0.0.6 (All DR and BDR routers listen to this address. The OSPF protocol field is 89. The OSPF header identifies the type of OSPF packet, the router ID and the area number. The OSPF message contains the packet type specific message information.
  • 158. OSPF Packet Types  Five packet types make OSPF capable of sophisticated and complex communications. Type Packet Name Description 1 Hello Discovers neighbors and builds adjacencies between them. 2 DBD Database description Checks for database synchronization between routers. 3 LSR Link-state request Requests specific link-state records from another router. 4 LSU Link-state update Sends specifically requested link-state records. 5 LSAck Link-State Acknowledgment Acknowledges the other packet types.
  • 159. OSPF Message Frame Header Frame Payload CRC IP Header Protocol Number (OSPF = 89) OSPF Header OSPF MessageOSPF Message The OSPF message contains different information, depending on the packet type: Packet Type Contains Type 1 - Hello Contains a list of known neighbors. Type 2 - DBD Contains a summary of the LSDB, which includes all known router IDs and their last sequence number, among a number of other fields. Type 3 - LSR Contains the type of LSU needed and the router ID of the router that has the needed LSU. Type 4 - LSU Contains the full LSA entries. Multiple LSA entries can fit in one OSPF update packet. Type 5 - LSAck Data field is empty.
  • 160.  Hello packets are used to: ◦ Discover directly connected OSPF neighbors. ◦ Establish and maintain neighbor adjacencies with these directly connected neighbors. ◦ Advertise parameters on which two routers must agree to become neighbors. ◦ Elect the Designated Router (DR) and Backup Designated Router (BDR) on multi-access networks like Ethernet and Frame Relay. Type 1 - OSPF Hello Packet
  • 161. Type 1 - OSPF Hello Packet
  • 162.  Hello packet fields must match on neighboring routers for them to establish an adjacency: ◦ Hello interval ◦ Dead interval ◦ Network type. ◦ Area id ◦ Authentication password ◦ Stub area flag  Two routers on the same network segment may not form an OSPF adjacency if: ◦ They are not in the same area ◦ The subnet masks do not match, causing the routers to be on separate networks. ◦ The OSPF Hello or Dead Timers do not match. ◦ The OSPF network types do not match. ◦ The OSPF network command is missing or incorrect. Type 1 - OSPF Hello Packet
  • 163.  By default, OSPF Hello packets are transmitted to 224.0.0.5 (all OSPF routers) every: ◦ 10 seconds (Default on multiaccess and point-to-point networks). ◦ 30 seconds (Default on NBMA networks – Frame Relay).  The Dead interval is the period, expressed in seconds, that the router will wait to receive a Hello packet before declaring the neighbor "down." ◦ If the Dead interval expires before the routers receive a Hello packet, OSPF will remove that neighbor from its link-state database. ◦ The router floods the link-state information about the "down" neighbor out all OSPF enabled interfaces.  Cisco uses a default of 4 times the Hello interval. ◦ 40 seconds (Default on multiaccess and point-to-point networks). ◦ 120 seconds (Default on NBMA networks – Frame Relay). Type 1 - OSPF Hello Packet
  • 164.  The Database Description (DBD) packets contain an abbreviated list of the sending router's link- state database and is used by receiving routers to check against the local link-state database.  The link-state database must be identical on all link-state routers within an area to construct an accurate SPF tree. Type 2 - OSPF DBD Packet
  • 165.  The Link State Request (LSR) packet is used by the receiving routers to request more information about any entry in the DBD. Type 3 - OSPF LSR Packet
  • 166.  The Link-State Update (LSU) packets are used for OSPF routing updates. ◦ They reply to LSRs as well as to announce new information.  LSUs contain seven different types of Link-State Advertisements (LSAs).  LSUs contains the full LSA entries. ◦ Multiple LSA entries can fit in one OSPF update packet. Type 4 - OSPF LSU Packet
  • 167.  LSAck - Link-State Acknowledgement Packet: ◦ When an LSU is received, the router sends a LSAck to confirm receipt of the LSU. ◦ The LSAck data field is empty. Type 5 - OSPF LSAck Packet
  • 168.  When an OSPF router is initially connected to a network it attempts to create adjacencies with neighbors.  To do so, it progresses through these various states using the 5 OSPF packet types. OSPF States Down State Init State Two-Way State ExStart State Exchange State Loading State Full State No Hello packets received = Down Send Hello Packets Transit to Init state Neighbor Discovery – Hello Protocol Hello packets received from the neighbor and it contains the initial router’s router ID. Transit to two-way state (Optional) DR and BDR election Transit to ExStart state Database Synchronization Negotiate master / slave relationship and DBD packet sequence number DBD exchanged as LSAs are requested and sent Transit to either Loading or Full state after completing the database description Newly learned routes are asked for and current database is being processed Route Calculations Router is synchronized with the neighbor and route calculations using the SPF algorithm begins More LSAs required Yes No
  • 169. Neighbor Discovery – Hello Protocol R1 R2 172.16.5.0 /24 Fa0/0 .1 .2 Fa0/1 Down State Init State  Hello! I’m router ID 172.16.5.1. Is there anyone else on this link? Hello Hello! I’m router ID 172.16.5.2 and I see 172.16.5.1. Hello R2 neighbor list: 172.16.5.1, int Fa0/1 Unicast to R1 R1 neighbor list: 172.16.5.2, int Fa0/0 Two-Way State Attempt State
  • 170. Database Synchronization & Route Calc R1 R2 172.16.5.0 /24 Fa0/0 .1 .2 Fa0/1 ExStart State  I will start the exchange because I have router ID 172.16.5.1. Hello No, I will start the exchange because I have a higher router ID. Hello Here is a summary of my link-state database. DBD  Here is a summary of my link-state database. DBD Exchange State  Thanks for the information! LSAck LSAck Loading State  I need more information on the 172.16.6.0 network. LSR Here is the entry for 172.16.6.0/24. LSU  Thanks for the information! LSAck Full State
  • 171.  Once neighbors adjacencies have been established, the Hello packet continues to be transmitted every 10 seconds (default) between neighbors. ◦ As long as the other routers keep receiving the Hello packets, the transmitting router and its networks reside in the topology database.  After the topological databases are synchronized, updates (LSUs) are sent only to neighbors when: ◦ A change is perceived (Incremental updates) ◦ Every 30 minutes (Condensed version is forwarded). Adjacent OSPF Neighbors
  • 172.  Each LSA entry has its own aging timer, which the link-state age field carries.  The default aging timer value for OSPF is 30 minutes (1800 seconds).  After an LSA entry ages, the router that originated the entry sends the LSA, with a higher sequence number, in a link-state update (LSU), to verify that the link is still active. ◦ The LSU can contain one or more LSAs. ◦ This LSA validation method saves on bandwidth compared to distance-vector routers, which send their entire routing table at short, periodic intervals. Link-State Data Structures
  • 174. OSPF Administrative Distance Route Source Administrative Distance Connected 0 Static 1 EIGRP Summary 5 External BGP 20 Internal EIGRP 90 IGRP 100 OSPF 110 IS IS 115 RIP 120 External EIGRP 170 Internal BGP 200
  • 176.  Prior to deploying an OSPF routing solution, the following should be considered: ◦ IP addressing plan ◦ Network topology ◦ OSPF areas  Once the requirements have been assessed, the implementation plan can be created. Planning to Deploy OSPF
  • 177.  The information necessary to implement OSPF routing includes the following: ◦ The IP addresses to be configured on individual router interfaces. ◦ A list of routers on which OSPF is to be enabled, along with the OSPF process number to use and the connected networks that are to run OSPF and that need to be advertised (per individual router). ◦ The area in which each interface is to be configured. ◦ Metrics that need to be applied to specific interfaces, or OSPF traffic engineering.  In the implementation plan, OSPF tasks include the following: ◦ Enabling the OSPF routing protocol, directly on an interface or by using the correct network command under the OSPF routing process configuration mode. ◦ Assigning the correct area id to the interface, via the OSPF configuration on the interface or under the OSPF routing process configuration mode. ◦ Optionally configuring the metric to appropriate interfaces. Implementing OSPF
  • 178.  After implementing OSPF, verification should confirm proper deployment on each router.  Verification tasks include verifying: ◦ Verifying that the appropriate OSPF neighbor relationships and adjacencies are established ◦ Verifying that the OSPF LSDB is populated with the necessary information. ◦ Verifying that IP routing table is populated with the necessary information. ◦ Verifying that there is connectivity in the network between routers and to other devices. ◦ Verifying that OSPF behaves as expected in a case of a topology change, by testing link failure and router failure events. Verifying OSPF
  • 179.  After a successful OSPF deployment, the solution and verification process and results should be documented for future reference.  Documentation should include: ◦ A topology map ◦ The IP addressing plan ◦ The area hierarchy ◦ The networks and interfaces included in OSPF on each router ◦ The default and any special metrics configured ◦ The verification results. Documenting
  • 181. Enable OSPF Routing  Define OSPF as the IP routing protocol. Router(config)# router ospf process-id  The process-id is an internally used number that identifies the OSPF routing process.  The process-id does not need to match process IDs on other routers  It can be any positive integer in the range from 1 to 65535.
  • 182. Identify OSPF Networks  Define OSPF networks to advertise to OSPF neighbors. Router(config-router)# network ip-address [wildcard-mask] area area-id  The ip-address parameter can be a network, a subnet, or the address of a directly connected interface.  The wildcard-mask is an inverse mask used to determine how to interpret the address. • The mask has wildcard bits, where 0 is a match and 1 is “don’t care.” • For example, 0.0.255.255 indicates a match in the first 2 octets. • The area-id parameter specifies the OSPF area to be associated with the address.
  • 183.  Recall that a wildcard mask is the inverse of a subnet mask.  An easy way to calculate the inverse of the subnet mask, is to subtract the subnet mask from 255.255.255.255.  For example, the inverse of subnet mask 255.255.255.252 is 0.0.0.3. The Wildcard Mask 255.255.255.255 – 255.255.255.252 0. 0. 0. 3
  • 184. Identify OSPF Networks  Optional method to enable OSPF explicitly on an interface. Router(config-if)# ip ospf process-id area area-id  The process-id parameter can be a network, a subnet, or the address of a directly connected interface. • The area-id parameter specifies the OSPF area to be associated with the address. • Because this command is configured explicitly for the interface, it takes precedence over the network area command.
  • 185. Define the Interface Bandwidth  Defines the interface’s bandwidth (optional). Router(config-if)# bandwidth kilobits  The kilobits parameter indicates the intended bandwidth in kbps.  For example, to set the bandwidth to 512,000 bps, use the bandwidth 512 command.  The configured bandwidth is used by routing protocols in the metric calculation.  The command does not actually change the speed of the interface.
  • 186. Configuring Single-Area OSPF Example R2 R3 OSPF Area 0 S0/0/1 S0/0/1 64 kbps 10.2.1.0 /24 .2 .1 R1 Fa0/0 .1 Fa0/0 .2 10.64.0.0 /24 R2(config)# interface Fa0/0 R2(config-if)# ip address 10.64.0.2 255.255.255.0 R2(config-if)# no shut R2(config-if)# interface S0/0/1 R2(config-if)# ip address 10.2.1.2 255.255.255.0 R2(config-if)# bandwidth 64 R2(config-if)# no shut R2(config-if)# exit R2(config)# R1(config)# interface Fa0/0 R1(config-if)# ip address 10.64.0.1 255.255.255.0 R1(config-if)# no shut R1(config-if)# exit R1(config)# R3(config)# interface S0/0/1 R3(config-if)# ip address 10.2.1.1 255.255.255.0 R3(config-if)# bandwidth 64 R3(config-if)# no shut R3(config-if)# exit R3(config)#
  • 187. Configuring Single-Area OSPF Example R2 R3 OSPF Area 0 S0/0/1 S0/0/1 64 kbps 10.2.1.0 /24 .2 .1 R1 Fa0/0 .1 Fa0/0 .2 10.64.0.0 /24 R1(config)# router ospf 1 R1(config-router)# network 10.0.0.0 0.255.255.255 area 0 R1(config-router)# R2(config)# router ospf 50 R2(config-router)# network 10.2.1.2 0.0.0.0 area 0 R2(config-router)# network 10.64.0.2 0.0.0.0 area 0 R2(config-router)# R3(config)# router ospf 100 R3(config-router)# network 10.2.1.1 0.0.0.0 area 0 R3(config-router)#
  • 188. Configuring Multi-Area OSPF Example R2 R3 OSPF Area 0 S0/0/1 S0/0/1 64 kbps 10.2.1.0 /24 .2 .1 R1 Fa0/0 .1 Fa0/0 .2 10.64.0.0 /24 OSPF Area 1 R1(config)# router ospf 1 R1(config-router)# network 10.0.0.0 0.255.255.255 area 0 R1(config-router)# R2(config)# router ospf 50 R2(config-router)# network 10.2.1.2 0.0.0.0 area 1 R2(config-router)# network 10.64.0.2 0.0.0.0 area 0 R2(config-router)# R3(config)# router ospf 100 R3(config-router)# network 10.2.1.1 0.0.0.0 area 1 R3(config-router)#
  • 189. Alternate Multi-Area OSPF Configuration R2 R3 OSPF Area 0 S0/0/1 S0/0/1 64 kbps 10.2.1.0 /24 .2 .1 R1 Fa0/0 .1 Fa0/0 .2 10.64.0.0 /24 OSPF Area 1 R1(config)# router ospf 1 R1(config-router)# network 10.0.0.0 0.255.255.255 area 0 R1(config-router)# R2(config)# interface S0/0/1 R2(config-if)# ip ospf 50 area 1 R2(config-if)# exit R2(config)# R2(config)# router ospf 50 R2(config-router)# network 10.64.0.2 0.0.0.0 area 0 R2(config-router)# R3(config)# router ospf 100 R3(config-router)# network 10.2.1.1 0.0.0.0 area 1 R3(config-router)#
  • 190.  A router is known to OSPF by the OSPF router ID number. ◦ LSDBs use the OSPF router ID to differentiate one router from the next.  By default, the router ID is the highest IP address on an active interface at the moment of OSPF process startup. ◦ However, for stability reason, it is recommended that the router-id command or a loopback interface be configured. OSPF Router ID
  • 191. OSPF Router ID Router ID explicitly configured? Use that as the Router-ID Yes No Loopback interface configured? Yes No Use the highest active configured IP address Use the highest configured loopback IP address
  • 192. Define the Router ID  Assign a specific router ID to the router. Router(config-router)# router-id ip-address  Any unique arbitrary 32-bit value in an IP address format (dotted decimal) can be used.  If this command is used on an OSPF process that is already active, then the new router ID takes effect:  After the next router reload.  After a manual restarting of the OSPF process using the clear ip ospf process privileged EXEC command.
  • 193. Verifying the Router-ID R2 R3 OSPF Area 0 S0/0/1 S0/0/1 64 kbps 10.2.1.0 /24 .2 .1 R1 Fa0/0 .1 Fa0/0 .2 10.64.0.0 /24 OSPF Area 1 R2# show ip ospf Routing Process “ospf 50” with ID 10.64.0.2 <output omitted>
  • 194. Command Description show ip protocols Displays OSPF process ID, router ID, networks router is advertising & administrative distance show ip ospf neighbors Displays OSPF neighbor relationships. show ip route Displays the routing table. show ip ospf interface Displays hello interval and dead interval show ip ospf Displays OSPF process ID, router ID, OSPF area information & the last time SPF algorithm calculated Verifying OSPF
  • 195. Verifying OSPF: show ip protocols R1# show ip protocols Routing Protocol is “ospf 1” Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Router ID 10.64.0.1 Number of areas in this router is 1. 1 normal 0 stub 0 nssa Maximum path: 4 Routing for Networks: 10.0.0.0 0.255.255.255 area 0 Reference bandwidth unit is 100 mbps <output omitted> Verify routing protocol information on the router.
  • 196. Verifying OSPF: show ip ospf neighbors R2# show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 10.64.0.1 1 FULL/DROTHER 00:00:30 10.64.0.1 FastEthernet0/0 10.2.1.1 1 FULL/ - 00:00:34 10.2.1.1 Serial0/0/1 Display OSPF neighbors. Lists the neighbors in the order they were learned. The OSPF priority of the interface. The OSPF state of the interface. FULL state means that the router and its neighbor have identical OSPF link-state databases. The amount of time remaining that the router will wait to receive an OSPF Hello packet from the neighbor before declaring the neighbor down. The IP address of the neighbor's interface to which this router is directly connected. The interface on which this router has formed adjacency with the neighbor.
  • 197. Verifying OSPF: show ip route ospf R1# show ip route ospf 10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks O IA 10.2.1.0/24 [110/782] via 10.64.0.2, 00:03:05, FastEthernet0/0 R1# Verify that the router recognizes OSPF routes.
  • 198.  To clear all routes from the IP routing table, use: Router# clear ip route *  To clear a specific route from the IP routing table, use: Router# clear ip route A.B.C.D Clearing the OSPF Routing Table
  • 199. Verifying OSPF: show ip ospf interface R1# show ip ospf interface fastEthernet 0/0 FastEthernet0/0 is up, line protocol is up Internet Address 10.64.0.1/24, Area 0 Process ID 1, Router ID 10.64.0.1, Network Type BROADCAST, Cost: 1 Transmit Delay is 1 sec, State DROTHER, Priority 0 Designated Router (ID) 10.64.0.2, Interface address 10.64.0.2 No backup designated router on this network Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:04 Supports Link-local Signaling (LLS) Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 4 Last flood scan time is 0 msec, maximum is 4 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 10.64.0.2 (Designated Router) Suppress hello for 0 neighbor(s) Verify OSPF configured interfaces.
  • 200. Verifying OSPF: show ip ospf R2# show ip ospf Routing Process “ospf 50” with ID 10.64.0.2 <output omitted> Area BACKBONE(0) Area has no authentication SPF algorithm last executed 00:01:25.028 ago SPF algorithm executed 7 times <output omitted> Area 1 Number of interfaces in this area is 1 Area has no authentication SPF algorithm last executed 00:00:54.636 ago SPF algorithm executed 3 times <output omitted> R2# Verify general OSPF information.
  • 202.  OSPF defines three types of network: OSPF Network Types Network Type Description Example Broadcast • A multiaccess broadcast network. • DR / BDR required. All Ethernet networks Point-to-point • A network that joins a single pair of routers. • No DR / BDR required. Serial link using PPP / HDLC Nonbroadcast multiaccess (NBMA) • A network that interconnects more than two routers but that has no broadcast capability. • DR / BDR may or may not be required. • There are five modes of OSPF operation available for NBMA networks: • RFC-compliant modes: • non-broadcast • point-to-multipoint • Cisco proprietary modes: • broadcast • point-to-multipoint non-broadcast • point-to-point • The choice of mode depends on the topology of the NBMA network. Frame Relay ATM X.25
  • 203. Broadcast  DR /BDR election required since there could be many devices. • Establishing adjacencies with all routers in a broadcast network would easily overload a router due to the overhead of maintaining those adjacencies. • Instead, OSPF routers form full adjacencies with the DR and BDR only.  Packets to all OSPF routers are forwarded to 224.0.0.5.  Packets to the DR / BDR are forwarded to 224.0.0.6.
  • 204. Broadcast Challenge: Multiple Adjacencies  A challenge of broadcast network is the number of adjacencies that would be required. • One adjacency for every pair of routers. • This would increase network traffic and load on each router to manage each individual adjacency.
  • 205. Broadcast Challenge: Extensive LSAs  Another challenge is the increase in network LSAs. • Every LSA sent out also requires an acknowledgement.  Consequence: • Lots of bandwidth consumed • Chaotic traffic
  • 206. Solution: Designated Router  A designated router (DR) and backup designated router (BDR) solve these challenges because they: • Reduce routing update traffic • Manage link-state synchronization
  • 207.  The DR is elected and becomes responsible for maintaining the topology table for the segment.  This DR has two main functions: ◦ To become adjacent to all other routers on the network segment. ◦ To act as a spokesperson for the network.  As spokesperson the DR becomes the focal point for collecting and sending routing information (LSAs). Designated Router (DR)
  • 208.  For fault tolerance, a second router is elected as the BDR. ◦ The BDR must also become adjacent to all routers on the network and must serve as a second focal point for LSAs. ◦ However, the BDR is not responsible for updating the other routers or sending network LSAs.  The BDR keeps a timer on the DR's update activity to ensure that it is operational. ◦ If the BDR does not detect activity from the DR after the timer expires, the BDR immediately becomes the DR and a new BDR is elected. Backup Designated Router (BDR)
  • 209.  DRs and BDRs are elected on a per-network basis and therefore each network segment has its own DR and BDR. ◦ For example, a router connected to multiple multiaccess broadcast networks can be a DR on one segment and a regular (DROTHER) router on another segment.  The election process is accomplished dynamically using the Hello protocol. ◦ However, the election can be manually manipulated the ip ospf priority number interface configuration command.  After a DR and BDR have been selected, any router added to the broadcast network establishes full adjacencies with the DR and BDR only. DR/BDR
  • 210. Assigning Router Priority  Assign a specific OSPF priority to the router. Router(config-if)# ip ospf priority number  A router interface can have a priority number between 0 - 255:  0 = DROTHER - Router cannot be a DR  1 = Favorable - Default for all routers  255 = Very favorable- Ensures at least of a tie.  The priority must be configured before the election takes place to figure into the election.  To display an interface's priority value and other key information use the show ip ospf interface command.
  • 211. 1. All neighbors with a priority > 0 are listed. 2. The router with highest priority is elected BDR. If there is a tie, the highest router IDs are used. 3. If there is no DR, the BDR is promoted as DR. 4. The neighbor with the next highest priority is elected BDR. The Election of the DR
  • 212.  The DR / BDR maintain these roles until they fail even when more routers with higher priorities show up on the network.  To influence the election of DR & BDR, do one of the following: ◦ Boot up the DR first, followed by the BDR, and then boot all other routers. OR ◦ Shut down the interface on all routers, followed by a no shutdown on the DR, then the BDR, and then all other routers. Manipulating the Election Process
  • 213. Point-to-Point  Both routers become fully adjacent to each another.  Usually a serial interface running either PPP or HDLC. • May also be a point-to-point subinterface running Frame Relay or ATM.  No DR /BDR election required since there are only two devices.  OSPF autodetects this type of network.  Packets are sent to 224.0.0.5.