SlideShare uma empresa Scribd logo
1 de 16
OSPF-Open Shortest Path First

                                Lecture 15
Агуулга

• OSPF Features
• OSPF and Distance Vector Routing Protocol Comparison
• Hierarchical Routing
• Shortest Path First Algorithm
• Single-Area OSPF Configuration
• Loopback Interfaces
• OSPF-ийн тохиргооны баталгаажуулалт
• OSPF-тохиргооны алдааг илрүүлэх
• Дүгнэлт
OSPF-ийн онцлог




 • Нээлттэй стандарт
 • Хамгийн богино замыг түрүүлж сонгох алгоритм (SPF)
 • Link-state routing protocol (vs. distance vector)
OSPF as a Link-State Protocol

• OSPF propagates link-state advertisements rather than routing
  table updates.
  – Link = router interface
  – State = description of an interface and its relationship to
    neighboring routers
• LSAs are flooded to all OSPF routers in the area.
• The OSPF link-state database is pieced together from the LSAs
  generated by the OSPF routers.
• OSPF uses the SPF algorithm to calculate the shortest path to a
  destination.
OSPF Hierarchical Routing




  • Consists of areas and autonomous systems
  • Minimizes routing update traffic
Shortest Path First Algorithm




• Places each router at the root of a tree and calculates the
  shortest path to each destination based on the cumulative cost
• Cost = 108/bandwidth (bps)
Configuring Single-Area OSPF


Router(config)# router ospf process-id

 • Defines OSPF as the IP routing protocol



Router(config-router)# network wildcard-mask area area-id

 • Assigns networks to a specific OSPF area
OSPF Configuration Example
Configuring Loopback Interfaces




Router ID
 • Number by which the router is known to OSPF
 • Default: The highest IP address on an active interface at the moment of OSPF
   process startup
 • Can be overridden by a loopback interface: Highest IP address of any active
   loopback interface
 • Can be set manually using the router-id command
Verifying the OSPF Configuration
    Router# show ip protocols

    • Verifies that OSPF is configured

    Router# show ip route

    • Displays all the routes learned by the router

Router# show ip route

Codes: I - IGRP derived, R - RIP derived, O - OSPF derived,
C - connected, S - static, E - EGP derived, B - BGP derived,
E2 - OSPF external type 2 route, N1 - OSPF NSSA external type 1 route,
N2 - OSPF NSSA external type 2 route

Gateway of last resort is 10.119.254.240 to network 10.140.0.0

O   E2 10.110.0.0 [160/5] via 10.119.254.6, 0:01:00, Ethernet2
E   10.67.10.0 [200/128] via 10.119.254.244, 0:02:22, Ethernet2
O   E2 10.68.132.0 [160/5] via 10.119.254.6, 0:00:59, Ethernet2
O   E2 10.130.0.0 [160/5] via 10.119.254.6, 0:00:59, Ethernet2
E   10.128.0.0 [200/128] via 10.119.254.244, 0:02:22, Ethernet2
.   . .
Verifying the OSPF Configuration (Cont.)

 Router# show ip ospf interface

 • Displays area ID and adjacency information


Router# show ip ospf interface ethernet 0

Ethernet 0 is up, line protocol is up
Internet Address 192.168.254.202, Mask 255.255.255.0, Area 0.0.0.0
AS 201, Router ID 192.168.99.1, Network Type BROADCAST, Cost: 10
Transmit Delay is 1 sec, State OTHER, Priority 1
Designated Router id 192.168.254.10, Interface address 192.168.254.10
Backup Designated router id 192.168.254.28, Interface addr 192.168.254.28
Timer intervals configured, Hello 10, Dead 60, Wait 40, Retransmit 5
Hello due in 0:00:05
Neighbor Count is 8, Adjacent neighbor count is 2
  Adjacent with neighbor 192.168.254.28 (Backup Designated Router)
  Adjacent with neighbor 192.168.254.10 (Designated Router)
Verifying the OSPF Configuration (Cont.)

 Router# show ip ospf neighbor

 • Displays OSPF neighbor information on a per-interface basis


Router# show ip ospf neighbor

ID Pri State Dead Time Address Interface
10.199.199.137 1 FULL/DR 0:00:31 192.168.80.37 Ethernet0
172.16.48.1 1 FULL/DROTHER 0:00:33 172.16.48.1 Fddi0
172.16.48.200 1 FULL/DROTHER 0:00:33 172.16.48.200 Fddi0
10.199.199.137 5 FULL/DR 0:00:33 172.16.48.189 Fddi0
Verifying the OSPF Configuration (Cont.)

Router# show ip ospf neighbor 10.199.199.137
Neighbor 10.199.199.137, interface address 192.168.80.37
In the area 0.0.0.0 via interface Ethernet0
Neighbor priority is 1, State is FULL
Options 2
Dead timer due in 0:00:32
Link State retransmission due in 0:00:04
Neighbor 10.199.199.137, interface address 172.16.48.189
In the area 0.0.0.0 via interface Fddi0
Neighbor priority is 5, State is FULL
Options 2
Dead timer due in 0:00:32
Link State retransmission due in 0:00:03

Router# show ip ospf neighbor detail
Neighbor 192.168.5.2, interface address 10.225.200.28
In the area 0 via interface GigabitEthernet1/0/0
Neighbor priority is 1, State is FULL, 6 state changes
DR is 10.225.200.28 BDR is 10.225.200.30
Options is 0x42
    LLS Options is 0x1 (LR), last OOB-Resync 00:03:08 ago
Dead timer due in 00:00:36
Neighbor is up for 00:09:46
Index 1/1, retransmission queue length 0, number of retransmission 1
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 1, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec
OSPF debug Commands


Router# debug ip ospf events

OSPF:hello with invalid timers on interface Ethernet0
hello interval received 10 configured 10
net mask received 255.255.255.0 configured 255.255.255.0
dead interval received 40 configured 30
Router# debug ip ospf packet

OSPF: rcv. v:2 t:1 l:48 rid:200.0.0.117
      aid:0.0.0.0 chk:6AB2 aut:0 auk:

Router# debug ip ospf packet

OSPF: rcv. v:2 t:1 l:48 rid:200.0.0.116
      aid:0.0.0.0 chk:0 aut:2 keyid:1 seq:0x0
Summary

• OSPF is an interior gateway protocol similar to IGRP, but based
  on link states rather than distance vectors.
• OSPF advertises information about each of its links rather than
  sending routing table updates like a distance vector protocol
  does.
• Hierarchical routing enables separation of a large internetwork
  into smaller internetworks, called areas.
• The SPF algorithm places each router at the root of a tree and
  calculates the shortest path to each destination based on the
  cumulative cost required to reach that destination.
Summary (Cont.)

• The router ospf command starts an OSPF routing process. The
  network command is used to associate addresses to an OSPF
  area.
• The interface loopback command is used to modify the OSPF
  router ID to a loopback address.
• Any one of a number of show commands can be used to display
  information about an OSPF configuration.
• The debug ip ospf events privileged EXEC command can be used
  to display information on OSPF-related events, such as
  adjacencies, flooding information, designated router selection,
  and SPF calculation.

Mais conteúdo relacionado

Mais procurados

Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
Kashif Latif
 

Mais procurados (20)

CCNA part 6 igrp,ospf,eigrp
CCNA part 6 igrp,ospf,eigrpCCNA part 6 igrp,ospf,eigrp
CCNA part 6 igrp,ospf,eigrp
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
RIP (routing information protocol)
RIP (routing information protocol)RIP (routing information protocol)
RIP (routing information protocol)
 
Migrating from OSPF to IS-IS by Philip Smith
Migrating from OSPF to IS-IS by Philip SmithMigrating from OSPF to IS-IS by Philip Smith
Migrating from OSPF to IS-IS by Philip Smith
 
EIGRP (enhanced interior gateway routing protocol)
EIGRP (enhanced interior gateway routing protocol)EIGRP (enhanced interior gateway routing protocol)
EIGRP (enhanced interior gateway routing protocol)
 
INTRODUCTION TO IOS AND CISCO ROUTERS
INTRODUCTION TO IOS AND CISCO ROUTERSINTRODUCTION TO IOS AND CISCO ROUTERS
INTRODUCTION TO IOS AND CISCO ROUTERS
 
EIGRP Default Route
EIGRP Default Route EIGRP Default Route
EIGRP Default Route
 
CCNA pptCCNA ppt Day 6
CCNA pptCCNA ppt Day 6CCNA pptCCNA ppt Day 6
CCNA pptCCNA ppt Day 6
 
Layer 3 redundancy hsrp
Layer 3 redundancy   hsrpLayer 3 redundancy   hsrp
Layer 3 redundancy hsrp
 
CCNA ppt Day 5
CCNA ppt Day 5CCNA ppt Day 5
CCNA ppt Day 5
 
Routing Protocol EIGRP
Routing Protocol EIGRPRouting Protocol EIGRP
Routing Protocol EIGRP
 
HSRP ccna
HSRP ccna HSRP ccna
HSRP ccna
 
Eigrp
EigrpEigrp
Eigrp
 
OSPF Internal Route Summarization
OSPF Internal Route SummarizationOSPF Internal Route Summarization
OSPF Internal Route Summarization
 
OSPF Authentication
OSPF AuthenticationOSPF Authentication
OSPF Authentication
 
OSPF Authentication
OSPF Authentication OSPF Authentication
OSPF Authentication
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
Route Redistribution
Route RedistributionRoute Redistribution
Route Redistribution
 
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)
 
CCNA - Routing & Switching Commands
CCNA - Routing & Switching CommandsCCNA - Routing & Switching Commands
CCNA - Routing & Switching Commands
 

Destaque

Өгөгдлийн бүтэц
Өгөгдлийн бүтэцӨгөгдлийн бүтэц
Өгөгдлийн бүтэц
Muuluu
 
1.1 windows server 2003
1.1 windows server 20031.1 windows server 2003
1.1 windows server 2003
Muuluu
 
2.1 users & groups
2.1 users & groups2.1 users & groups
2.1 users & groups
Muuluu
 
Лекц 10
Лекц 10Лекц 10
Лекц 10
Muuluu
 
Лекц 11
Лекц 11Лекц 11
Лекц 11
Muuluu
 
Лекц 13
Лекц 13Лекц 13
Лекц 13
Muuluu
 
2.1 user practical
2.1 user practical2.1 user practical
2.1 user practical
Muuluu
 
2.2 determining trust relationships
2.2 determining trust relationships2.2 determining trust relationships
2.2 determining trust relationships
Muuluu
 
1.2 ad installation
1.2 ad installation1.2 ad installation
1.2 ad installation
Muuluu
 
Dns server
Dns serverDns server
Dns server
Muuluu
 
1.2 active directory
1.2 active directory1.2 active directory
1.2 active directory
Muuluu
 
Лекц 14
Лекц 14Лекц 14
Лекц 14
Muuluu
 
User account policy
User account policyUser account policy
User account policy
Muuluu
 
Switch function
Switch functionSwitch function
Switch function
Muuluu
 
Basic software
Basic software Basic software
Basic software
Muuluu
 
Лекц 12
Лекц 12Лекц 12
Лекц 12
Muuluu
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
Muuluu
 
9.эрэмбэлэлтийн аргууд
9.эрэмбэлэлтийн аргууд9.эрэмбэлэлтийн аргууд
9.эрэмбэлэлтийн аргууд
Bayalagmaa Davaanyam
 

Destaque (20)

Өгөгдлийн бүтэц
Өгөгдлийн бүтэцӨгөгдлийн бүтэц
Өгөгдлийн бүтэц
 
1.1 windows server 2003
1.1 windows server 20031.1 windows server 2003
1.1 windows server 2003
 
2.1 users & groups
2.1 users & groups2.1 users & groups
2.1 users & groups
 
Лекц 10
Лекц 10Лекц 10
Лекц 10
 
Лекц 11
Лекц 11Лекц 11
Лекц 11
 
Лекц 13
Лекц 13Лекц 13
Лекц 13
 
2.1 user practical
2.1 user practical2.1 user practical
2.1 user practical
 
2.2 determining trust relationships
2.2 determining trust relationships2.2 determining trust relationships
2.2 determining trust relationships
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
1.2 ad installation
1.2 ad installation1.2 ad installation
1.2 ad installation
 
Dns server
Dns serverDns server
Dns server
 
1.2 active directory
1.2 active directory1.2 active directory
1.2 active directory
 
Лекц 14
Лекц 14Лекц 14
Лекц 14
 
User account policy
User account policyUser account policy
User account policy
 
Switch function
Switch functionSwitch function
Switch function
 
Basic software
Basic software Basic software
Basic software
 
Лекц 12
Лекц 12Лекц 12
Лекц 12
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
9.эрэмбэлэлтийн аргууд
9.эрэмбэлэлтийн аргууд9.эрэмбэлэлтийн аргууд
9.эрэмбэлэлтийн аргууд
 

Semelhante a Лекц 15

Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
robertoxe
 
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
kecatem465
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
arpit
 

Semelhante a Лекц 15 (20)

Day 12 enabling ospf
Day 12 enabling ospfDay 12 enabling ospf
Day 12 enabling ospf
 
Icnd210 s04l01
Icnd210 s04l01Icnd210 s04l01
Icnd210 s04l01
 
Labs ospf
Labs ospfLabs ospf
Labs ospf
 
OSPF_multi.pdf
OSPF_multi.pdfOSPF_multi.pdf
OSPF_multi.pdf
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
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 by Abdullah Mukhtar
OSPF by Abdullah MukhtarOSPF by Abdullah Mukhtar
OSPF by Abdullah Mukhtar
 
Ospf
OspfOspf
Ospf
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
 
Ospf hassan jamal.ppt
Ospf hassan jamal.pptOspf hassan jamal.ppt
Ospf hassan jamal.ppt
 
OSPFv2 on IOS XR
OSPFv2 on IOS XROSPFv2 on IOS XR
OSPFv2 on IOS XR
 
acit mumbai - ospf rouitng
acit mumbai - ospf rouitng acit mumbai - ospf rouitng
acit mumbai - ospf rouitng
 
Allwyn ospf ppt
Allwyn ospf pptAllwyn ospf ppt
Allwyn ospf ppt
 
ospf-config.pdf
ospf-config.pdfospf-config.pdf
ospf-config.pdf
 
1cospf
1cospf1cospf
1cospf
 
1cospf
1cospf1cospf
1cospf
 
Cisco ospf
Cisco ospf Cisco ospf
Cisco ospf
 

Mais de Muuluu

Wide area networks
Wide area networksWide area networks
Wide area networks
Muuluu
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
Muuluu
 
Firewall
FirewallFirewall
Firewall
Muuluu
 
User practical
User practicalUser practical
User practical
Muuluu
 
Active directory
Active directoryActive directory
Active directory
Muuluu
 
Процессорын архитектур
Процессорын архитектурПроцессорын архитектур
Процессорын архитектур
Muuluu
 
6 network devices
6 network devices6 network devices
6 network devices
Muuluu
 
Бие даалт
Бие даалтБие даалт
Бие даалт
Muuluu
 
Лекц 16
Лекц 16Лекц 16
Лекц 16
Muuluu
 
Лекц 15
Лекц 15Лекц 15
Лекц 15
Muuluu
 
Лекц 14
Лекц 14Лекц 14
Лекц 14
Muuluu
 
Лекц 13
Лекц 13Лекц 13
Лекц 13
Muuluu
 
Лекц 12
Лекц 12Лекц 12
Лекц 12
Muuluu
 
Лекц 11
Лекц 11Лекц 11
Лекц 11
Muuluu
 
Switch configuration
Switch configurationSwitch configuration
Switch configuration
Muuluu
 

Mais de Muuluu (17)

Wide area networks
Wide area networksWide area networks
Wide area networks
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
 
Firewall
FirewallFirewall
Firewall
 
User practical
User practicalUser practical
User practical
 
Active directory
Active directoryActive directory
Active directory
 
Hardware
HardwareHardware
Hardware
 
windows server 2003
 windows server 2003 windows server 2003
windows server 2003
 
Процессорын архитектур
Процессорын архитектурПроцессорын архитектур
Процессорын архитектур
 
6 network devices
6 network devices6 network devices
6 network devices
 
Бие даалт
Бие даалтБие даалт
Бие даалт
 
Лекц 16
Лекц 16Лекц 16
Лекц 16
 
Лекц 15
Лекц 15Лекц 15
Лекц 15
 
Лекц 14
Лекц 14Лекц 14
Лекц 14
 
Лекц 13
Лекц 13Лекц 13
Лекц 13
 
Лекц 12
Лекц 12Лекц 12
Лекц 12
 
Лекц 11
Лекц 11Лекц 11
Лекц 11
 
Switch configuration
Switch configurationSwitch configuration
Switch configuration
 

Лекц 15

  • 1. OSPF-Open Shortest Path First Lecture 15
  • 2. Агуулга • OSPF Features • OSPF and Distance Vector Routing Protocol Comparison • Hierarchical Routing • Shortest Path First Algorithm • Single-Area OSPF Configuration • Loopback Interfaces • OSPF-ийн тохиргооны баталгаажуулалт • OSPF-тохиргооны алдааг илрүүлэх • Дүгнэлт
  • 3. OSPF-ийн онцлог • Нээлттэй стандарт • Хамгийн богино замыг түрүүлж сонгох алгоритм (SPF) • Link-state routing protocol (vs. distance vector)
  • 4. OSPF as a Link-State Protocol • OSPF propagates link-state advertisements rather than routing table updates. – Link = router interface – State = description of an interface and its relationship to neighboring routers • LSAs are flooded to all OSPF routers in the area. • The OSPF link-state database is pieced together from the LSAs generated by the OSPF routers. • OSPF uses the SPF algorithm to calculate the shortest path to a destination.
  • 5. OSPF Hierarchical Routing • Consists of areas and autonomous systems • Minimizes routing update traffic
  • 6. Shortest Path First Algorithm • Places each router at the root of a tree and calculates the shortest path to each destination based on the cumulative cost • Cost = 108/bandwidth (bps)
  • 7. Configuring Single-Area OSPF Router(config)# router ospf process-id • Defines OSPF as the IP routing protocol Router(config-router)# network wildcard-mask area area-id • Assigns networks to a specific OSPF area
  • 9. Configuring Loopback Interfaces Router ID • Number by which the router is known to OSPF • Default: The highest IP address on an active interface at the moment of OSPF process startup • Can be overridden by a loopback interface: Highest IP address of any active loopback interface • Can be set manually using the router-id command
  • 10. Verifying the OSPF Configuration Router# show ip protocols • Verifies that OSPF is configured Router# show ip route • Displays all the routes learned by the router Router# show ip route Codes: I - IGRP derived, R - RIP derived, O - OSPF derived, C - connected, S - static, E - EGP derived, B - BGP derived, E2 - OSPF external type 2 route, N1 - OSPF NSSA external type 1 route, N2 - OSPF NSSA external type 2 route Gateway of last resort is 10.119.254.240 to network 10.140.0.0 O E2 10.110.0.0 [160/5] via 10.119.254.6, 0:01:00, Ethernet2 E 10.67.10.0 [200/128] via 10.119.254.244, 0:02:22, Ethernet2 O E2 10.68.132.0 [160/5] via 10.119.254.6, 0:00:59, Ethernet2 O E2 10.130.0.0 [160/5] via 10.119.254.6, 0:00:59, Ethernet2 E 10.128.0.0 [200/128] via 10.119.254.244, 0:02:22, Ethernet2 . . .
  • 11. Verifying the OSPF Configuration (Cont.) Router# show ip ospf interface • Displays area ID and adjacency information Router# show ip ospf interface ethernet 0 Ethernet 0 is up, line protocol is up Internet Address 192.168.254.202, Mask 255.255.255.0, Area 0.0.0.0 AS 201, Router ID 192.168.99.1, Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State OTHER, Priority 1 Designated Router id 192.168.254.10, Interface address 192.168.254.10 Backup Designated router id 192.168.254.28, Interface addr 192.168.254.28 Timer intervals configured, Hello 10, Dead 60, Wait 40, Retransmit 5 Hello due in 0:00:05 Neighbor Count is 8, Adjacent neighbor count is 2 Adjacent with neighbor 192.168.254.28 (Backup Designated Router) Adjacent with neighbor 192.168.254.10 (Designated Router)
  • 12. Verifying the OSPF Configuration (Cont.) Router# show ip ospf neighbor • Displays OSPF neighbor information on a per-interface basis Router# show ip ospf neighbor ID Pri State Dead Time Address Interface 10.199.199.137 1 FULL/DR 0:00:31 192.168.80.37 Ethernet0 172.16.48.1 1 FULL/DROTHER 0:00:33 172.16.48.1 Fddi0 172.16.48.200 1 FULL/DROTHER 0:00:33 172.16.48.200 Fddi0 10.199.199.137 5 FULL/DR 0:00:33 172.16.48.189 Fddi0
  • 13. Verifying the OSPF Configuration (Cont.) Router# show ip ospf neighbor 10.199.199.137 Neighbor 10.199.199.137, interface address 192.168.80.37 In the area 0.0.0.0 via interface Ethernet0 Neighbor priority is 1, State is FULL Options 2 Dead timer due in 0:00:32 Link State retransmission due in 0:00:04 Neighbor 10.199.199.137, interface address 172.16.48.189 In the area 0.0.0.0 via interface Fddi0 Neighbor priority is 5, State is FULL Options 2 Dead timer due in 0:00:32 Link State retransmission due in 0:00:03 Router# show ip ospf neighbor detail Neighbor 192.168.5.2, interface address 10.225.200.28 In the area 0 via interface GigabitEthernet1/0/0 Neighbor priority is 1, State is FULL, 6 state changes DR is 10.225.200.28 BDR is 10.225.200.30 Options is 0x42 LLS Options is 0x1 (LR), last OOB-Resync 00:03:08 ago Dead timer due in 00:00:36 Neighbor is up for 00:09:46 Index 1/1, retransmission queue length 0, number of retransmission 1 First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0) Last retransmission scan length is 1, maximum is 1 Last retransmission scan time is 0 msec, maximum is 0 msec
  • 14. OSPF debug Commands Router# debug ip ospf events OSPF:hello with invalid timers on interface Ethernet0 hello interval received 10 configured 10 net mask received 255.255.255.0 configured 255.255.255.0 dead interval received 40 configured 30 Router# debug ip ospf packet OSPF: rcv. v:2 t:1 l:48 rid:200.0.0.117 aid:0.0.0.0 chk:6AB2 aut:0 auk: Router# debug ip ospf packet OSPF: rcv. v:2 t:1 l:48 rid:200.0.0.116 aid:0.0.0.0 chk:0 aut:2 keyid:1 seq:0x0
  • 15. Summary • OSPF is an interior gateway protocol similar to IGRP, but based on link states rather than distance vectors. • OSPF advertises information about each of its links rather than sending routing table updates like a distance vector protocol does. • Hierarchical routing enables separation of a large internetwork into smaller internetworks, called areas. • The SPF algorithm places each router at the root of a tree and calculates the shortest path to each destination based on the cumulative cost required to reach that destination.
  • 16. Summary (Cont.) • The router ospf command starts an OSPF routing process. The network command is used to associate addresses to an OSPF area. • The interface loopback command is used to modify the OSPF router ID to a loopback address. • Any one of a number of show commands can be used to display information about an OSPF configuration. • The debug ip ospf events privileged EXEC command can be used to display information on OSPF-related events, such as adjacencies, flooding information, designated router selection, and SPF calculation.