Академический Документы
Профессиональный Документы
Культура Документы
BGP/OSPF/EIGRP
BRKRST-2619
Ruchir Jain
Customer Support Engineer
Agenda
View from 50,000 metres
Generic Lifecycle approach to troubleshoot the following protocols:
EIGRP
OSPF
BGP
BRKRST-2619
Cisco Public
BRKRST-2619
Run Routing
Algorithm
Populate the IP
Routing Table
Cisco Public
Troubleshooting EIGRP
5
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
should match
Hello
B
Hello Interval
60 seconds for low-speed NBMA
5 seconds for all other interfaces
BRKRST-2619
Cisco Public
RTO
Q
Cnt
200 0
522 0
510 0
Seq
Num
233
452
3
Cisco Public
Other checks:
Ping 224.0.0.10
Hello
B
Access-lists
Debug EIGRP packet hello
Ping neighbour with small & large packets
Interface errors
Sniffer Captures external or internal
Configure neighbour statements
BRKRST-2619
Cisco Public
10
BRKRST-2619
Cisco Public
11
Example logs
Neighbor 10.1.1.2 (Ethernet0) is down: peer restarted
Neighbor 10.1.1.2 (Ethernet0) is down: holding time expired
Neighbor 10.1.1.2 (Ethernet0) is down: retry limit exceeded
Neighbor 10.1.1.2 (Ethernet0) is down: route filter changed (old)
Neighbor 10.1.1.2 (Ethernet0) is down: K-value mismatch
Neighbor 10.1.1.2 (Ethernet0) is down: manually cleared
Neighbor 10.1.1.2 (Ethernet0) is down: Interface Goodbye received
BRKRST-2619
Cisco Public
12
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
13
Lo0: 10.1.1.1
A
.1
10.10.10.0/2
4
Update .2
B
Lo0: 10.2.2.2
BRKRST-2619
Cisco Public
14
.1
...
10.10.10.0/24
.2
Update
B
Lo0: 10.2.2.2
...
BRKRST-2619
Cisco Public
15
eigrp event-log-size ##
BRKRST-2619
Cisco Public
16
Ack
Packet
B
RtrB#show ip eigrp neighbors
IP-EIGRP neighbors for process 1
H Address
Interface Hold Uptime
(sec)
1 10.1.102.2
BRKRST-2619
Et0
14
00:00:15
SRTT RTO
(ms)
5000
Q
Seq
Cnt Num
Cisco Public
17
Check Bandwidth
Common causes
B
RtB# ping
Protocol[ip]:
Target IP address: 10.1.1.1
Repeat count [5]: 100
Datagram Size: 1500
Timeout in seconds[2]:
Extended commands[n]: y
Mismatched MTU
Unidirectional link
Dirty link
Bad Hardware
BRKRST-2619
Cisco Public
18
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
19
A neighbour meets the feasibility condition (FC) if the RD is smaller than the
FD of this router.
BRKRST-2619
Cisco Public
20
20 Se1/1 RD=40
A
20
RD=20
E
10.200.1.0
FD = 50
D
Feasible Distance
Successor
Feasible Successor
Reported
Distance
Cisco Public
21
.2
56k
.1
C
.2
128k
10.200.1.0
Successor
Feasible Successor
Possible Successor
Reported
Distance
BRKRST-2619
Cisco Public
22
BRKRST-2619
Cisco Public
23
Finite-State-Machine
Track all routes
Select a Successor
Remember Feasible Successors
If Successor lost
Use Feasible Successor
BRKRST-2619
Cisco Public
24
BRKRST-2619
Cisco Public
25
BRKRST-2619
Cisco Public
26
Cisco Public
27
Excessive redundancy
BRKRST-2619
Cisco Public
28
BRKRST-2619
Cisco Public
29
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
30
10.1.1.0/24
via RIP
C
B#show ip route 10.1.1.0
B#
BRKRST-2619
Cisco Public
31
10.1.1.0/24
via RIP
A
router eigrp 100
redistribute rip
....
B
C
B#show ip route 10.1.1.0
....
10.1.1.0/24 via [A]
BRKRST-2619
Cisco Public
32
BRKRST-2619
Cisco Public
33
Quiz - EIGRP
1. What are the possible states of EIGRP route and what is a good
state?
There are two States: Active and Passive
BRKRST-2619
Cisco Public
34
35
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
36
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
37
Init
2-Way
1.1.1.1
2.2.2.2
R1
R2
{
{
Hello
RID =1.1.1.1
Hello
RID =2.2.2.2
Init on R2
Init on R1
Hello
RID =1.1.1.1
2-Way on R2
N =2.2.2.2
Hello
RID =2.2.2.2
2Way on R1
N =1.1.1.1
BRKRST-2619
Cisco Public
38
2.2.2.2
R1
R2
BRKRST-2619
Cisco Public
39
Access-list
OSPF authentication
Troubleshooting Steps
Debug ip ospf adj
Debug ip ospf events
Debug ip packet 101 detail Use access list to filter
Ping 224.0.0.5 from both sides
BRKRST-2619
Cisco Public
40
BRKRST-2619
Cisco Public
41
Mismatched Area Id
Cisco Public
42
Example:
debug condition interface Ethernet 0/0
debug condition interface Ethernet 1/0
debug ip ospf hello
BRKRST-2619
Cisco Public
43
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
44
2.2.2.2
R1
R2
DBD
EXSTART
MTU = 1500
Flag = 0x7
Seq = 0x2499
DBD
EXCHANGE
BRKRST-2619
MTU = 1500
Flag = 0x3
Seq = 0x837
Cisco Public
45
2.2.2.2
R1
R2
BRKRST-2619
Cisco Public
46
BRKRST-2619
MS
Cisco Public
47
DN
BRKRST-2619
DC
L N/P MC
MT
Cisco Public
48
BRKRST-2619
Cisco Public
49
2.2.2.2
R1
R2
LS Req
LOADING
LS Type
Link State ID
Advertising Router
LS Update
FULL
BRKRST-2619
# LSAs
LSAs
LSA ..
Cisco Public
50
BRKRST-2619
Cisco Public
51
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
52
BRKRST-2619
LSA
Router
Network
Summary Network
Summary ASBR
External
Group Membership
NSSA
External Attributes
911
Opaque
Cisco Public
53
.5
# links = 2
Link ID = 6.6.6.6
Link Data = 18.10.0.5
Type = 1
# TOS metrics = 0
metric = 8
6.6.6.6
.6
Link ID = 18.10.0.4
Link Data = 255.255.255.252
Type = 3
# TOS metrics = 0
metric = 8
BRKRST-2619
3.3.3.3
Area 0
18.10.0.4/30
R3
Cost = 8
R6
IP subnet address
Subnet mask
This is a stub link
Cisco Public
54
metric = 1
Link ID = 192.1.4.0
Link Data = 255.255.255.0
Type = 3
# TOS metrics = 0
metric = 2
BRKRST-2619
192.1.1.x/24
4.4.4.4
DR
.4
Cost = 1
.3
IP address of the DR
Interface address of this router
This is a transit network
3.3.3.3
Area 0
18.10.0.4/30
6.6.6.6
.5
.6
R3
Area 1
Cost to reach the interface
IP network number
Subnet mask of the interface
Stub network
R4
Cost =8
R6
192.1.4.0/24
Cost = 2
Cisco Public
55
Link Details
Type
1
1
BRKRST-2619
Description
Link ID
Link Data
Point-to-Point
Numbered
Point-to-Point
Unnumbered
Neighbors
RID
Neighbors
RID
IP Address
of the DR
IP Network
Number
Neighbors
RID
Interface IP
Address
MIB-II Ifindex
Value
Interface IP
Address
Transit
Stub
Virtual Link
Subnet Mask
Interface IP
Address
Cisco Public
56
4.4.4.4
DR
.4
.1
R1
R4
Area 0
18.10.0.4/30
Cost = 1
2.2.2.2
.3
.2
3.3.3.3
6.6.6.6
.5
.6
R3
R2
BRKRST-2619
Area 1
Cost =8
R6
Cisco Public
57
Type 3 Details
R4#show ip ospf database summary 192.1.1.0
Summary Net Link States (Area 0)
LS age = 0
Options = (No TOS-capability, DC, Upward)
LS type = Network Links
Type 3 LSA
Link State ID = 192.1.1.0
Summary IP network number
Advertising Router
= 4.4.4.4
RID of ABR
Network Mask = 255.255.255.0
metric = 4
O IA
192.1.1.0/24
1.1.1.1
ABR
4.4.4.4
DR
192.1.2.0/24
.4
Cost = 3
R1
.1
R4
Cost = 1
2.2.2.2
.3
.2
ABR
3.3.3.3
R3
R2
BRKRST-2619
192.1.2.0/24
metric 4
Area 1
Cost =8
Area 0
R5
18.10.0.4/30
6.6.6.6
.5
.6
Cost =8
R6
Cisco Public
58
Type 4 Details
R4#show ip ospf database asbr-summary 7.7.7.7
Summary ASB Link States (Area 1)
LS age = 0
Options = (No TOS-capability, DC, Upward )
LS type = Summary Links(ASBR)
Link State ID = 7.7.7.7
RID of ASBR
Advertising Router
= 4.4.4.4
RID of ABR
Network Mask = 0.0.0.0
metric = 16
Type 4 Summary
ABR
4.4.4.4
192.1.1.0/24
1.1.1.1
External Route
140.10.0.0
R5
DR
.4
R1
.1
R4
Cost = 1
2.2.2.2
.3
.2
ABR
3.3.3.3
R3
R2
BRKRST-2619
Area 1
Cost =8
Area 0
18.10.0.4/30
6.6.6.6
.5
.6
Cost =8
R8
Cost =8
Cost =20
7.7.7.7
R7 ASBR
R6
Cisco Public
59
Type 5 Details
R4#show ip ospf database external 140.10.0.0
Routing Bit Set on this LSA
LS age = 0
Options = (No TOS-capability, DC)
LS type = AS External Link
Type 5
Link State ID = 140.10.0.0
IP network number
Advertising Router
= 7.7.7.7
Router ID of R7
Network Mask = 255.255.0.0
Metric Type: 2
Bit E = 1 -> O E2 (Default)
metric = 20
Metric is 20 in all redistributed E2 routes
Forwarding address
= 0.0.0.0
Traffic should be forwarded to the ASBR
ABR
4.4.4.4
192.1.1.0/24
1.1.1.1
External Route
140.10.0.0
DR
.4
R1
.1
R4
Cost = 1
2.2.2.2
.3
.2
ABR
3.3.3.3
R3
R2
Area 1
Cost =8
Area 0
18.10.0.4/30
6.6.6.6
.5
.6
Cost =8
R8
Cost =8
Cost =20
7.7.7.7
R7 ASBR
R6
External Type 5
BRKRST-2619
Cisco Public
60
BRKRST-2619
Cisco Public
61
Type 7 Details
R7#show ip ospf database nssa-external 140.10.0.0
LS age = 0
Options = (No TOS-capability, No Type 7/5 translation, DC)
LS type = AS External Link
Type 7 LSA
Link State ID = 140.10.0.0
IP network number
Advertising Router
= 7.7.7.7
Router ID of R7(NSSA ASBR)
Network Mask = 255.255.0.0
P = 0 -> This router is an NSSA ASBR+ ABR
P = 1 -> This router is an NSSA ASBR
metric = 20
Forwarding address
= 0.0.0.0
Traffic should be forwarded to the ASBR
ABR
4.4.4.4
192.1.1.0/24
1.1.1.1
External Route
R5
DR
140.10.0.0
.4
R1
R4
Cost = 1
2.2.2.2
R8
.1
.3
.2
ABR
3.3.3.3
R3
R2
BRKRST-2619
Area 1
Cost =8
Area 0
Cost =8
18.10.0.4/30
6.6.6.6
.5
.6
Cost =8
R6
Cost =20
7.7.7.7
R7 ASBR
Type 7
NSSA
Cisco Public
62
BRKRST-2619
Cisco Public
63
Delta T
Intra
D-Intra
Summ
D-Summ
Ext
D-Ext
Total
Reason
00:22:00
R, N, SN,
00:21:44
R, SN, X
00:21:34
R, SN, X
00:21:24
R, SN, X
00:20:44
R, SN, X
00:20:34
00:00:17
R, N, SN, SA
. . .
R=Router LSA; N=NetworkLSA; SN=Summary Network LSA; SA=Summary ASBR LSA; X=External LSA
BRKRST-2619
Cisco Public
64
external
inter
intra
statistic
<cr>
R2#
BRKRST-2619
Cisco Public
65
Per-process sections
OSPF queues
Interface details
Per-process summary
BRKRST-2619
OSPF statistics:
Rcvd: 29 total, 0 checksum errors
7 Hello, 8 database desc, 2 link state req
8 link state updates, 4 link state acks
Sent: 29 total
8 Hello, 6 database desc, 2 link state req
8 link state updates, 5 link state acks
Cisco Public
66
Type
Packets
RX Invalid
0
RX Hello
8
RX DB des
8
RX LS req
2
RX LS upd
8
RX LS ack
4
RX Total
30
TX
TX
TX
TX
TX
TX
TX
Failed
Hello
DB des
LS req
LS upd
LS ack
Total
0
10
6
2
8
5
31
Bytes
0
384
496
72
740
236
1928
0
792
624
112
708
460
2696
BRKRST-2619
Cisco Public
67
BRKRST-2619
UpdateQ
200
8881
21188
200
0
0
0
0
200
0
0
0
0
0
0
0
0
OutputQ
0
0
28
6
0
0
0
0
0
6
0
0
0
0
0
0
0
Cisco Public
68
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
69
Pri
State
FULL/
Pri
201.1.1.1
Dead Time
Address
Interface
00:00:30
10.1.1.2
Ethernet0/0
State
Dead Time
Address
Interface
FULL/BDR
00:00:30
20.1.1.1
Ethernet0/0
R1#
R2#sh ip ospf nei
Neighbor ID
101.1.1.1
R2#
R1#sh ip route ospf
R1#
101.1.1.1
R1
BRKRST-2619
201.1.1.1
10.10.10.0/24 R2
Cisco Public
70
LS age: 1254
LS age: 1670
TOS 0 Metrics: 10
TOS 0 Metrics: 10
BRKRST-2619
101.1.1.1
201.1.1.1
R1
R2
10.10.10.0/24
Cisco Public
71
Quiz - OSPF
1. If there is a MTU mismatch then in which state will OSPF
neighbour get stuck and why?
In newer IOS releases it will get stuck in EXSTART state.
We have an MTU field in the DBD header and this is the point where we check it.
If the MTU value does not match then we cannot bring up the OSPF neighbourship.
BRKRST-2619
Cisco Public
72
73
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
74
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
75
Router ID
AS #
Capabilities
Hold Time
Incremental updates
Keepalive messages
BRKRST-2619
Cisco Public
76
OpenSent
Idle
OpenConfirm
Valid Condition
Error Condition
BRKRST-2619
Established
Cisco Public
77
R1 Configuration
neighbor 2.2.2.2 remote-as 100
R2 Configuration
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 update-source loopback 0
2.2.2.2
R1
.2
.1
R2
10.1.1.0/24
BRKRST-2619
Cisco Public
78
Foreign Address
10.1.35.5.55981
(state)
ESTAB
BRKRST-2619
Cisco Public
79
BRKRST-2619
Cisco Public
80
BRKRST-2619
Cisco Public
81
BGP Peers
Show ip bgp neighbours - AFI independent BGP info
R1#show ip bgp neighbors 2.2.2.2
BGP neighbor is 2.2.2.2, remote AS 200, external link
BGP version 4, remote router ID 2.2.2.2
BGP state = Established, up for 00:02:07
Last read 00:00:06, last write 00:00:13, hold time is 180, keepalive
interval is 60 seconds
Neighbor capabilities:
Route refresh: advertised and received(new)
Address family IPv4 Unicast: advertised and received
Message statistics:
InQ depth is 0
OutQ depth is 0
Sent
Rcvd
Opens:
6
6
Notifications:
0
0
Updates:
4
0
Keepalives:
175
177
Route Refresh:
0
0
Total:
185
183
Default minimum time between advertisement runs is 30 seconds
BRKRST-2619
Cisco Public
82
BGP Peers
Show ip bgp neighbours - AFI specific BGP info
R1#show ip bgp neighbors
<snip>
For address family: IPv4 Unicast
BGP table version 2, neighbor version 2/0
Output queue size : 0
Index 1, Offset 0, Mask 0x2
1 update-group member
Sent
Rcvd
Prefix activity:
------Prefixes Current:
1
0
Prefixes Total:
1
0
Implicit Withdraw:
0
0
Explicit Withdraw:
0
0
Used as bestpath:
n/a
0
Used as multipath:
n/a
0
Outbound
Inbound
Local Policy Denied Prefixes:
-------------Total:
0
0
Number of NLRIs in the update sent: max 1, min 1
BRKRST-2619
Cisco Public
83
BGP Peers
Show ip bgp neighbours (cont) BGP specific TCP info
<snip>
Connections established 6; dropped 5
Last reset 00:02:09, due to User reset
External BGP neighbor may be up to 255 hops away.
Connection state is ESTAB, I/O status: 1, unread input bytes: 0
Local host: 1.1.1.1, Local port: 12348
Foreign host: 2.2.2.2, Foreign port: 179
.
<snip>
.
.
SRTT: 146 ms, RTTO: 1283 ms, RTV: 1137 ms, KRTT: 0 ms
minRTT: 0 ms, maxRTT: 300 ms, ACK hold: 200 ms
Flags: higher precedence, retransmission timeout, nagle, path mtu capable
BRKRST-2619
Cisco Public
84
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
85
BRKRST-2619
Cisco Public
86
1.1.1.1
R1
BRKRST-2619
2.2.2.2
R2
R2#
router bgp 2
no synchronization
bgp log-neighbor-changes
network 200.1.1.0 mask 255.255.255.0
network 201.1.1.0 mask 255.255.255.0
neighbor 1.1.1.1 remote-as 2
neighbor 1.1.1.1 update-source Loopback0
neighbor 1.1.1.1 prefix-list From_R1 in
neighbor 1.1.1.1 prefix-list To_R1 out
no auto-summary
ip prefix-list To_R1 seq 5 deny 201.1.1.0/24
ip prefix-list To_R1 seq 7 permit 0.0.0.0/0 ge 1
ip prefix-list From_R1 seq 5 deny 101.1.1.0/24
ip prefix-list From_R1 seq 7 permit 0.0.0.0/0 ge 1
Cisco Public
87
Next Hop
1.1.1.1
1.1.1.1
1.1.1.1
101.1.1.0/24
R1
2.2.2.2
R2
100.1.1.0/24
BRKRST-2619
Cisco Public
88
1.1.1.1
R1
BRKRST-2619
2.2.2.2
R2
Cisco Public
89
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
90
BRKRST-2619
Cisco Public
91
Cisco Public
92
BRKRST-2619
Cisco Public
93
Used to keep track of which bestpath changes have been propagated to whom
1.1.1.1
AS MsgRcvd MsgSent
100
4386
4388
TblVer
13
State/PfxRcd
01:20:24
R2#
BRKRST-2619
Cisco Public
94
BRKRST-2619
Cisco Public
95
debug ip bgp events will show you when scanner ran for each address-family
BGP: Performing BGP general scanning
BGP(0): scanning IPv4 Unicast routing tables
BGP(IPv4 Unicast): Performing BGP Nexthop scanning for general scan
BGP(0): Future scanner version: 7, current scanner version: 6
BGP(1): scanning IPv6 Unicast routing tables
BGP(IPv6 Unicast): Performing BGP Nexthop scanning for general scan
BGP(1): Future scanner version: 13, current scanner version: 12
BGP(2): scanning VPNv4 Unicast routing tables
BRKRST-2619
Cisco Public
96
BRKRST-2619
Populate the IP
Routing Table
Cisco Public
97
<..snip..>
Network
*>i100.1.1.0/24
Next Hop
1.1.1.1
100
0 i
Next Hop
*> 200.1.1.0
0.0.0.0
32768 i
BRKRST-2619
Cisco Public
98
Network
Next Hop
100.1.1.0/24
1.1.1.1
RIB-failure
RIB-NH Matches
n/a
R2#
BRKRST-2619
Cisco Public
99
Quiz BGP
1. What protocol and port number does BGP use for establishing
neighbourship?
BGP uses TCP and port number 179
2. You want to see routes received from neighbours before any route
filtering is applied. What command is required to be present in
configuration?
Soft-reconfiguration inbound
BRKRST-2619
Cisco Public
100
Time Stamps
Configuration Backup
Familiarity with H/W specific troubleshooting tools
https://supportforums.cisco.com/community/netpro/serviceproviders/blog/2013/05/29/packet-capture-capabilities-of-cisco-routers-andswitches
BRKRST-2619
Cisco Public
101
Summary
Form Neighbour
Relationship
BRKRST-2619
Run Routing
Algorithm
Populate the IP
Routing Table
Cisco Public
102
Q&A
103
BRKRST-2619
Cisco Public
104