Beruflich Dokumente
Kultur Dokumente
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 1
Troubleshooting OSPF
BRKRST-3310
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 2
LSA Overview
Troubleshooting Commands
Common Issues
Troubleshooting Enhancements
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 3
LSA Overview
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 4
Type LSA
1 Router
2 Network
3 Summary Network
4 Summary ASBR
5 External
6 Group Membership
7 NSSA
8 External Attributes
9–11 Opaque
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 5
IP Address Interface IP
2 Transit
of the DR Address
IP Network
3 Stub Subnet Mask
Number
Neighbors’ Interface IP
4 Virtual Link
RID Address
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 8
R2 R3 2 18.10.0.4/32 R6
192.1.4.0/24
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 9
Type 3 Details
R4#show ip ospf database summary 192.1.2.0
Summary Net Link States (Area 0)
LS age: 1514
Options: (No TOS Capability)
LS type: Summary Links (Networks)
Link State ID: 192.1.2.0 (Summary Network Number)
Advertising Router: 4.4.4.4 RID of ABR
LS Seq Number: 80000001 Initial Seq Number
Checksum: 0xFC68
Length: 28
Network Mask: /24
TOS 0 Metric: 4 O IA
ABR 192.1.2.0/24
metric 4
DR
1.1.1.1
192.1.2.0/24 192.1.1.4 8
3 R4
R1 /24
ABR Area 0
1 192.1.1.3 6.6.6.6
2.2.2.2
8
R2 R3 2 18.10.0.4 R6
192.1.4.0/24
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 10
Type 4 Summary
3 1.1.1.1 DR External Route
192.1.1.4
8
140.10.0.0
8
R1 R4
192.1.2.0/24 /24
Area 0 RID ASBR
1 192.1.1.3
2.2.2.2 6.6.6.6 7.7.7.7
R3 2 18.10.0.4
R2 R6 R7
192.1.4.0/24
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 11
Type 5 Details
R4#show ip ospf database external 140.10.0.0
LS age: 156
Options: (No TOS Capability)
LS type: AS External Link
Link State ID: 140.10.0.0 (External Network Number)
Advertising Router: 7.7.7.7 Router ID of R7
LS Seq Number: 80000001 Initial Seq Number
Checksum: 0x93E2
Length: 36
Network Mask: /16
Metric Type: 2 bit E = 1 -> O E2 (Default)
Metric: 20
Forwarding address: 0.0.0.0
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 13
Type 7 Details
R7#show ip ospf database nssa-external 140.10.0.0
LS age: 156
Options: (No TOS Capability, Type 7/5 translation)
LS type: AS External Link
Link State ID: 140.10.0.0 (External Network Number)
Advertising Router: 7.7.7.7 Router ID of R7(ASBR)
LS Seq Number: 80000001 Initial Seq Number
Checksum: 0x01A6
Length: 36
Network Mask: /16
Metric Type: 2
Metric: 20
Forwarding address: 0.0.0.0
External Route
3 1.1.1.1 DR 140.10.0.0
192.1.1.4 8
R4
192.1.2.0/24 R1
1
/24 Area 0 RID ASBR
4
2.2.2.2 192.1.1.3 6.6.6.6 7.7.7.7
8 R7
R2 R3 2 18.10.0.4 Type 7 NSSA
192.1.4.0/24 R6
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 14
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 15
Troubleshooting
Commands
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 16
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 18
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 19
4.4.4.4
DR
1.1.1.1
192.1.1.4
R4
R1 1
/24 Area 0
192.1.1.3 6.6.6.6
2.2.2.2 8
R3 2 18.10.0.4 R6
R2
192.1.4.0/24
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 20
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 22
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 23
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 25
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 26
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 27
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 28
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 29
Common Issues
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 30
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 31
Layer 2 is down
R3#show ip ospf neighbor
R3#
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 32
In 12.0:
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 34
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 35
R4(config-if)#interface ethernet 0
R4(config-if)#no ip ospf hello-interval 15
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 37
Mismatched area ID
R4#show ip ospf neighbor
R4#
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 38
Area 2
Area 2
R7 NSSA R8
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 39
Options
Normal area: OSPF: Send DBD to 141.108.97.1 on Serial0 seq 0xBC4 opt 0x2 flag 0x3 len 492
E 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
O DC EA N/P MC E
* *
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 40
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 41
ATTEMPT
INIT
2-WAY 3.3.3.3 6.6.6.6
EXSTART R3 R6
EXCHANGE
LOADING
FULL
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 42
3.3.3.3 6.6.6.6
NBMA
R3 R6
Hello
RID =3.3.3.3
Hello
RID =6.6.6.6
N = 3.3.3.3
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 43
Stuck in ATTEMPT
Reasons
Our hellos are getting lost in NBMA cloud
Neighbor hellos are getting lost in NBMA cloud
We received neighbor’s hello but rejects it for
some reason
Misconfigured neighbor statement
Broken Unicast
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 44
R1 R2
Hello
RID =1.1.1.1
Hello
RID =2.2.2.2
Hello
RID =1.1.1.1
N =2.2.2.2
Hello
RID =2.2.2.2
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 45
Stuck in INIT
Reasons
One side is blocking the hello packet with access-list
One side is translating (NAT) OSPF hello
One side multicast capabilities is broken (Layer 2)
Dialer map or Frame Relay map is missing keyword
‘broadcast’
LLS capability issue when Cisco IOS® is upgraded
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 46
R1 R2
Hello
RID =1.1.1.1 P=0
Hello
RID =2.2.2.2 P=0
N =1.1.1.1
Hello
RID =1.1.1.1 P=0
N =2.2.2.2
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 47
Stuck in 2-WAY
Reasons
This is normal in broadcast network types
This is to reduce the amount of flooding on the wire
Problem 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
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 48
R3 R6
Hello
RID =3.3.3.3
Hello
RID =6.6.6.6
N =3.3.3.3
DBD
MTU = 1500 flag = 0x7
Seq = 1E55
DBD
MTU = 1500 flag = 0x7
Seq = 22AB
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 49
Stuck in EXSTART/EXCHANGE
Useful in debugging, defines I, M and MS bits
OSPF: Send DBD to 141.108.97.1 on Serial0 seq 0xBC4 opt 0x2 flag 0x3
len 492
Flag 0x7--> 111 means I(Initial) = 1, M = 1(More), MS = 1(Master)
Flag 0x6 --> 110 not possible
Flag 0x5 --> 101 not possible
Flag 0x4 --> 100 not possible
Flag 0x3 --> 011 means master has more data to send
Flag 0x2 --> 010 means slave has more data to send
Flag 0x1 --> 001 means master has no more data left to send
Flag 0x0 --> 000 means slave has no more data left to send
0 0 0 0 0 I M MS
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 50
Stuck in LOADING
3.3.3.3 6.6.6.6
R3 R6
LS Req
LS Type
Link State ID
Advertising Router
LS Update
# LSAs
LSAs
...
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 52
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 53
Stuck in LOADING
3.3.3.3 6.6.6.6
LS Update
# LSAs
LSAs
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 54
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 55
R3 18.10.0.4/30 R6
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 ip ospf interface serial 0
Serial0 is up, line protocol is up
Internet Address 18.0.0.5/30, Area 0
Process ID 1, Router ID 3.3.3.3, Network Type POINT_TO_POINT, Cost: 64
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 57
Point-to-Point Numbered
and Unnumbered Links
3.3.3.3 Area 0 6.6.6.6
192.1.4.1
R3 18.10.0.4/30 R6
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
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 59
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 61
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 62
R1 R4 R5 18.10.0.9/29 R7
R1 R4 R5 18.10.0.9/29 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
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 64
Area 0 Area 0
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 66
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 67
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 69
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 70
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 71
NSSA
ASBR Area 1 RID: 7.7.7.7
NSSA Area 0
Type 7 NSSA
router ospf 1 ABR
network 10.10.10.10 0.0.0.0 area 0 No Type 7/5 Translation
R8 RID: 8.8.8.8
NSSA
ASBR Area 1 RID: 7.7.7.7
NSSA Area 0
Type 7 NSSA
router ospf 1 ABR
network 10.10.10.10 0.0.0.0 area 0
R8 RID: 8.8.8.8 Type 7–5 Conversion
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 73
Common Issues
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 74
Further enhancement to allow an access-list filter, and a “detail” option (for verbose
output)
Available in: 12.4(4)T 12.2(30)S 12.0(32)S
debug ip ospf packets
BRKRST-3310
Available in: 12.4(10) 12.2(33)SXH 12.2(33)SRB
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 75
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 76
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 77
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 78
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 79
Interface Related
Enhancements
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 80
CSCse01519
Available in 12.4(13), 12.2(33)SXH, 12.2(33)SRB
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 81
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 82
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 83
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 84
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 85
Summary
What We Learned?
Overview of OSPF LSAs
Different troubleshooting commands and what to look
for in those commands
Common issues in OSPF networks; e.g., adjacency
problems, information in the database but not in RT,
SPF problems and NSSA problems and how to correct
those problems
OSPF Troubleshooting Enhancements including
debugs and interface based enhancements
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 88
White Papers
Web and Mailers
Cisco Press
Q and A
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 90
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 91
BRKRST-3310
14451_04_2008_c2 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 92