104
1 © 2002, Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID

Troubleshooting OSPF (RST-341 Igor Olarou)

  • Upload
    pohseng

  • View
    691

  • Download
    7

Embed Size (px)

Citation preview

Page 1: Troubleshooting OSPF (RST-341 Igor Olarou)

111© 2002, Cisco Systems, Inc. All rights reserved.Session NumberPresentation_ID

Page 2: Troubleshooting OSPF (RST-341 Igor Olarou)
Page 3: Troubleshooting OSPF (RST-341 Igor Olarou)

3© 2002, Cisco Systems, Inc. All rights reserved.RST-341

Troubleshooting OSPF

Session RST-341

Page 4: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 444RST-341

Agenda

• LSA Details• Troubleshooting Commands• Common Issues

Page 5: Troubleshooting OSPF (RST-341 Igor Olarou)

5© 2002, Cisco Systems, Inc. All rights reserved.RST-341

LSA Details

5

Page 6: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 666RST-341

LSA Type Review

TypeType LSALSA11 RouterRouter

22 NetworkNetwork

33 Summary NetworkSummary Network

44 Summary ASBRSummary ASBR

55 ExternalExternal

66 Group MembershipGroup Membership

77

9–119–11

NSSANSSA

External AttributesExternal Attributes

OpaqueOpaque88

Page 7: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 777RST-341

Common LSA Header

• Common LSA 20 byte header

LS AgeLS Age OptionsOptions LS TypeLS Type

Link State IDLink State IDAdvertising RouterAdvertising Router

LS Sequence NumberLS Sequence Number

LS ChecksumLS Checksum LengthLength

Page 8: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 888RST-341

Different Types of LSAs

• Sample Network for each LSA

3

192.1.1.0

1

192.1.4.0

2

8

192.1.2.0

192.1.3.0

Area 0

18.10.0.4

R7

Router ID 7.7.7.7

140.10.0.0

8

21

8

4

Area 1

R3

R4

R1

R2

Area 2 NSSA

R5

R6 External RouteExternal Route

R820.10.0.0

18.10.0.12

18.10.0.8

18.10.0.16

Virtual Link

Page 9: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 999RST-341

Router LSA Details

• Router LSA (Type 1)Describes the state and cost of the router’s links to the areaAll of the router’s links in an area must be described in a single LSAFlooded throughout the particular area and no moreRouter indicates whether it is an ASBR, ABR, or end point of virtual link

Page 10: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 101010RST-341

Router LSA of R3 for Area 1

192.1.1.4

192.1.1.3Area 0

DR

R4

R3

R3#show ip ospf database router 3.3.3.3Router Link States (Area 1)

LS age = 0 Always 0 at originationOptions = (E-bit)LS type = 1 This is a router LSALink State ID = 3.3.3.3 Router ID of R3Advertising Router = 3.3.3.3 Router ID of R3It is an area border router bit B = 1# links = 2

Link ID = 192.1.1.4 IP address of the DRLink Data = 192.1.1.3 Interface address of this routerType = 2 This is a transit network# TOS metrics = 0metric = 1 Cost to reach the interfaceLink ID = 192.1.4.0 IP network numberLink Data = 255.255.255.0 Subnet mask of the interfaceType = 3 Stub network# TOS metrics = 0metric = 2

1

2

192.1.4.0/24

Page 11: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 111111RST-341

Router LSA of R3 for Area 0 (Cont.)Router Link States (Area 0)

LS age = 0Options = (E-bit)LS type = 1Link State ID = 3.3.3.3Advertising Router = 3.3.3.3It is an area border router bit B = 1# links = 2

Link ID = 6.6.6.6 Router id of the neighborLink Data = 18.10.0.5 IP interface address of the router Type = 1 This is a point-to-point link# TOS metrics = 0metric = 8Link ID = 18.10.0.4 IP subnet addressLink Data = 255.255.255.252 Subnet maskType = 3 This is a stub link# TOS metrics = 0metric = 8

192.1.1.3Area 0

R3

DR

R41

192.1.1.4

192.1.4.0/24

8

18.10.0.5/30 6.6.6.6

2 R6

Page 12: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 121212RST-341

Router LSA Details

TypeType DescriptionDescription Link IDLink ID Link DataLink Data

11 Point-to-PointPoint-to-PointNumberedNumbered

Neighbors’Neighbors’RIDRID

Interface IPInterface IPAddressAddress

11 Point-to-PointPoint-to-PointUnnumberedUnnumbered

Neighbors’Neighbors’RIDRID

MIB-II MIB-II IfindexIfindexValueValue

22 TransitTransit IP AddressIP Addressof the DRof the DR

Interface IPInterface IPAddressAddress

33 StubStub IP NetworkIP NetworkNumberNumber Subnet MaskSubnet Mask

44 Virtual LinkVirtual Link Neighbors’Neighbors’RIDRID

Interface IPInterface IPAddressAddress

Page 13: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 131313RST-341

Network LSA

• Network LSA (Type 2)Generated for every transit broadcast and NBMA networkDescribes all the routers attached to the networkOnly the designated router originates this LSAFlooded throughout the area and no more

Page 14: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 141414RST-341

Network LSA for 192.1.1.0

192.1.1.3

R46.6.6.6

R3

192.1.1.4

/241

2

8

R6

Area 0

R3#show ip ospf database network 192.1.1.4Network Link States (Area 1)

LS age = 948Options = (E-bit)LS type = 2Link State ID = 192.1.1.4 IP interface address of DRAdvertising Router = 4.4.4.4 RID of DRNetwork Mask = 255.255.255.0

Attached Router = 4.4.4.4Attached Router = 3.3.3.3 RID of attached routers FULL with the DRAttached Router = 2.2.2.2Attached Router = 1.1.1.1 DR 4.4.4.4

1.1.1.1

R12.2.2.2

R218.10.0.4/32

192.1.4.0/24

Page 15: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 151515RST-341

Summary LSA

• Describes the destination outside the area but still in the AS

• Summary is created for one area, which is flooded out in all other areas

• Originated by an ABR• Only intra-area routes are advertised

into the backbone • Type 4 is the information about

the ASBR

Page 16: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 161616RST-341

Type 3 Details

R4#show ip ospf database summary 192.1.2.0Summary Net Link States (Area 0)

LS age = 1514Options = (E-bit)LS type = 3Link State ID = 192.1.2.0 IP network numberAdvertising Router = 4.4.4.4 RID of ABRNetwork Mask = 255.255.255.0metric = 4

Area 0

18.10.0.4

6.6.6.6

2

8

8

192.1.2.0/24 metric 4

O IA

R4

R6

ABR

ABR

192.1.1.3

192.1.4.0/24

R3

192.1.1.41.1.1.1

2.2.2.2

R2

R13

DR192.1.2.0/24

/24

1

Page 17: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 171717RST-341

Type 4 DetailsR4#show ip ospf database asbr-summary 7.7.7.7

Summary ASB Link States (Area 0)LS age = 1548Options = (E-bit)LS type = 4Link State ID = 7.7.7.7 RID of ASBRAdvertising Router = 4.4.4.4 RID of ABRNetwork Mask = 0.0.0.0metric = 16

1.1.1.1

2.2.2.2

R2

192.1.2.0/24R1

R3Area 0

8

8R4

140.10.0.0

R7

RID ASBR 7.7.7.7

8

R3

ABRType 4 Summary

2

6.6.6.6

R6

192.1.1.3

192.1.1.4

External RouteExternal RouteDR

3

/24

1

18.10.0.4

192.1.4.0/24

Page 18: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 181818RST-341

External LSA

• External LSA (Type 5)Defines routes to destination external to the ASDefault route is also sent as externalTwo types of external LSA:

E1: Consider the total cost up to the external destination

E2: Considers only the cost of the outgoing interface to the external destination

Page 19: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 191919RST-341

External LSAExternal Type 1

Cost = 10

R1

R2

Cost = 8

To N1External Cost = 1

R3 To N1External Cost = 2

NetworkN1N1

NetworkN1N1

Metric1110

Metric1110

Next HopR1R2

Next HopR1R2 Selected Route

Page 20: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 202020RST-341

External LSAExternal Type 2

Cost = 10

R1

R2

Cost = 8

To N1External Cost = 1

R3 To N1External Cost = 2

NetworkN1N1

NetworkN1N1

Metric12

Metric12

Next HopR1R2

Next HopR1R2

Selected Route

Page 21: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 212121RST-341

Type 5 DetailsR4#show ip ospf database external 140.10.0.0LS age = 1156Options = (E-bit)LS type = 5Link State ID = 140.10.0.0 IP network numberAdvertising Router = 7.7.7.7 Router ID of R7Network Mask = 255.255.0.0Metric Type: 2 bit E = 1 -> O E2 (Default)metric = 20 The metric is 20 in all redistributed E2 routesForwarding address = 0.0.0.0 Traffic should be forwarded to the ASBR

1.1.1.1

Area 0

R2

R4R1

R7

RID ASBR 7.7.7.7

8

R3 2 18.10.0.4

6.6.6.6192.1.1.3

192.1.1.4

2.2.2.2

/241

8

140.10.0.0External RouteExternal Route

4

R6

DR3

192.1.2.0/24

External Type 5192.1.4.0/24

Page 22: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 222222RST-341

Type 5 Details

• Forwarding addressMust be known via intra or inter area route

ASBRASBRASBRASBRRest of the OSPF Network

router ospf 1 redistribute rip subnets

RIP Between the Routers

OSPF Is Enabled on This Interface

Page 23: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 232323RST-341

Type 5 Details

• Forwarding addressMust be known via intra or inter area route

router ospf 1 redistribute rip subnets

RIP Between the Routers

ASBRASBRRest of the OSPF Network

OSPF Is Enabled on This Interface

Page 24: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 242424RST-341

Forwarding Address (Type 5)

• When will it set to non-zero?OSPF is enabled on the ASBR’s next hop interface &&The ASBR's next hop interface is non-passive to OSPF &&The ASBR's next hop interface network-type is NOT p2p or p2mp && The ASBR's next hop interface address falls into OSPF network range

Page 25: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 252525RST-341

NSSA External LSA

• NSSA External LSA (Type 7) RFC1587NSSA was created to inject external routes from stub area into OSPF domainRedistribution in NSSA creates Type 7 LSAGenerated by the NSSA ASBRType 7 can only exist in NSSA areaNSSA ABR does the translation from 7–5

Page 26: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 262626RST-341

Type 7 DetailsR7#show ip ospf database nssa-external 140.10.0.0LS age = 1213Options = (No TOS-capability, No Type 7/5 translation, DC)LS type = 7Link State ID = 140.10.0.0 IP network numberAdvertising Router = 7.7.7.7 Router ID of R7(NSSA ASBR)Network Mask = 255.255.0.0bit P = 0 P = 0 -> This router is an NSSA ABR+ASBR

P = 1 -> This router is an NSSA ASBRmetric = 20Forwarding address = 0.0.0.0 Traffic should be forwarded to the ASBR

1.1.1.1

Area 0

R2

192.1.2.0/24

DR

R4R1

8

R3 2 18.10.0.4

6.6.6.6192.1.1.3

192.1.1.4

2.2.2.2

/241

83 140.10.0.0

External RouteExternal Route

4

NSSA

RID ASBR 7.7.7.7

R7Type 7R6

192.1.4.0/24

Page 27: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 272727RST-341

Forwarding Address (Type7)

• When will it set to non-zero?OSPF is enabled on the ASBR’s next hop interface &&The ASBR's next hop interface is non-passive to OSPF &&The ASBR's next hop interface network-type is NOT p2p or p2mp && The ASBR's next hop interface address falls into OSPF network range If the above are true then we set the fwd_addr to the next_hop addr, otherwise

Use one of the loop backs (if it's up and OSPF is enabled) in the area we're announcing toIf no loop backs in that area, use the address of the first interface in that area

Page 28: Troubleshooting OSPF (RST-341 Igor Olarou)

28© 2002, Cisco Systems, Inc. All rights reserved.RST-341

Troubleshooting Commands

28

Page 29: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 292929RST-341

Show IP OSPFR3#show ip ospfRouting Process "ospf 1" with ID 3.3.3.3 and Domain ID 0.0.0.1Supports only single TOS(TOS0) routesSupports opaque LSAIt is an area border routerSPF schedule delay 5 secs, Hold time between two SPFs 10 secsMinimum LSA interval 5 secs. Minimum LSA arrival 1 secsNumber of external LSA 1. Checksum Sum 0x3B57Number of opaque AS LSA 0. Checksum Sum 0x0Number of DCbitless external and opaque AS LSA 0Number of DoNotAge external and opaque AS LSA 0Number of areas in this router is 2. 2 normal 0 stub 0 nssaExternal flood list length 0

Area BACKBONE(0)Number of interfaces in this area is 2Area has no authenticationSPF algorithm executed 2773 timesArea ranges areNumber of LSA 17. Checksum Sum 0x686B5Number of opaque link LSA 0. Checksum Sum 0x0Number of DCbitless LSA 0Number of indication LSA 0Number of DoNotAge LSA 9Flood list length 0

Page 30: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 303030RST-341

Show IP OSPF (Cont.)

. . .Area 1

Number of interfaces in this area is 2Area has no authenticationSPF algorithm executed 22 timesArea ranges areNumber of LSA 19. Checksum Sum 0x8FE73Number of DCbitless LSA 0Number of indication LSA 0Number of DoNotAge LSA 0Flood list length 0

Page 31: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 313131RST-341

Show IP OSPF Database

R3#show ip ospf database

OSPF Router with ID (3.3.3.3) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count3.3.3.3 3.3.3.3 106 0x80000009 0xC3F1 3. . .

Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum18.10.0.0 7.7.7.7 3 (DNA) 0x80000008 0x3DC2 18.10.0.0 8.8.8.8 1396 0x80000004 0x27D8 . . .

Router Link States (Area 1)

Link ID ADV Router Age Seq# Checksum Link count1.1.1.1 1.1.1.1 671 0x80000016 0xE6CD 2. . .

Page 32: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 323232RST-341

Show IP OSPF Database Database-Summary

R3#show ip ospf database database-summary

OSPF Router with ID (3.3.3.3) (Process ID 1)

Area 0 database summaryLSA Type Count Delete MaxageRouter 6 0 0Network 4 0 0Summary Net 10 0 0Summary ASBR 0 0 0Type-7 Ext 0 0 0Opaque Link 0 0 0Opaque Area 0 0 0Subtotal 20 0 0

Area 1 database summaryLSA Type Count Delete MaxageRouter 4 0 0 Network 1 0 0 Summary Net 10 0 0 Summary ASBR 4 0 0

. . .

Page 33: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 333333RST-341

Show IP OSPF Neighbor

R3#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface1.1.1.1 1 FULL/DROTHER 00:00:33 192.1.1.1 FastEthernet0/02.2.2.2 1 FULL/DROTHER 00:00:32 192.1.1.2 FastEthernet0/04.4.4.4 1 FULL/DR 00:00:39 192.1.1.4 FastEthernet0/06.6.6.6 1 FULL/ - 00:00:38 18.10.0.6 Serial0/0R3#

192.1.1.3

R46.6.6.6

R3

192.1.1.4

/241

2

8

R6

Area 0

DR 4.4.4.41.1.1.1

R12.2.2.2

R2 18.10.0.4

192.1.4.0/24

Page 34: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 343434RST-341

OSPF Log-Adjacency-Changes

• Default as of 12.1.3 and 12.0.12SR3#config terminalR3(config)#router ospf 1R3(config-router)#log-adjacency-changes%OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on FastEthernet0/0 from 2WAY to DOWN, Neighbor Down: Interface down or detached%OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on FastEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached%OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on FastEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached%OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on OSPF_VL0 from FULL to DOWN, Neighbor Down: Interface down or detached%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up%OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on FastEthernet0/0 from LOADING to FULL, Loading Done%OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on FastEthernet0/0 from LOADING to FULL, Loading Done%OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on OSPF_VL0 from LOADING to FULL, Loading Done

Page 35: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 353535RST-341

Show IP OSPF Neighbor DetailR3#show ip ospf neighbor detailNeighbor 1.1.1.1, interface address 192.1.1.1

In the area 1 via interface FastEthernet0/0 Neighbor priority is 1, State is 2WAY, 2 state changesDR is 192.1.1.4 BDR is 192.1.1.2Options is 0x2Dead timer due in 00:00:39Neighbor is up for 00:06:30Index 0/0, retransmission queue length 0, number of retransmission 0First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)Last retransmission scan length is 0, maximum is 0Last retransmission scan time is 0 msec, maximum is 0 msec

Neighbor 2.2.2.2, interface address 192.1.1.2In the area 1 via interface FastEthernet0/0 Neighbor priority is 1, State is FULL, 6 state changesDR is 192.1.1.4 BDR is 192.1.1.2Options is 0x42Dead timer due in 00:00:38Neighbor is up for 00:06:31Index 2/2, retransmission queue length 0, number of retransmission 0First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)Last retransmission scan length is 0, maximum is 0Last retransmission scan time is 0 msec, maximum is 0 msec

Page 36: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 363636RST-341

Show IP OSPF Interface

R3#show ip ospf interfaceFastEthernet0/0 is up, line protocol is up

Internet Address 192.1.1.3/24, Area 1 Process ID 1, Router ID 3.3.3.3, Network Type BROADCAST, Cost: 1Transmit Delay is 1 sec, State DROTHER, Priority 1 Designated Router (ID) 4.4.4.4, Interface address 192.1.1.4Backup Designated router (ID) 2.2.2.2, Interface address 192.1.1.2Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

Hello due in 00:00:03Index 1/1, flood queue length 0Next 0x0(0)/0x0(0)Last flood scan length is 0, maximum is 5Last flood scan time is 0 msec, maximum is 0 msecNeighbor Count is 3, Adjacent neighbor count is 2

Adjacent with neighbor 2.2.2.2 (Backup Designated Router)Adjacent with neighbor 4.4.4.4 (Designated Router)

Suppress hello for 0 neighbor(s)

Page 37: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 373737RST-341

Show IP OSPF Virtual-Links

R3#show ip ospf virtual-linksVirtual Link OSPF_VL0 to router 4.4.4.4 is up

Run as demand circuitDoNotAge LSA allowed.Transit area 1, via interface FastEthernet0/0, Cost of using 1Transmit Delay is 1 sec, State POINT_TO_POINT,Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

Hello due in 00:00:09Adjacency State FULL (Hello suppressed)Index 1/3, retransmission queue length 0, number of retransmission 1First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)Last retransmission scan length is 1, maximum is 1Last retransmission scan time is 0 msec, maximum is 0 msec

R3#

Page 38: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 383838RST-341

R3#sh ip ospf stat Area 0: SPF algorithm executed 42 timesArea 1: SPF algorithm executed 38 times

SPF calculation timeDelta T Intra D-Intra Summ D-Summ Ext D-Ext Total Reason00:22:00 0 0 0 0 0 0 0 R, N, SN, 00:21:44 0 0 4 0 0 0 4 R, SN, X00:21:34 0 0 4 0 0 0 4 R, SN, X00:21:24 0 0 0 4 0 0 4 R, SN, X00:21:14 0 0 0 0 0 0 0 R, 00:21:04 0 0 0 0 0 0 0 R, N, SN, 00:20:54 0 0 0 0 0 0 0 X00:20:44 0 0 4 0 0 0 4 R, SN, X00:20:34 0 0 0 0 0 0 0 X00:00:17 4 0 0 0 0 0 4 R, N, SN, SA, X. . .R=Router LSA; N=NetworkLSA; SN=Summary Network LSA; SA=Summary ASBR LSA; X=External LSA

Show IP OSPF Stat

• Requires enable mode

Page 39: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 393939RST-341

Show IP OSPF Borders

R3#show ip ospf borders-routersOSPF Process 1 internal Routing Table

Codes: i - Intra-area route, I - Inter-area route

i 4.4.4.4 [1] via 192.1.1.4, FastEthernet0/0, ABR, Area 0, SPF 42i 4.4.4.4 [1] via 192.1.1.4, FastEthernet0/0, ABR, Area 1, SPF 38i 8.8.8.8 [10] via 18.10.0.6, Serial0/0, ABR/ASBR, Area 0, SPF 42i 7.7.7.7 [17] via 192.1.1.4, FastEthernet0/0, ABR/ASBR, Area 0, SPF 42

Page 40: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 404040RST-341

Other Show Commands

R3#show ip ospf database self-originateOSPF Router with ID (3.3.3.3) (Process ID 1)

Router Link States (Area 0)Link ID ADV Router Age Seq# Checksum Link count3.3.3.3 3.3.3.3 1520 0x80000015 0xABFD 2

Summary Net Link States (Area 0)Link ID ADV Router Age Seq# Checksum192.1.1.0 3.3.3.3 1520 0x80000006 0x4E1A 192.1.2.0 3.3.3.3 1521 0x80000006 0x6103 . . .

Router Link States (Area 1)Link ID ADV Router Age Seq# Checksum Link count3.3.3.3 3.3.3.3 1536 0x80000028 0x612D 2

Page 41: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 414141RST-341

Other Show Commands (Cont.)

R3#show ip ospf database adv-router 7.7.7.7OSPF Router with ID (3.3.3.3) (Process ID 1)

Router Link States (Area 0)Link ID ADV Router Age Seq# Checksum Link count7.7.7.7 7.7.7.7 871(DNA) 0x8000000D 0x8FE2 2

Summary Net Link States (Area 0)Link ID ADV Router Age Seq# Checksum20.10.0.0 7.7.7.7 871 (DNA) 0x8000000A 0x39C4

Type-5 AS External Link StatesLink ID ADV Router Age Seq# Checksum Tag140.100.0.0 7.7.7.7 1944 0x80000004 0x3759 0

Page 42: Troubleshooting OSPF (RST-341 Igor Olarou)

42© 2002, Cisco Systems, Inc. All rights reserved.RST-341

Common Issues

42

Page 43: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 434343RST-341

Common Issues

• Adjacency is not coming up• OSPF neighbor stuck in ? state• Information is in the DB but not in the RT• SPF running constantly• CPU hogs problem• Neighbor flapping (Frame Relay)• NSSA ABR not translating Type 7 LSA• Demand circuit problems

Page 44: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 444444RST-341

Adjacency Is Not Coming Up

• Useful commands for this problemShow IP OSPF neighborShow IP OSPF interfaceDebug IP OSPF adjacency

Page 45: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 454545RST-341

Adjacency Is Not Coming Up

• Layer 2 is down

R3#show ip ospf neighborR3#

R3#show ip ospf interface serial 2Serial2 is down, line protocol is downInternet Address 18.10.0.3/30, Area 0 Process ID 1, Router ID 3.3.3.3, Network Type POINT_TO_POINT, Cost: 64Transmit Delay is 1 sec, State DOWN,Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

Page 46: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 464646RST-341

Adjacency Is Not Coming Up

• OSPF not enabled on the interfaceR3#show ip ospf neighborR3#

R3#show ip ospf interface serial 2Serial2 is up, line protocol is up

OSPF not enabled on this interface

In 12.0:

R3#show ip ospf interface serial 2R3#

Tip: Check for the wrong network statementre-enter the network statement

Page 47: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 474747RST-341

Adjacency Is Not Coming Up

• Interface is defined as passive

R3#show ip ospf neighborR3#

R3#show ip ospf interface e0Ethernet0 is up, line protocol is up Internet Address 192.1.1.3/24, Area 1 Process ID 1, Router ID 3.3.3.3, Network Type BROADCAST, Cost: 10Transmit Delay is 1 sec, State DR, Priority 1 Designated Router (ID) 192.1.1.4, Interface address 192.1.1.3No backup designated router on this networkTimer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5No Hellos (Passive interface)

Page 48: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 484848RST-341

Adjacency Is Not Coming Up

• Mismatched subnet mask

R3#show ip ospf neighborR3#

R3#debug ip ospf adjOSPF adjacency events debugging is onR3#OSPF: Mismatched hello parameters from 192.1.1.4Dead R 40 C 40, Hello R 10 C 10 Mask R 255.255.255.192 C 255.255.255.0

Page 49: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 494949RST-341

Adjacency Is Not Coming Up

• Mismatched hello/dead interval

R3#show ip ospf neighborR3#

R3#debug ip ospf adjOSPF adjacency events debugging is onR3#OSPF: Mismatched hello parameters from 192.1.1.4Dead R 40 C 40, Hello R 15 C 10 Mask R 255.255.255.0 C 255.255.255.0

R4(config-if)#interface ethernet 0R4(config-if)#no ip ospf hello-interval 15

Tip: Default is 10 second on LAN

Page 50: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 505050RST-341

Adjacency Is Not Coming Up

• Mismatched authentication key

R3#show ip ospf neighborR3#

R3#debug ip ospf adjOSPF adjacency events debugging is onR3#OSPF: Rcv pkt from 192.1.1.4, Ethernet0 : Mismatch Authentication Key -Clear Text

Tip: Watch for the “space” at the end of the Authentication key

Page 51: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 515151RST-341

Adjacency Is Not Coming Up

• Mismatched area IDR4#show ip ospf neighborR4#

R4#debug ip ospf adjOSPF adjacency events debugging is on

OSPF: Rcv pkt from 192.1.1.4, Ethernet0, area 0.0.0.1 mismatch area 0.0.0.2 in the header

Neighbor is in area 2 but we are not:

%OSPF-4-ERRRCV: Received invalid packet: mismatch area ID, from backbone area must be virtual-link but not found from 192.1.1.4, Ethernet0

Page 52: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 525252RST-341

Adjacency Is Not Coming Up

• Mismatched transit/stub/NSSA option7.7.7.7 8.8.8.8

area 2 area 2 nssa

18.10.0.218.10.0.1

R8R7

R7#show ip ospf neighborR7#

R7#debug ip ospf adjOSPF adjacency events debugging is on

OSPF: Hello from 18.10.0.2 with mismatched Stub/Transit area option bit

Page 53: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 535353RST-341

Options

Normal area: OSPF: Send DBD to 141.108.97.1 on Serial0 seq 0xBC4 opt 0x2 flag 0x3 len 492E bit is 1, Allow externals, option: 0x2(HEX) = 00000010(Bin)

Stub area: OSPF: Send DBD to 141.108.97.1 on Serial0 seq 0x1866 opt 0x0 flag 0x3 len 372

E bit is 0, no external allowed, options: 0x0 = 00000000

NSSA: OSPF: Send DBD to 141.108.97.1 on Serial0 seq 0x118 opt 0x8 flag 0x3 len 372

N/P bit is on, options: 0x8 = 00001000

DC: OSPF: Send DBD to 141.108.97.1 on Serial0 seq 0x1A1E opt 0x20 flag 0x3 len 392

DC bit is negotiated, options: 0x20 = 00100000

* *DC EA N/P MC EO

Page 54: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 545454RST-341

OSPF Neighbor Stuck in ? State

• Useful commands for this problemShow IP OSPF neighborDebug IP OSPF adjacency

Page 55: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 555555RST-341

Stuck in ATTEMPT

RID =6.6.6.6

N = 3.3.3.3

Hello

3.3.3.3 6.6.6.6

RID =3.3.3.3Hello

R3 R6NBMA

Page 56: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 565656RST-341

Stuck in ATTEMPT

• Reasons:Our hellos are getting lost in NBMA cloudNeighbor hellos are getting lost in NBMA cloudWe received neighbor’s hello but rejects it for some reason Mis-configured neighbor statementBroken Unicast

Page 57: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 575757RST-341

Stuck in INIT 1.1.1.1

R1

2.2.2.2

R2

RID =1.1.1.1Hello

RID =2.2.2.2Hello

RID =1.1.1.1Hello

N =2.2.2.2

RID =2.2.2.2Hello

Page 58: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 585858RST-341

Stuck in INIT

• Reasons:One side is blocking the hello packet with access-listOne side is translating (NAT) ospf helloOne side multicast capabilities is broken (Layer 2)Dialer map or frame-relay map is missing keyword ‘broadcast’

Page 59: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 595959RST-341

Stuck In 2-WAY 1.1.1.1 2.2.2.2

RID =1.1.1.1 P=0Hello

RID =1.1.1.1 P=0Hello

N =2.2.2.2

R2R1

RID =2.2.2.2 P=0Hello

N =1.1.1.1

Page 60: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 606060RST-341

Stuck in 2-WAY

• Reasons:This is normal in broadcast network typesThis is to reduce the amount of flooding on the wireProblem can happen if all the router are configured with priority equal to ‘0’Only low end routers should be configured with priority 0 so they don’t participate in DR election

Page 61: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 616161RST-341

Stuck in EXSTART/EXCHANGE3.3.3.3 6.6.6.6

RID =3.3.3.3 Hello R6R3

RID =6.6.6.6 Hello

N =3.3.3.3

MTU = 1500 flag = 0x7DBD

Seq = 1E55

MTU = 1500 flag = 0x7DBD

Seq = 22AB

Page 62: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 626262RST-341

Stuck in EXSTART/EXCHANGE

• Useful in debugging, defines I, M and MS bitsOSPF: Send DBD to 141.108.97.1 on Serial0 seq 0xBC4 opt 0x2 flag 0x3len 492 Flag 0x7--> 111 means I(Initial) = 0, M = 1(More), MS = 1(Master)Flag 0x6 --> 110 not possibleFlag 0x5 --> 101 not possibleFlag 0x4 --> 100 not possibleFlag 0x3 --> 011 means master has more data to sendFlag 0x2 --> 010 means slave has more data to sendFlag 0x1 --> 001 means master has no more data left to sendFlag 0x0 --> 000 means slave has no more data left to send

0 00 0 I M MS0

Page 63: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 636363RST-341

Stuck in EXSTART/EXCHANGE

• Reasons:MTU mismatch

Note: If IOS is < 12.0.3 neighbor will show stuck in EXCHANGENeighbor RID is same as ours.

Note: If IOS is > 12.0.7, it displays msg: %OSPF-3-DUP_RTRID & OSPF neighbor list will be empty

Unicast is brokena. Wrong VC/DLCi mapping in frame/ATM environment in highly

redundant networkb. MTU problem, can’t ping across with more than certain length packet c. Access-list blocking unicast; after 2-way OSPF send unicast packet

except p2p linksd. NAT is translating unicast packet

Between PRI and BRI/dialer and network type is p2p

Page 64: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 646464RST-341

Stuck in LOADING

3.3.3.3 6.6.6.6

R6R3

LS Type

LS Req

Link State ID

Advertising Router

# LSAsLS Update

LSAs. . .

Page 65: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 656565RST-341

Stuck in LOADING

• Reasons:LS request is being made and neighbor is sending bad packet or mem corrupt

a. Do show IP OSPF bad to see bad lsa b. Show log will show

OSPF-4-BADLSATYPE msgLS request is being made and neighbor is ignoring the requestMTU mismatch problem (RFC 1583 and 2178 compatibility issue)

Page 66: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 666666RST-341

Stuck in LOADING3.3.3.3 6.6.6.6

LS TypeLS Req

Link State ID

Advertising Router

# LSAs

LS Update

LSAs

. . .

MTU = 2048

IOS 11.3.10T

RFC 1583

Too Big!

MTU = 4470

IOS 12.0.7T

RFC 2178

R3 R6

Page 67: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 676767RST-341

Information Is in the DBBut Not in the RT

• Useful commands for this problem Show IP OSPF interface <interface>Show IP OSPF database <x>Where ‘x’ can be router, network, summary, summary-asbr, external, nssa

Page 68: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 686868RST-341

Mismatched Network Types

Area 0Area 0

R3R3

3.3.3.33.3.3.3 6.6.6.66.6.6.6

R3#show ip ospf interface serial 0R3#show ip ospf interface serial 0Serial0 is up, line protocol is upSerial0 is up, line protocol is upInternet Address 18.0.0.5/30, Area 0Internet Address 18.0.0.5/30, Area 0Process ID 1, Router ID 3.3.3.3, Network Type Process ID 1, Router ID 3.3.3.3, Network Type POINT_TO_POINTPOINT_TO_POINT, Cost: 64, Cost: 64

R3#show ip ospf neighborR3#show ip ospf neighbor

Neighbor ID Pri Neighbor ID Pri StateState Dead Time Address Interface Dead Time Address Interface 6.6.6.6 1 6.6.6.6 1 FULL/FULL/ -- 00:00:30 18.0.0.6 Serial000:00:30 18.0.0.6 Serial0

R6#show ip ospf interface serial 0R6#show ip ospf interface serial 0Serial0 is up, line protocol is upSerial0 is up, line protocol is upInternet Address 18.0.0.6/30, Area 0Internet Address 18.0.0.6/30, Area 0Process ID 1, Router ID 6.6.6.6, Network Type Process ID 1, Router ID 6.6.6.6, Network Type BROADCASTBROADCAST, Cost: 64, Cost: 64

R6R618.10.0.4/3018.10.0.4/30

Page 69: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 696969RST-341

Mismatched Network Types (Cont.)

R618.10.0.4/30

Area 0

R3

3.3.3.3 6.6.6.6

R3#show ip ospf database router 3.3.3.3. . .

Link ID = 6.6.6.6 Router id of the neighborLink Data = 18.10.0.5 IP interface address Type = 1 This is a point-to-point link# TOS metrics = 0metric = 8

. . .R3#show ip ospf database router 6.6.6.6. . .

Link ID = 18.10.0.6 IP address of the DRLink Data = 18.10.0.6 Interface addressType = 2 This is a transit link# TOS metrics = 0metric = 8

Page 70: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 707070RST-341

Point-to-Point Numbered and Unnumbered Links

R3#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface 6.6.6.6 1 FULL/ - 00:00:30 18.0.0.6 Serial0

R3#show interface serial0Serial0 is up, line protocol is up Hardware is HD64570 Interface is unnumbered.Using address of Ethernet1 (192.1.4.1)

R6#show interface serial0Serial0 is up, line protocol is up Hardware is HD64570 Internet address is 18.10.0.6/30

Area 0

R3

3.3.3.3

R6

6.6.6.6

18.10.0.4/30

192.1.4.1

Page 71: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 717171RST-341

Point-to-Point Numbered and Unnumbered Links (Cont.)

R6

Area 0

R3

3.3.3.3 6.6.6.6

R3#show ip ospf database router 3.3.3.3. . .

Link ID = 6.6.6.6 Router id of the neighborLink Data = 0.0.0.5 MIBII IfIndex Value Type = 1 This is a point-to-point link# TOS metrics = 0metric = 8

. . .R3#show ip ospf database router 6.6.6.6. . .

Link ID = 3.3.3.3 Router id of the neighborLink Data = 18.10.0.6 IP interface address Type = 1 This is a transit link# TOS metrics = 0metric = 8

192.1.4.1 18.10.0.4/30

Page 72: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 727272RST-341

Different Mask or IP Subneton p2p Links

Area 03.3.3.3 6.6.6.6

19.10.0.5/30 18.10.0.6/30R3 R6

R3#show interface serial 0Serial0 is up, line protocol is up Hardware is HD64570 Internet address is 19.10.0.5/24

R6#show interface serial 0Serial0 is up, line protocol is up Hardware is HD64570 Internet address is 18.10.0.6/30

R3#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface 6.6.6.6 1 FULL/ - 00:00:30 18.0.0.6 Serial0

Page 73: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 737373RST-341

Different Mask or IP Subneton p2p Links (Cont.)

R3#show ip ospf database router 3.3.3.3. . .

Link ID = 6.6.6.6 Router id of the neighborLink Data = 19.10.0.5 Interface address Type = 1 This is a point-to-point link# TOS metrics = 0metric = 8

. . .R3#show ip ospf database router 6.6.6.6. . .

Link ID = 3.3.3.3 Router id of the neighborLink Data = 18.10.0.6 Interface addressType = 1 This is a point-to-point link# TOS metrics = 0metric = 8

R6

Area 0

R3

3.3.3.3 6.6.6.6

Page 74: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 747474RST-341

Address Flipped on Dual Links

R3#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface 6.6.6.6 1 FULL/ - 00:00:30 18.10.0.6 Serial0 6.6.6.6 1 FULL/ - 00:00:33 18.10.0.22 Serial1

R3#show interface serial 0Serial0 is up, line protocol is up Hardware is HD64570 Internet address is 18.10.0.21/30

3.3.3.3

R618.10.0.20/30

Area 018.10.0.4/30

S0

S1

6.6.6.6

R3

Page 75: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 757575RST-341

Forwarding Address Problem

R1#show ip ospf database external 140.10.0.0. . .Link State ID = 140.10.0.0Advertising Router = 7.7.7.7Network Mask = 255.255.0.0. . .Forwarding address = 18.10.0.10

R1#show ip route 18.10.0.10Routing entry for 18.10.0.8/29

Known via "ospf 1", distance 110, metric 20, type extern 2, forward metric 10. . .. . .

R5R4R118.10.0.1/30

18.10.0.9/29

18.10.0.5/30RIPRIP

Area 1Area 0 140.10.0.0External RouteExternal Route

R7

Page 76: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 767676RST-341

Forwarding Address Problem

R5

18.10.0.1/30

18.10.0.5/30Area 1Area 0 140.10.0.0

External RouteExternal Route

R4R1 18.10.0.9/29

RIPRIP

R7

R5:router ospf 1 network 18.10.0.0 0.0.0.255 area 1 redistribute rip subnets redistribute connected subnets! router rip network 10.0.0.0

R4:router ospf 1 area 1 range 18.10.0.0 255.255.255.240

Page 77: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 777777RST-341

Discontigous Backbone

ABR2ABR1 R2R1 Area 1

Area 0 Area 0

• R1 and R2 are not be able to see each other • Summary LSA for Inter-area routes must not

be generated into the backbone• The solution is to create virtual link between

ABR1 and ABR2

Summary LSA

Summary LSA

Summary LSA

Summary LSA

Page 78: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 787878RST-341

Distribute-List in Blocking the Routes

R4R5 18.10.0.9/29

18.10.0.1/30

R7

R4#show ip route 18.10.0.9% Subnet not in table

R4:router ospf 1 network 18.10.0.0 0.0.0.255 area 1 distribute-list 1 in ! access-list 1 permit 18.10.0.0 0.0.0.3

Page 79: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 797979RST-341

SPF Running Constantly

• Useful commands for this problemShow IP OSPF statShow IP OSPF databaseShow IP OSPF database database-sum

Page 80: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 808080RST-341

SPF Running Constantly

• Reasons:LSA flaps due to:

Duplicate RID/IP addressConstant link flapping in an area

Page 81: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 818181RST-341

SPF Running Constantly

• Requires enable modeR3#sh ip ospf stat

Area 0: SPF algorithm executed 42 timesArea 1: SPF algorithm executed 38 times

SPF calculation timeDelta T Intra D-Intra Summ D-Summ Ext D-Ext Total Reason00:22:00 0 0 0 0 0 0 0 R, N, SN, 00:21:44 0 0 4 0 0 0 4 R, SN, X00:21:34 0 0 4 0 0 0 4 R, SN, X00:21:24 0 0 0 4 0 0 4 R, SN, X00:21:14 0 0 0 0 0 0 0 R, 00:21:04 0 0 0 0 0 0 0 R, N, SN, 00:20:54 0 0 0 0 0 0 0 X00:20:44 0 0 4 0 0 0 4 R, SN, X00:20:34 0 0 0 0 0 0 0 X00:00:17 4 0 0 0 0 0 4 R, N, SN, SA, X. . .R=Router LSA; N=NetworkLSA; SN=Summary Network LSA; SA=Summary ASBR LSA; X=External LSA

Page 82: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 828282RST-341

SPF Running Constantly

R3#deb ip ospf monOSPF: Schedule SPF in area 1

Change in LS ID 1.1.1.1, LSA type R,OSPF: schedule SPF: spf_time 0ms wait_interval 861421816sOSPF: Begin SPF at 0x33585480ms, process time 752ms

spf_time 0ms, wait_interval 861421816sOSPF: End SPF at 0x33585488ms, Total elapsed time 8ms

Intra: 4ms, Inter: 0ms, External: 0ms

Page 83: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 838383RST-341

SPF Running Constantly

R3#show ip ospf database

OSPF Router with ID (3.3.3.3) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count3.3.3.3 3.3.3.3 106 0x80000009 0xC3F1 3. . .

Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum18.10.0.0 7.7.7.7 3 (DNA) 0x80000008 0x3DC2 18.10.0.0 8.8.8.8 1396 0x80000004 0x27D8 . . .

Router Link States (Area 1)

Link ID ADV Router Age Seq# Checksum Link count1.1.1.1 1.1.1.1 2 0x80000016 0xE6CD 2. . .

Page 84: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 848484RST-341

SPF Running Constantly

R3#show ip ospf database database-summary

OSPF Router with ID (3.3.3.3) (Process ID 1)

Area 0 database summaryLSA Type Count Delete MaxageRouter 124 0 0Network 4 0 0Summary Net 10 0 0Summary ASBR 0 0 0Type-7 Ext 0 0 0Opaque Link 0 0 0Opaque Area 0 0 0Subtotal 138 0 0

Area 1 database summaryLSA Type Count Delete MaxageRouter 4 0 0 Network 1 0 0 Summary Net 10 0 0 Summary ASBR 4 0 0

. . .

Page 85: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 858585RST-341

CPU Hog Problems

• CPU hog msg:%SYS-3-CPUHOG: Task ran for 2460 msec (26/0), Process = OSPF Router, PC = 244792-Traceback= 3F01A 24479A 240F40 230760

During adjacency formationDuring LSA flooding every 30 minutes

Page 86: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 868686RST-341

Packet Pacing Feature

• Improves the convergence time and eliminates CPU hogs during adjacency formation

• Useful in large number of neighbors and large database

• 33msec pacing interval was added between ospf update

• Pacing was also added between retransmission• Available in 12.0T, 12.0S and 12.1

Page 87: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 878787RST-341

LSA Group Pacing Feature

• Background flooding happens every 30 min• We used to refresh all LSAs at once every

30 min (bad!)• Now LSAs are grouped by age and refreshed

when age reaches LSRefreshTime (30 minutes)• Interval is configurable, default is 4 min• Available in 12.0

Page 88: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 888888RST-341

Neighbor Flapping (Frame Relay)

• Useful commands for this problemDebug ip ospf adjOSPF log-adjacency-changeShow IP OSPF neighbors detailShow interface

Page 89: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 898989RST-341

Neighbor Flapping (Frame Relay)

R3#show interface serial 0Serial0 is up, line protocol is up

Hardware is MK5025Description: Charlotte Frame Relay Port DLCI 100MTU 1500 bytes, BW 1024 Kbit, DLY 20000 usec, rely 255/255, load 44/255Encapsulation FRAME-RELAY, loopback not set, keepalive set (10 sec)LMI enq sent 7940, LMI stat recvd 7937, LMI upd recvd 0, DTE LMI upLMI enq recvd 0, LMI stat sent 0, LMI upd sent 0LMI DLCI 1023 LMI type is CISCO frame relay DTEBroadcast queue 64/64, broadcasts sent/dropped 1769202/1849660, interface broadcasts 3579215

http://www.cisco.com/warp/customer/104/6.shtmlhttp://www.cisco.com/warp/customer/104/6.shtml

• If the media is Frame Relay look for broadcast queue drops:

Page 90: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 909090RST-341

NSSA ABR Not Translating Type 7 LSA

• Only NSSA ABR with the highest RID does the conversion

Area 0router ospf 1network 10.10.10.10 0.0.0.0 area 0area 0

RID: 7.7.7.7

Type 7–5 Conversion

No Type 7/5 Translation

Area 1NSSA

Type 7

RID: 8.8.8.8

NSSAABR

NSSAASBR

Page 91: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 919191RST-341

NSSA ABR not Translating Type 7 LSA

• Only NSSA ABR with the highest RID does the conversion

Area 0NSSAABR

Area 1NSSA

router ospf 1network 10.10.10.10 0.0.0.0 area 0area 0

RID: 8.8.8.8

RID: 7.7.7.7

NSSAASBR

Type 7

Type 7–5 Conversion

Page 92: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 929292RST-341

Demand Circuit Problems

OSPF (DC)

18.10.0.1/30 18.10.1.0/24

• The DC is bringing up the link:There is a change in OSPF topologydebug IP OSPF monitor is helpful in this caseNetwork type on DC is defined broadcastThere is a router in the network that is incapable to understand DC bitThe DC is configured over async interface(need to configure a dialer interface as a solution)

Page 93: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 939393RST-341

Demand Circuit Problems

OSPF (DC)

18.10.0.1/30 18.10.1.0/24

RIP

RIP—OSPF Redistribution

• DC is bringing up the link (cont.)PPP host route is also owned by RIP, when PPP host route disappears, the database is change

Solution 1: no peer neighbor-routeSolution 2: Block /32 route getting into OSPF with route-mapSolution 3: Use different majornet for RIP

Page 94: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 949494RST-341

Summary

• What we learned?How to look at the specific LSAs in the database in detailDifferent troubleshooting commands and what to look for in those commandsCommon issues in OSPF networks; e.g adjacency problems, CPU hogs and SPF problems, NSSA and DC problems and how to correct those problems

Page 95: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 959595RST-341

Recommended Reading

• RFC 2328(OSPF), 1587(NSSA)• 1793(Demand Circuit) RFC 2370 (for opaque support)• Troubleshooting IP Routing Protocols by Faraz Shamim,

Zaheer Aziz, Johnson Liu and Abe Martey ISBN: 1587050196• OSPF: Anatomy of An Internet Routing Protocol by John T.

Moy, ISBN: 0201634724• OSPF Network Design Solutions by Thomas M. Thomas,

ISBN: 1578700469• Large-scale IP network solutions: CCIE Professional

Development by Khalid Raza and Mark Turner ISBN: 1578700841

Page 96: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 969696RST-341

Troubleshooting Resource – TAC Web

• Top Issues • Technologies page • Troubleshoot

Technical TipsTroubleshooting assistant

www.cisco.com/tac

Page 97: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 979797RST-341

Troubleshooting Resource – TAC Web

Troubleshooting

flow chart

•Symptoms•Error messages•Default routes•Tips

…and more

Page 98: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 989898RST-341

Troubleshooting Resource – TAC WebTask-based organization

• Overview• Network design• Implementation

and configuration

• Verification and troubleshooting

• Operating and maintaining

• Documentationwww.cisco.com/tac

Page 99: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 999999RST-341

Troubleshooting Resource – TAC Web

Technical tips developed by TAC engineers to troubleshoot and resolve TAC cases for OSPF

www.cisco.com/tac

Page 100: Troubleshooting OSPF (RST-341 Igor Olarou)

© 2002, Cisco Systems, Inc. All rights reserved. 100100100RST-341

Troubleshooting Resource – TAC Web

• Step-by-step debugging

• Suggests actions and provides the commands to execute those actions

• Scenarios tested by Cisco TAC

Page 101: Troubleshooting OSPF (RST-341 Igor Olarou)

101© 2002, Cisco Systems, Inc. All rights reserved.RST-341

Troubleshooting OSPFSession RST-341

Page 102: Troubleshooting OSPF (RST-341 Igor Olarou)

102© 2002, Cisco Systems, Inc. All rights reserved.RST-341

Please Complete Your Evaluation Form

Session RST-341

Page 103: Troubleshooting OSPF (RST-341 Igor Olarou)

103103103© 2002, Cisco Systems, Inc. All rights reserved.Session NumberPresentation_ID

Page 104: Troubleshooting OSPF (RST-341 Igor Olarou)

RST-307 104104104© 2002, Cisco Systems, Inc. All rights reserved.