SlideShare ist ein Scribd-Unternehmen logo
1 von 45
Downloaden Sie, um offline zu lesen
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 1Version 4.0
OSPF
Routing Protocols and Concepts
Ed Scrimaglia - CCIE
2© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Objectives
 Describe the background and basic features of OSPF.
 Identify and apply the basic OSPF configuration
commands.
 Describe, modify and calculate the metric used by
OSPF.
 Describe the Designated Router/Backup Designated
Router (DR/BDR) election process in multiaccess
networks.
 Describe the uses of additional configuration
commands in OSPF.
3© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction
4© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
 Background of OSPF
– Began in 1987
– 1989 OSPFv1 released in RFC 1131
– This version was experimental & never deployed
– 1991 OSPFv2 released in RFC 1247
– 1998 OSPFv2 updated in RFC 2328
– 1999 OSPFv3 published in RFC 2740
5© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
 OSPF Message
Encapsulation
– OSPF packet type
• There exist 5 types
– OSPF packet header
• Contains - Router ID
and area ID and
Type code for OSPF
packet type
– IP packet header
• Contains - Source
IP address,
Destination IP
address, & Protocol
field set to 89
6© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
 OSPF Message Encapsulation
– Data link frame header
– Contains - Source MAC address and Destination
MAC address
7© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
 OSPF Packet Types
8© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
 Hello Protocol
 OSPF Hello Packet
– Purpose of Hello
Packet
• Discover OSPF
neighbors &
establish
adjacencies
• Advertise guidelines
on which routers
must agree to
become neighbors
• Used by
multi-access
networks to elect a
designated router
and a backup
designated router
9© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
 Hello Packets continued
– Contents of a Hello Packet
router ID of transmitting
router
 OSPF Hello Intervals
– Usually multicast
(224.0.0.5)
– Sent every 30 seconds for
NBMA segments
 OSPF Dead Intervals
– This is the time that must
transpire before the
neighbor is considered
down
– Default time is 4 times the
hello interval
10© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
 Hello protocol packets contain information that is used
in electing
– Designated Router (DR)
• DR is responsible for updating all other OSPF routers
– Backup Designated Router (BDR)
• This router takes over DR’s responsibilities if DR fails
11© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
 OSPF Link-state
Updates
– Purpose of a Link
State Update
(LSU)
• Used to deliver
link state
advertisements
– Purpose of a Link
State
Advertisement
(LSA)
• Contains
information about
neighbors & path
costs
12© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
 OSPF Algorithm
 OSPF routers build &
maintain link-state
database containing
LSA received from other
routers
– Information found in
database is utilized upon
execution of Dijkstra
SPF algorithm
– SPF algorithm used to
create SPF tree
– SPF tree used to
populate routing table
13© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
 Administrative Distance
– Default Administrative Distance for OSPF is 110
14© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
 OSPF Authentication
– Purpose is to encrypt & authenticate routing information
– This is an interface specific configuration
– Routers will only accept routing information from other
routers that have been configured with the same
password or authentication information
15© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
 Lab Topology
 Topology used for this chapter
– Discontiguous IP addressing scheme
– Since OSPF is a classless routing protocol the subnet mask is
configured in
16© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
 The router ospf command
 To enable OSPF on a router use the following
command
– R1(config)#router ospf process-id
– Process id
• A locally significant number between 1 and 65535
• This means it does not have to match other OSPF routers
17© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
 OSPF network command
– Requires entering:
• network address
• wildcard mask - the inverse of the subnet mask
• area-id - area-id refers to the OSPF area – OSPF area is
a group of routers that share link state information
– Example: Router(config-router)#network network-address
wildcard-ask area area-id
18© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
 Router ID
– This is an IP address used to identify a router
– 3 criteria for deriving the router ID
• Use IP address configured with OSPF router-id command
– Takes precedence over loopback and physical
interface addresses
• If router-id command not used then router chooses highest
IP address of any loopback interfaces
• If no loopback interfaces are configured then the highest
IP address on any active interface is used
19© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
 OSPF Router ID
 Commands used to verify current router ID
– Show ip protocols
– Show ip ospf
– Show ip ospf interface
20© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
 OSPF Router ID
 Router ID & Loopback addresses
– Highest loopback address will be used as router ID if router-id
command isn’t used
– Advantage of using loopback address
• The loopback interface cannot fail  OSPF stability
 The OSPF router-id command
– Introduced in IOS 12.0
– Command syntax
• Router(config)#router ospfprocess-id
• Router(config-router)#router-idip-address
 Modifying the Router ID
– Use the command Router#clear ip ospf process
21© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
 Verifying OSPF
 Use the show ip ospf command to verify & trouble
shoot OSPF networks
 Command will display the following:
– Neighbor adjacency
• No adjacency indicated by
– Neighboring router’s Router ID is not displayed
– A state of full is not displayed
• Consequence of no adjacency
– No link state information exchanged
– Inaccurate SPF trees & routing tables
22© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
Command Description
Show ip protocols
Displays OSPF process ID,
router ID, networks router is
advertising & administrative
distance
Show ip ospf
Displays OSPF process ID,
router ID, OSPF area information
& the last time SPF algorithm
calculated
Show ip ospf interface
Displays hello interval and dead
interval
 Verifying OSPF - Additional Commands
23© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
 Examining the routing table
 Use the show ip route command to display the routing
table
– An “O’ at the beginning of a route indicates that the router
source is OSPF
– Note OSPF does not automatically summarize at major
network boundaries
24© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF Metric
 OSPF uses cost as the metric for determining the
best route
– The best route will have the lowest cost
– Cost is based on bandwidth of an interface
• Cost is calculated using the formula
– 108
/ bandwidth
– Reference bandwidth
• Defaults to 100Mbps
• Can be modified using
• Auto-cost reference-bandwidth command
25© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF Metric
 COST of an OSPF route
– Is the accumulated value from one router to the next
26© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF Metric
 Usually the actual speed of a link is different than the
default bandwidth
– This makes it imperative that the bandwidth value reflects
link’s actual speed
• Reason: so routing table has best path information
 The show interface command will display interface’s
bandwidth
– Most serial link default to 1.544Mbps
27© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
 Modifying the Cost of a link
 Both sides of a serial link should be configured with the
same bandwidth
– Commands used to modify bandwidth value
• Bandwidth command
– Example: Router(config-if)#bandwidthbandwidth-kbps
• ip ospf cost command – allows you to directly specify
interface cost
– Example: R1(config)#interface serial 0/0/0
– R1(config-if)#ip ospf cost 1562
28© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
 Modifying the Cost of the link
 Difference between bandwidth command & the ip ospf
cost command
– Ip ospf cost command
• Sets cost to a specific value
– Bandwidth command
• Link cost is calculated
29© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF and Multiaccess Networks
 Challenges in Multiaccess Networks
 OSPF defines five network types:
– Point-to-point
– Broadcast Multiaccess
– Nonbroadcast Multiaccess (NBMA)
– Point-to-multipoint
– Virtual links
30© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 2 challenges presented by multiaccess networks
– Multiple adjacencies
– Extensive LSA flooding
31© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 Extensive flooding of LSAs
– For every LSA sent out there must be an acknowledgement of
receipt sent back to transmitting router
– Consequence: lots of bandwidth consumed and chaotic traffic
32© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 Solution to LSA flooding issue
is the use of
– Designated router (DR)
– Backup designated router
(BDR)
 DR & BDR selection
– Routers are elected to send &
receive LSA
 Sending & Receiving LSA
– DR others send LSAs via
multicast 224.0.0.6 to DR &
BDR
– DR forward LSA via multicast
address 224.0.0.5 to all other
routers
33© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 DR/BDR Election Process
– DR/BDR elections DO NOT occur in point to point
networks
34© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 DR/BDR elections will take place on multiaccess
networks as shown below
35© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 Criteria for getting elected DR/BDR
1. DR: Router with the highest OSPF
interface priority
2. BDR: Router with the second highest
OSPF interface priority
3. If OSPF interface priorities are equal,
the highest router ID is used to break
the tie
36© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 Timing of DR/BDR Election
– Occurs as soon as 1st
router has its interface enabled on
multiaccess network
• When a DR is elected it remains as the DR until one
of the following occurs
– The DR fails
– The OSPF process on the DR fails
– The multiaccess interface on the DR fails
37© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 Manipulating the election process
– If you want to influence the election of DR & BDR then
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
38© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 OSPF Interface Priority
 Manipulating the DR/BDR election process continued
– Use the ip ospf priority interface command.
– Example:Router(config-if)#ip ospf priority {0 - 255}
• Priority number range 0 to 255
– 0 means the router cannot become the DR or BDR
– 1 is the default priority value
39© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
More OSPF Configuration
 Redistributing an OSPF Default Route
 Topology includes a link to ISP
– Router connected to ISP
• Called an autonomous system border router
• Used to propagate a default route
– Example of static default route:
R1(config)#ip route 0.0.0.0 0.0.0.0 loopback 1
– Requires the use of the default-information originate
command
– Example of default-information originate command:
R1(config-router)#default-information originate
40© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
More OSPF Configuration
 Fine-Tuning OSPF
 Since link speeds are
getting faster it may be
necessary to change
reference bandwidth
values
– Do this using the
auto-cost
reference-bandwidth
command
– Example:
• R1(config-router)#auto
-cost
reference-bandwidth
10000
41© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
More OSPF Configuration
 Fine-Tuning OSPF
 Modifying OSPF timers
– Reason to modify timers
• Faster detection of network failures
– Manually modifying Hello & Dead intervals
• Router(config-if)#ip ospf hello-interval seconds
• Router(config-if)#ip ospf dead-interval seconds
– Point to be made
• Hello & Dead intervals must be the same between neighbors
42© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Summary
 RFC 2328 describes OSPF link state concepts and
operations
 OSPF Characteristics
– A commonly deployed link state routing protocol
– Employs DRs & BDRs on multi-access networks
• DRs & BDRs are elected
• DR & BDRs are used to transmit and receive LSAs
– Uses 5 packet types:
1: HELLO
2: DATABASE DESCRIPTION
3: LINK STATE REQUEST
4: LINK STATE UPDATE
5: LINK STATE ACKNOWLEDGEMENT
43© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Summary
 OSPF Characteristics
– Metric = cost
• Lowest cost = best path
 Configuration
– Enable OSPF on a router using the following command
• R1(config)#router ospf process-id
– Use the network command to define which interfaces will
participate in a given OSPF process
• Router(config-router)#network network-address
wildcard-mask area area-id
44© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Summary
 Verifying OSPF configuration
– Use the following commands:
• show ip protocol
• show ip route
• show ip ospf interface
• show ip ospf neighbor
45© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Weitere ähnliche Inhalte

Was ist angesagt?

Ccna ppt1
Ccna ppt1Ccna ppt1
Ccna ppt1AIRTEL
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)Respa Peter
 
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)anilinvns
 
CCNA Routing Protocols
CCNA Routing ProtocolsCCNA Routing Protocols
CCNA Routing ProtocolsDsunte Wilson
 
Cisco IPv6 Tutorial
Cisco IPv6 TutorialCisco IPv6 Tutorial
Cisco IPv6 Tutorialkriz5
 
MPLS Deployment Chapter 1 - Basic
MPLS Deployment Chapter 1 - BasicMPLS Deployment Chapter 1 - Basic
MPLS Deployment Chapter 1 - BasicEricsson
 
MPLS L3 VPN Deployment
MPLS L3 VPN DeploymentMPLS L3 VPN Deployment
MPLS L3 VPN DeploymentAPNIC
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path FirstKashif Latif
 
ccna summer training ppt ( Cisco certified network analysis) ppt. by Traun k...
ccna summer training ppt ( Cisco certified network analysis) ppt.  by Traun k...ccna summer training ppt ( Cisco certified network analysis) ppt.  by Traun k...
ccna summer training ppt ( Cisco certified network analysis) ppt. by Traun k...Tarun Khaneja
 
CCNAv5 - S1: Chapter 5 - Ethernet
CCNAv5 - S1: Chapter 5 - EthernetCCNAv5 - S1: Chapter 5 - Ethernet
CCNAv5 - S1: Chapter 5 - EthernetVuz Dở Hơi
 
Ccnp workbook network bulls
Ccnp workbook network bullsCcnp workbook network bulls
Ccnp workbook network bullsSwapnil Kapate
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information ProtocolKashif Latif
 

Was ist angesagt? (20)

Ccna ppt1
Ccna ppt1Ccna ppt1
Ccna ppt1
 
Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
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)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
 
VTP
VTPVTP
VTP
 
CCNA Routing Protocols
CCNA Routing ProtocolsCCNA Routing Protocols
CCNA Routing Protocols
 
Static Routing
Static RoutingStatic Routing
Static Routing
 
Bgp protocol
Bgp protocolBgp protocol
Bgp protocol
 
CCNP ROUTE V7 CH4
CCNP ROUTE V7 CH4CCNP ROUTE V7 CH4
CCNP ROUTE V7 CH4
 
Cisco IPv6 Tutorial
Cisco IPv6 TutorialCisco IPv6 Tutorial
Cisco IPv6 Tutorial
 
MPLS Deployment Chapter 1 - Basic
MPLS Deployment Chapter 1 - BasicMPLS Deployment Chapter 1 - Basic
MPLS Deployment Chapter 1 - Basic
 
MPLS L3 VPN Deployment
MPLS L3 VPN DeploymentMPLS L3 VPN Deployment
MPLS L3 VPN Deployment
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
CCNP ROUTE V7 CH5
CCNP ROUTE V7 CH5CCNP ROUTE V7 CH5
CCNP ROUTE V7 CH5
 
IPv6
IPv6IPv6
IPv6
 
ccna summer training ppt ( Cisco certified network analysis) ppt. by Traun k...
ccna summer training ppt ( Cisco certified network analysis) ppt.  by Traun k...ccna summer training ppt ( Cisco certified network analysis) ppt.  by Traun k...
ccna summer training ppt ( Cisco certified network analysis) ppt. by Traun k...
 
First hop redundancy
First hop redundancyFirst hop redundancy
First hop redundancy
 
CCNAv5 - S1: Chapter 5 - Ethernet
CCNAv5 - S1: Chapter 5 - EthernetCCNAv5 - S1: Chapter 5 - Ethernet
CCNAv5 - S1: Chapter 5 - Ethernet
 
Ccnp workbook network bulls
Ccnp workbook network bullsCcnp workbook network bulls
Ccnp workbook network bulls
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
 

Ähnlich wie Ospf.ppt

CCNA Exploration 2 - Chapter 11
CCNA Exploration 2 - Chapter 11CCNA Exploration 2 - Chapter 11
CCNA Exploration 2 - Chapter 11Irsandi Hasan
 
Exploration routing chapter_11
Exploration routing chapter_11Exploration routing chapter_11
Exploration routing chapter_11Joshua Torres
 
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptxserieux1
 
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 ConfigurationENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configurationkecatem465
 
Implementing a scalable ospf based solution
Implementing a scalable ospf based solutionImplementing a scalable ospf based solution
Implementing a scalable ospf based solutionArnold Derrick Kinney
 
Exploration routing chapter 10 & 11
Exploration routing chapter 10 & 11Exploration routing chapter 10 & 11
Exploration routing chapter 10 & 11Sachii Dosti
 
CCNA Discovery 3 - Chapter 6
CCNA Discovery 3 - Chapter 6CCNA Discovery 3 - Chapter 6
CCNA Discovery 3 - Chapter 6Irsandi Hasan
 
Configurasi ospf
Configurasi ospfConfigurasi ospf
Configurasi ospfamri am
 
CCNA3 Verson6 Chapter10
CCNA3 Verson6 Chapter10CCNA3 Verson6 Chapter10
CCNA3 Verson6 Chapter10Chaing Ravuth
 
CCNA 2 Routing and Switching v5.0 Chapter 8
CCNA 2 Routing and Switching v5.0 Chapter 8CCNA 2 Routing and Switching v5.0 Chapter 8
CCNA 2 Routing and Switching v5.0 Chapter 8Nil Menon
 
Chapter5 adjust and troubleshoot single area ospf
Chapter5 adjust and troubleshoot single area ospfChapter5 adjust and troubleshoot single area ospf
Chapter5 adjust and troubleshoot single area ospfVuz Dở Hơi
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8Waqas Ahmed Nawaz
 

Ähnlich wie Ospf.ppt (20)

CCNA Exploration 2 - Chapter 11
CCNA Exploration 2 - Chapter 11CCNA Exploration 2 - Chapter 11
CCNA Exploration 2 - Chapter 11
 
Exploration routing chapter_11
Exploration routing chapter_11Exploration routing chapter_11
Exploration routing chapter_11
 
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptx
 
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptx
 
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 ConfigurationENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
 
ospf-config.pdf
ospf-config.pdfospf-config.pdf
ospf-config.pdf
 
1cospf
1cospf1cospf
1cospf
 
1cospf
1cospf1cospf
1cospf
 
Implementing a scalable ospf based solution
Implementing a scalable ospf based solutionImplementing a scalable ospf based solution
Implementing a scalable ospf based solution
 
Exploration routing chapter 10 & 11
Exploration routing chapter 10 & 11Exploration routing chapter 10 & 11
Exploration routing chapter 10 & 11
 
CCNA Discovery 3 - Chapter 6
CCNA Discovery 3 - Chapter 6CCNA Discovery 3 - Chapter 6
CCNA Discovery 3 - Chapter 6
 
Ospf
 Ospf Ospf
Ospf
 
CCNP ROUTE V7 CH3
CCNP ROUTE V7 CH3CCNP ROUTE V7 CH3
CCNP ROUTE V7 CH3
 
Ospf hassan jamal.ppt
Ospf hassan jamal.pptOspf hassan jamal.ppt
Ospf hassan jamal.ppt
 
Configurasi ospf
Configurasi ospfConfigurasi ospf
Configurasi ospf
 
CCNA3 Verson6 Chapter10
CCNA3 Verson6 Chapter10CCNA3 Verson6 Chapter10
CCNA3 Verson6 Chapter10
 
CCNA 2 Routing and Switching v5.0 Chapter 8
CCNA 2 Routing and Switching v5.0 Chapter 8CCNA 2 Routing and Switching v5.0 Chapter 8
CCNA 2 Routing and Switching v5.0 Chapter 8
 
Ospf
OspfOspf
Ospf
 
Chapter5 adjust and troubleshoot single area ospf
Chapter5 adjust and troubleshoot single area ospfChapter5 adjust and troubleshoot single area ospf
Chapter5 adjust and troubleshoot single area ospf
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
 

Mehr von Edgardo Scrimaglia

Mehr von Edgardo Scrimaglia (9)

Ospf routing protocol
Ospf routing protocolOspf routing protocol
Ospf routing protocol
 
Link state protocols.ppt
Link state protocols.pptLink state protocols.ppt
Link state protocols.ppt
 
Multicast address
Multicast addressMulticast address
Multicast address
 
Layer 3 redundancy hsrp
Layer 3 redundancy   hsrpLayer 3 redundancy   hsrp
Layer 3 redundancy hsrp
 
Ether channel fundamentals
Ether channel fundamentalsEther channel fundamentals
Ether channel fundamentals
 
Subnet mask vs wildcard mask
Subnet mask vs wildcard maskSubnet mask vs wildcard mask
Subnet mask vs wildcard mask
 
Mecanismos de transicion pv6
Mecanismos de transicion pv6Mecanismos de transicion pv6
Mecanismos de transicion pv6
 
Como definir un esquema de direcciones IPv6
Como definir un esquema de direcciones IPv6Como definir un esquema de direcciones IPv6
Como definir un esquema de direcciones IPv6
 
Conceptos ipv6, direccionamiento
Conceptos ipv6, direccionamientoConceptos ipv6, direccionamiento
Conceptos ipv6, direccionamiento
 

Kürzlich hochgeladen

MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 

Kürzlich hochgeladen (20)

MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

Ospf.ppt

  • 1. © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 1Version 4.0 OSPF Routing Protocols and Concepts Ed Scrimaglia - CCIE
  • 2. 2© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Objectives  Describe the background and basic features of OSPF.  Identify and apply the basic OSPF configuration commands.  Describe, modify and calculate the metric used by OSPF.  Describe the Designated Router/Backup Designated Router (DR/BDR) election process in multiaccess networks.  Describe the uses of additional configuration commands in OSPF.
  • 3. 3© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction
  • 4. 4© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF  Background of OSPF – Began in 1987 – 1989 OSPFv1 released in RFC 1131 – This version was experimental & never deployed – 1991 OSPFv2 released in RFC 1247 – 1998 OSPFv2 updated in RFC 2328 – 1999 OSPFv3 published in RFC 2740
  • 5. 5© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF  OSPF Message Encapsulation – OSPF packet type • There exist 5 types – OSPF packet header • Contains - Router ID and area ID and Type code for OSPF packet type – IP packet header • Contains - Source IP address, Destination IP address, & Protocol field set to 89
  • 6. 6© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF  OSPF Message Encapsulation – Data link frame header – Contains - Source MAC address and Destination MAC address
  • 7. 7© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF  OSPF Packet Types
  • 8. 8© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF  Hello Protocol  OSPF Hello Packet – Purpose of Hello Packet • Discover OSPF neighbors & establish adjacencies • Advertise guidelines on which routers must agree to become neighbors • Used by multi-access networks to elect a designated router and a backup designated router
  • 9. 9© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF  Hello Packets continued – Contents of a Hello Packet router ID of transmitting router  OSPF Hello Intervals – Usually multicast (224.0.0.5) – Sent every 30 seconds for NBMA segments  OSPF Dead Intervals – This is the time that must transpire before the neighbor is considered down – Default time is 4 times the hello interval
  • 10. 10© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF  Hello protocol packets contain information that is used in electing – Designated Router (DR) • DR is responsible for updating all other OSPF routers – Backup Designated Router (BDR) • This router takes over DR’s responsibilities if DR fails
  • 11. 11© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF  OSPF Link-state Updates – Purpose of a Link State Update (LSU) • Used to deliver link state advertisements – Purpose of a Link State Advertisement (LSA) • Contains information about neighbors & path costs
  • 12. 12© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF  OSPF Algorithm  OSPF routers build & maintain link-state database containing LSA received from other routers – Information found in database is utilized upon execution of Dijkstra SPF algorithm – SPF algorithm used to create SPF tree – SPF tree used to populate routing table
  • 13. 13© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF  Administrative Distance – Default Administrative Distance for OSPF is 110
  • 14. 14© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF  OSPF Authentication – Purpose is to encrypt & authenticate routing information – This is an interface specific configuration – Routers will only accept routing information from other routers that have been configured with the same password or authentication information
  • 15. 15© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration  Lab Topology  Topology used for this chapter – Discontiguous IP addressing scheme – Since OSPF is a classless routing protocol the subnet mask is configured in
  • 16. 16© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration  The router ospf command  To enable OSPF on a router use the following command – R1(config)#router ospf process-id – Process id • A locally significant number between 1 and 65535 • This means it does not have to match other OSPF routers
  • 17. 17© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration  OSPF network command – Requires entering: • network address • wildcard mask - the inverse of the subnet mask • area-id - area-id refers to the OSPF area – OSPF area is a group of routers that share link state information – Example: Router(config-router)#network network-address wildcard-ask area area-id
  • 18. 18© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration  Router ID – This is an IP address used to identify a router – 3 criteria for deriving the router ID • Use IP address configured with OSPF router-id command – Takes precedence over loopback and physical interface addresses • If router-id command not used then router chooses highest IP address of any loopback interfaces • If no loopback interfaces are configured then the highest IP address on any active interface is used
  • 19. 19© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration  OSPF Router ID  Commands used to verify current router ID – Show ip protocols – Show ip ospf – Show ip ospf interface
  • 20. 20© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration  OSPF Router ID  Router ID & Loopback addresses – Highest loopback address will be used as router ID if router-id command isn’t used – Advantage of using loopback address • The loopback interface cannot fail  OSPF stability  The OSPF router-id command – Introduced in IOS 12.0 – Command syntax • Router(config)#router ospfprocess-id • Router(config-router)#router-idip-address  Modifying the Router ID – Use the command Router#clear ip ospf process
  • 21. 21© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration  Verifying OSPF  Use the show ip ospf command to verify & trouble shoot OSPF networks  Command will display the following: – Neighbor adjacency • No adjacency indicated by – Neighboring router’s Router ID is not displayed – A state of full is not displayed • Consequence of no adjacency – No link state information exchanged – Inaccurate SPF trees & routing tables
  • 22. 22© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration Command Description Show ip protocols Displays OSPF process ID, router ID, networks router is advertising & administrative distance Show ip ospf Displays OSPF process ID, router ID, OSPF area information & the last time SPF algorithm calculated Show ip ospf interface Displays hello interval and dead interval  Verifying OSPF - Additional Commands
  • 23. 23© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration  Examining the routing table  Use the show ip route command to display the routing table – An “O’ at the beginning of a route indicates that the router source is OSPF – Note OSPF does not automatically summarize at major network boundaries
  • 24. 24© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF Metric  OSPF uses cost as the metric for determining the best route – The best route will have the lowest cost – Cost is based on bandwidth of an interface • Cost is calculated using the formula – 108 / bandwidth – Reference bandwidth • Defaults to 100Mbps • Can be modified using • Auto-cost reference-bandwidth command
  • 25. 25© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF Metric  COST of an OSPF route – Is the accumulated value from one router to the next
  • 26. 26© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF Metric  Usually the actual speed of a link is different than the default bandwidth – This makes it imperative that the bandwidth value reflects link’s actual speed • Reason: so routing table has best path information  The show interface command will display interface’s bandwidth – Most serial link default to 1.544Mbps
  • 27. 27© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration  Modifying the Cost of a link  Both sides of a serial link should be configured with the same bandwidth – Commands used to modify bandwidth value • Bandwidth command – Example: Router(config-if)#bandwidthbandwidth-kbps • ip ospf cost command – allows you to directly specify interface cost – Example: R1(config)#interface serial 0/0/0 – R1(config-if)#ip ospf cost 1562
  • 28. 28© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration  Modifying the Cost of the link  Difference between bandwidth command & the ip ospf cost command – Ip ospf cost command • Sets cost to a specific value – Bandwidth command • Link cost is calculated
  • 29. 29© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF and Multiaccess Networks  Challenges in Multiaccess Networks  OSPF defines five network types: – Point-to-point – Broadcast Multiaccess – Nonbroadcast Multiaccess (NBMA) – Point-to-multipoint – Virtual links
  • 30. 30© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks  2 challenges presented by multiaccess networks – Multiple adjacencies – Extensive LSA flooding
  • 31. 31© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks  Extensive flooding of LSAs – For every LSA sent out there must be an acknowledgement of receipt sent back to transmitting router – Consequence: lots of bandwidth consumed and chaotic traffic
  • 32. 32© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks  Solution to LSA flooding issue is the use of – Designated router (DR) – Backup designated router (BDR)  DR & BDR selection – Routers are elected to send & receive LSA  Sending & Receiving LSA – DR others send LSAs via multicast 224.0.0.6 to DR & BDR – DR forward LSA via multicast address 224.0.0.5 to all other routers
  • 33. 33© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks  DR/BDR Election Process – DR/BDR elections DO NOT occur in point to point networks
  • 34. 34© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks  DR/BDR elections will take place on multiaccess networks as shown below
  • 35. 35© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks  Criteria for getting elected DR/BDR 1. DR: Router with the highest OSPF interface priority 2. BDR: Router with the second highest OSPF interface priority 3. If OSPF interface priorities are equal, the highest router ID is used to break the tie
  • 36. 36© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks  Timing of DR/BDR Election – Occurs as soon as 1st router has its interface enabled on multiaccess network • When a DR is elected it remains as the DR until one of the following occurs – The DR fails – The OSPF process on the DR fails – The multiaccess interface on the DR fails
  • 37. 37© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks  Manipulating the election process – If you want to influence the election of DR & BDR then 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
  • 38. 38© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks  OSPF Interface Priority  Manipulating the DR/BDR election process continued – Use the ip ospf priority interface command. – Example:Router(config-if)#ip ospf priority {0 - 255} • Priority number range 0 to 255 – 0 means the router cannot become the DR or BDR – 1 is the default priority value
  • 39. 39© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public More OSPF Configuration  Redistributing an OSPF Default Route  Topology includes a link to ISP – Router connected to ISP • Called an autonomous system border router • Used to propagate a default route – Example of static default route: R1(config)#ip route 0.0.0.0 0.0.0.0 loopback 1 – Requires the use of the default-information originate command – Example of default-information originate command: R1(config-router)#default-information originate
  • 40. 40© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public More OSPF Configuration  Fine-Tuning OSPF  Since link speeds are getting faster it may be necessary to change reference bandwidth values – Do this using the auto-cost reference-bandwidth command – Example: • R1(config-router)#auto -cost reference-bandwidth 10000
  • 41. 41© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public More OSPF Configuration  Fine-Tuning OSPF  Modifying OSPF timers – Reason to modify timers • Faster detection of network failures – Manually modifying Hello & Dead intervals • Router(config-if)#ip ospf hello-interval seconds • Router(config-if)#ip ospf dead-interval seconds – Point to be made • Hello & Dead intervals must be the same between neighbors
  • 42. 42© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Summary  RFC 2328 describes OSPF link state concepts and operations  OSPF Characteristics – A commonly deployed link state routing protocol – Employs DRs & BDRs on multi-access networks • DRs & BDRs are elected • DR & BDRs are used to transmit and receive LSAs – Uses 5 packet types: 1: HELLO 2: DATABASE DESCRIPTION 3: LINK STATE REQUEST 4: LINK STATE UPDATE 5: LINK STATE ACKNOWLEDGEMENT
  • 43. 43© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Summary  OSPF Characteristics – Metric = cost • Lowest cost = best path  Configuration – Enable OSPF on a router using the following command • R1(config)#router ospf process-id – Use the network command to define which interfaces will participate in a given OSPF process • Router(config-router)#network network-address wildcard-mask area area-id
  • 44. 44© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Summary  Verifying OSPF configuration – Use the following commands: • show ip protocol • show ip route • show ip ospf interface • show ip ospf neighbor
  • 45. 45© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public