SlideShare une entreprise Scribd logo
1  sur  38
ROUTING & OSPF CCNA 3.0
OSPF ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
OSPF ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Link-State Advertisements ,[object Object],[object Object],[object Object],[object Object]
OSPF Terminology An interface on a router The status of a link between 2 routers A list of info about other routers in the network – shows the topology (also called Link-State database) A collection of network and routers that have the same area identification. Each router has same link-state info. A router in a area is called an internal router. OSPF Terminology Cost is the value assigned to the link, based on the bandwidth
OSPF Terminology
OSPF Terminology Cost is the value assigned to the link, based on the bandwidth
OSPF Terminology Routing Table is generated when an algorithm is run on the link-state database. Each router’s table is unique to that router.
OSPF Terminology Adjacencies database is a listing of all the neighbors to which a router has established bi-directional communication
OSPF Terminology Designated router & backup designated router are routers that are elected by all other routers to represent all the routers. Every network has a DR & a BDR.
OSPF Terminology ,[object Object],[object Object],[object Object],[object Object],[object Object]
OSPF Terminology ,[object Object],[object Object],[object Object],[object Object],Or  “OSPF Routing Domain” Single Area OSPF uses only one area, usually Area 0
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],OSPF’s Metric is Cost (Bandwidth)
OSPF’s Metric is Cost (Bandwidth) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Cost = 100,000,000/Bandwidth
OSPF’s Metric is Cost (Bandwidth) ,[object Object],[object Object],[object Object]
OSPF Packet Types Acknowledges receipt of a neighbor’s LSA Type 5 – Link-state acknowledgement (LSAck) Transports LSAs to neighbor routers Type 4 – Link-state update (LSU) Requests specific pieces of a router’s LSD Type 3 – Link-state request (LSR) Describes contents of an OSPF router’s link-state database Type 2 – Database description packet (DBD) Estab. & main. Adjacency info w/ neighbors Type 1 – Hello Description OSPF Packet Type
OSPF Hello Protocol ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
OSPF States After loading, routers now fully adjacent. Full Adjacency Link state updates exchanged Loading Routers send each other their databases Exchange Type 2 packets exchanged; master & slave estab. ExStart When a router sees itself in its neighbor’s hello packet Two-Way Hello packets are sent Init Everything down, nothing exchanged Down Definition State
OSPF Network Types Ethernet, Token-ring, FDDI PPP, HDLC Frame-Relay, X.25 No DR or BDR needed DR and BDR needed DR and BDR needed
Steps for OSPF Operation ,[object Object],[object Object],[object Object],[object Object],[object Object]
Steps to OSPF Operation with States -  DR and BDR ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Steps to OSPF Operation with States -  DR and BDR ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
OSPF Configuration Process – ID – locally sig. – doesn’t have to be same on all routers Wildcard is necessary because OSPF supports VLSM & CIDR
Network Command and the Wildcard Mask S0 S0 fa0 fa0 RouterID: lo0 200.0.0.1/32 lo1 lo1 Merida Vargas 192.168.1.0/24 192.168.30.0/24 192.168.20.4.0/30 192.168.2.0/24 192.168.20.0/30 .1 .2 .5 Non-OSPF link .1 .1 .1 RouterID: lo0 201.0.0.1/32   Merida Merida(config)#router ospf 1 Merida(config-router)#network 192.168.1.0 0.0.0.255 area 0 Merida(config-router)#network 192.168.2.0 0.0.0.255 area 0 Merida(config-router)#network 192.168.20.0 0.0.0.3 area 0 Vargas Vargas(config)#router ospf 10 Vargas(config-router)#network 192.168.20.0 0.0.0.3 area 0 Vargas(config-router)#network 192.168.30.0 0.0.0.255 area 0 Only 192.168.20.0/30 NOT 192.168.20.4/30
Configuring a Loopback Address ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Configuring Simple Authentication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Note that this is a 2-step process (lab)
Encrypted Authentication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
MD5 Authentication ,[object Object],[object Object],[object Object],[object Object]
Configuring and Propagating a Default Route ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Default Route Example Entrance(config)#  ip route 0.0.0.0 0.0.0.0 serial 0 Entrance(config)#  router ospf 1 Entrance(config-router)#  network 10.0.0.0 0.0.0.255 area 0 Entrance(config-router)#  network 11.0.0.0 0.0.0.255 area 0 Entrance(config-router)#  default-information originate ISP Entrance Engineering Marketing ip route 0.0.0.0/0 Static Route 0.0.0.0/0 0.0.0.0/0 Automatically Propagated s0 10.0.0.0/24 11.0.0.0/24 Engineering and Marketing will have 0.0.0.0/0 default routes forwarding packets to the Entrance router.
show ip route Router# show ip route 172.16.0.0/16 is variably subnetted, 4 subnets, 3 masks O IA  172.16.51.1/32 [110/783] via 172.16.1.2, 00:11:44, FastEthernet0 O  172.16.20.0/24 [110/782] via 172.16.10.6, 00:12:29, Serial0 C  172.16.10.4/30 is directly connected, Serial0 C  172.16.1.0/24 is directly connected, FastEthernet0 O E2 11.0.0.0/8 [110/20] via 172.16.1.1, 00:11:44, FastEthernet0 O E1 12.0.0.0/8 [110/782] via 172.16.1.1, 00:11:44, FastEthernet0 ,[object Object],[object Object],[object Object],[object Object],[object Object]
show ip ospf  Router#show ip ospf Routing Process &quot;ospf 1&quot; with ID 192.168.3.1 Supports only single TOS(TOS0) routes It is an area border router SPF schedule delay 5 secs, Hold time between two SPFs 10 secs Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs Number of external LSA 3. Checksum Sum 0x97E3  Number of DCbitless external LSA 0 Number of DoNotAge external LSA 0 Number of areas in this router is 2. 2 normal 0 stub 0 nssa External flood list length 0 Area BACKBONE(0)   Number of interfaces in this area is 1   Area has no authentication   SPF algorithm executed 8 times   <text omitted> Area 1   <text omitted>
show ip ospf interface Router#  show ip ospf interface Ethernet0  is up, line protocol is up Internet Address 206.202.2.1/24,  Area 1 Process ID 1, Router ID 1.2.202.206, Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State BDR, Priority 1 Designated Router (ID) 2.2.202.206, Interface address 206.202.2.2 Backup Designated router (ID) 1.2.202.206, Interface address 206.202.2.1 Timer intervals   configured , Hello 10, Dead 40,  Wait 40, Retransmit 5 Hello due in 00:00:00 Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 2.2.202.206  (Designated Router) Suppress hello for 0 neighbor(s) Serial0  is up, line protocol is up Internet Address 206.202.1.2/24, Area 1 Process ID 1, Router ID 1.2.202.206,  Network Type POINT_TO_POINT ,  Cost: 64 Transmit Delay is 1 sec, State POINT_TO_POINT, Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:04 Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 2.0.202.206 Suppress hello for 0 neighbor(s) Timer intervals Router ID # Neighbor adjacencies
OSPF Neighbors Adjacencies Hello interval
show ip ospf neighbor RouterB#show ip ospf neighbor Neighbor ID  Pri  State  Dead Time  Address  Interface 1.5.202.206  1  FULL/DROTHER  00:00:33  206.202.0.3  Ethernet0 1.10.202.206  1  FULL/BDR  00:00:32  206.202.0.4  Ethernet0 1.0.202.206  1  2WAY/DROTHER  00:00:30  206.202.0.1  Ethernet0 1.2.202.206  1  FULL/  -  00:00:32  206.202.1.2  Serial0 ,[object Object],[object Object]
Clear & Debug ,[object Object],[object Object],[object Object],[object Object],[object Object]
OSPF Configuration Commands - Review Required Commands: Rtr(config)#  router ospf  process-id Rtr(config-router)# network  address   wildcard-mask  area  area-id Optional Commands: Rtr(config-router)#  default-information originate (Send default) Rtr(config-router)#  area  area  authentication  (Plain authen.) Rtr(config-router)#  area  area  authentication message-digest  (md5 authen.) Rtr(config)#  interface loopback  number  (Configure lo as RtrID) Rtr(config)#  interface type slot/port (int Fa0/0) Rtr(config-if)#  ip ospf priority <0-255>  (DR/BDR election) Rtr(config-if)#  bandwidth  kbps   (Modify default bandwdth) RTB(config-if)#  ip ospf cost  cost  (Modify inter. cost) Rtr(config-if)#  ip ospf hello-interval  seconds  (Modify Hello) Rtr(config-if)#  ip ospf dead-interval  seconds  (Modify Dead) Rtr(config-if)#  ip ospf authentication-key  passwd  (Plain/md5authen) Rtr(config-if)#  ip ospf message-digest-key  key-id  md5  password
ROUTING & OSPF CCNA 3.0

Contenu connexe

Tendances

Juniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by SoricelliJuniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by Soricelli
Febrian ‎
 
Label Distribution Protocol
Label Distribution ProtocolLabel Distribution Protocol
Label Distribution Protocol
Kashif Latif
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
Kashif Latif
 
Is Is Routing Protocol
Is Is Routing ProtocolIs Is Routing Protocol
Is Is Routing Protocol
hayenas
 

Tendances (20)

MPLS L3 VPN Deployment
MPLS L3 VPN DeploymentMPLS L3 VPN Deployment
MPLS L3 VPN Deployment
 
Juniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by SoricelliJuniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by Soricelli
 
Layer 3 redundancy hsrp
Layer 3 redundancy   hsrpLayer 3 redundancy   hsrp
Layer 3 redundancy hsrp
 
Ospf
 Ospf Ospf
Ospf
 
Label Distribution Protocol
Label Distribution ProtocolLabel Distribution Protocol
Label Distribution Protocol
 
IS-IS Protocol Adjacency
IS-IS Protocol Adjacency IS-IS Protocol Adjacency
IS-IS Protocol Adjacency
 
Cisco Live Milan 2015 - BGP advance
Cisco Live Milan 2015 - BGP advanceCisco Live Milan 2015 - BGP advance
Cisco Live Milan 2015 - BGP advance
 
MPLS Traffic Engineering
MPLS Traffic EngineeringMPLS Traffic Engineering
MPLS Traffic Engineering
 
Bgp protocol
Bgp protocolBgp protocol
Bgp protocol
 
MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
 
Ospf.ppt
Ospf.pptOspf.ppt
Ospf.ppt
 
Chapter 17 : static routing
Chapter 17 : static routingChapter 17 : static routing
Chapter 17 : static routing
 
Eigrp.ppt
Eigrp.pptEigrp.ppt
Eigrp.ppt
 
Is Is Routing Protocol
Is Is Routing ProtocolIs Is Routing Protocol
Is Is Routing Protocol
 
Segment Routing Lab
Segment Routing Lab Segment Routing Lab
Segment Routing Lab
 
03 ospf
03 ospf 03 ospf
03 ospf
 
Chapter 15 : routing concepts
Chapter 15 : routing conceptsChapter 15 : routing concepts
Chapter 15 : routing concepts
 
BGP
BGP BGP
BGP
 
Is is
Is isIs is
Is is
 

En vedette

Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
Kashif Latif
 
Troubleshooting ospf
Troubleshooting ospfTroubleshooting ospf
Troubleshooting ospf
Jay Mukoja
 

En vedette (20)

Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
Protocole OSPF
Protocole OSPFProtocole OSPF
Protocole OSPF
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
Ppt of routing protocols
Ppt of routing protocolsPpt of routing protocols
Ppt of routing protocols
 
Link State Protocol
Link State ProtocolLink State Protocol
Link State Protocol
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
OSPF - Routing Protocol
OSPF - Routing ProtocolOSPF - Routing Protocol
OSPF - Routing Protocol
 
OSPF- Multi area
OSPF- Multi area OSPF- Multi area
OSPF- Multi area
 
Ch 20 UNICAST ROUTING SECTION 2
Ch 20   UNICAST ROUTING  SECTION  2Ch 20   UNICAST ROUTING  SECTION  2
Ch 20 UNICAST ROUTING SECTION 2
 
BGP
BGPBGP
BGP
 
RIP - Routing Information Protocol
RIP - Routing Information ProtocolRIP - Routing Information Protocol
RIP - Routing Information Protocol
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
 
Troubleshooting ospf
Troubleshooting ospfTroubleshooting ospf
Troubleshooting ospf
 
Eigrp and ospf comparison
Eigrp and ospf comparisonEigrp and ospf comparison
Eigrp and ospf comparison
 
Ip addressing...
Ip addressing... Ip addressing...
Ip addressing...
 
Ospf new
Ospf newOspf new
Ospf new
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
OLSR setup
OLSR setup OLSR setup
OLSR setup
 
Ospf
OspfOspf
Ospf
 

Similaire à Routing and OSPF

Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
robertoxe
 

Similaire à Routing and OSPF (20)

Ospf
OspfOspf
Ospf
 
C C N A Day3
C C N A  Day3C C N A  Day3
C C N A Day3
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
Cisco ospf
Cisco ospf Cisco ospf
Cisco ospf
 
Ccna day3
Ccna day3Ccna day3
Ccna day3
 
Ccna day3
Ccna day3Ccna day3
Ccna day3
 
Ccna day3-140715152337-phpapp01
Ccna day3-140715152337-phpapp01Ccna day3-140715152337-phpapp01
Ccna day3-140715152337-phpapp01
 
Ccna day3
Ccna day3Ccna day3
Ccna day3
 
Ccna day3
Ccna day3Ccna day3
Ccna day3
 
Ccna ppt1
Ccna ppt1Ccna ppt1
Ccna ppt1
 
Menggali Lebih Dalam tentang OSPF: Protokol Routing Dinamis yang Efisien.ppt
Menggali Lebih Dalam tentang OSPF: Protokol Routing Dinamis yang Efisien.pptMenggali Lebih Dalam tentang OSPF: Protokol Routing Dinamis yang Efisien.ppt
Menggali Lebih Dalam tentang OSPF: Protokol Routing Dinamis yang Efisien.ppt
 
ospf.ppt
ospf.pptospf.ppt
ospf.ppt
 
CCNA pptCCNA ppt Day 6
CCNA pptCCNA ppt Day 6CCNA pptCCNA ppt Day 6
CCNA pptCCNA ppt Day 6
 
Allwyn ospf ppt
Allwyn ospf pptAllwyn ospf ppt
Allwyn ospf ppt
 
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
 
Ospf
OspfOspf
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)
 
OSPF by Abdullah Mukhtar
OSPF by Abdullah MukhtarOSPF by Abdullah Mukhtar
OSPF by Abdullah Mukhtar
 
Osp fv3 cs
Osp fv3 csOsp fv3 cs
Osp fv3 cs
 
Day 12.2 enablingospf
Day 12.2 enablingospfDay 12.2 enablingospf
Day 12.2 enablingospf
 

Dernier

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
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
Victor Rentea
 

Dernier (20)

Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
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
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
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
 
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
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 

Routing and OSPF

  • 1. ROUTING & OSPF CCNA 3.0
  • 2.
  • 3.
  • 4.
  • 5. OSPF Terminology An interface on a router The status of a link between 2 routers A list of info about other routers in the network – shows the topology (also called Link-State database) A collection of network and routers that have the same area identification. Each router has same link-state info. A router in a area is called an internal router. OSPF Terminology Cost is the value assigned to the link, based on the bandwidth
  • 7. OSPF Terminology Cost is the value assigned to the link, based on the bandwidth
  • 8. OSPF Terminology Routing Table is generated when an algorithm is run on the link-state database. Each router’s table is unique to that router.
  • 9. OSPF Terminology Adjacencies database is a listing of all the neighbors to which a router has established bi-directional communication
  • 10. OSPF Terminology Designated router & backup designated router are routers that are elected by all other routers to represent all the routers. Every network has a DR & a BDR.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. OSPF Packet Types Acknowledges receipt of a neighbor’s LSA Type 5 – Link-state acknowledgement (LSAck) Transports LSAs to neighbor routers Type 4 – Link-state update (LSU) Requests specific pieces of a router’s LSD Type 3 – Link-state request (LSR) Describes contents of an OSPF router’s link-state database Type 2 – Database description packet (DBD) Estab. & main. Adjacency info w/ neighbors Type 1 – Hello Description OSPF Packet Type
  • 17.
  • 18. OSPF States After loading, routers now fully adjacent. Full Adjacency Link state updates exchanged Loading Routers send each other their databases Exchange Type 2 packets exchanged; master & slave estab. ExStart When a router sees itself in its neighbor’s hello packet Two-Way Hello packets are sent Init Everything down, nothing exchanged Down Definition State
  • 19. OSPF Network Types Ethernet, Token-ring, FDDI PPP, HDLC Frame-Relay, X.25 No DR or BDR needed DR and BDR needed DR and BDR needed
  • 20.
  • 21.
  • 22.
  • 23. OSPF Configuration Process – ID – locally sig. – doesn’t have to be same on all routers Wildcard is necessary because OSPF supports VLSM & CIDR
  • 24. Network Command and the Wildcard Mask S0 S0 fa0 fa0 RouterID: lo0 200.0.0.1/32 lo1 lo1 Merida Vargas 192.168.1.0/24 192.168.30.0/24 192.168.20.4.0/30 192.168.2.0/24 192.168.20.0/30 .1 .2 .5 Non-OSPF link .1 .1 .1 RouterID: lo0 201.0.0.1/32   Merida Merida(config)#router ospf 1 Merida(config-router)#network 192.168.1.0 0.0.0.255 area 0 Merida(config-router)#network 192.168.2.0 0.0.0.255 area 0 Merida(config-router)#network 192.168.20.0 0.0.0.3 area 0 Vargas Vargas(config)#router ospf 10 Vargas(config-router)#network 192.168.20.0 0.0.0.3 area 0 Vargas(config-router)#network 192.168.30.0 0.0.0.255 area 0 Only 192.168.20.0/30 NOT 192.168.20.4/30
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30. Default Route Example Entrance(config)# ip route 0.0.0.0 0.0.0.0 serial 0 Entrance(config)# router ospf 1 Entrance(config-router)# network 10.0.0.0 0.0.0.255 area 0 Entrance(config-router)# network 11.0.0.0 0.0.0.255 area 0 Entrance(config-router)# default-information originate ISP Entrance Engineering Marketing ip route 0.0.0.0/0 Static Route 0.0.0.0/0 0.0.0.0/0 Automatically Propagated s0 10.0.0.0/24 11.0.0.0/24 Engineering and Marketing will have 0.0.0.0/0 default routes forwarding packets to the Entrance router.
  • 31.
  • 32. show ip ospf Router#show ip ospf Routing Process &quot;ospf 1&quot; with ID 192.168.3.1 Supports only single TOS(TOS0) routes It is an area border router SPF schedule delay 5 secs, Hold time between two SPFs 10 secs Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs Number of external LSA 3. Checksum Sum 0x97E3 Number of DCbitless external LSA 0 Number of DoNotAge external LSA 0 Number of areas in this router is 2. 2 normal 0 stub 0 nssa External flood list length 0 Area BACKBONE(0) Number of interfaces in this area is 1 Area has no authentication SPF algorithm executed 8 times <text omitted> Area 1 <text omitted>
  • 33. show ip ospf interface Router# show ip ospf interface Ethernet0 is up, line protocol is up Internet Address 206.202.2.1/24, Area 1 Process ID 1, Router ID 1.2.202.206, Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State BDR, Priority 1 Designated Router (ID) 2.2.202.206, Interface address 206.202.2.2 Backup Designated router (ID) 1.2.202.206, Interface address 206.202.2.1 Timer intervals configured , Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:00 Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 2.2.202.206 (Designated Router) Suppress hello for 0 neighbor(s) Serial0 is up, line protocol is up Internet Address 206.202.1.2/24, Area 1 Process ID 1, Router ID 1.2.202.206, Network Type POINT_TO_POINT , Cost: 64 Transmit Delay is 1 sec, State POINT_TO_POINT, Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:04 Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 2.0.202.206 Suppress hello for 0 neighbor(s) Timer intervals Router ID # Neighbor adjacencies
  • 34. OSPF Neighbors Adjacencies Hello interval
  • 35.
  • 36.
  • 37. OSPF Configuration Commands - Review Required Commands: Rtr(config)# router ospf process-id Rtr(config-router)# network address wildcard-mask area area-id Optional Commands: Rtr(config-router)# default-information originate (Send default) Rtr(config-router)# area area authentication (Plain authen.) Rtr(config-router)# area area authentication message-digest (md5 authen.) Rtr(config)# interface loopback number (Configure lo as RtrID) Rtr(config)# interface type slot/port (int Fa0/0) Rtr(config-if)# ip ospf priority <0-255> (DR/BDR election) Rtr(config-if)# bandwidth kbps (Modify default bandwdth) RTB(config-if)# ip ospf cost cost (Modify inter. cost) Rtr(config-if)# ip ospf hello-interval seconds (Modify Hello) Rtr(config-if)# ip ospf dead-interval seconds (Modify Dead) Rtr(config-if)# ip ospf authentication-key passwd (Plain/md5authen) Rtr(config-if)# ip ospf message-digest-key key-id md5 password
  • 38. ROUTING & OSPF CCNA 3.0