ITE PC v4.0
Chapter 1
Cisco Public
Introduction
Cisco Public
Introduction to OSPF
Background of OSPF
Began in 1987
1989 OSPFv1 released in RFC 1131
This version was experimental & never deployed
1991 OSPFv2 released in RFC 1247
1998 OSPFv2 updated in RFC 2328
1999 OSPFv3 published in RFC 2740
ITE PC v4.0
Chapter 1
Cisco Public
Introduction to OSPF
OSPF Message Encapsulation
OSPF packet type
IP packet header
ITE PC v4.0
Chapter 1
Cisco Public
Introduction to OSPF
5 OSPF Packet Types:
Cisco Public
ITE PC v4.0
Chapter 1
Cisco Public
Establish adjacencies:
ITE PC v4.0
Chapter 1
Cisco Public
ITE PC v4.0
Chapter 1
Cisco Public
Introduction to OSPF
OSPF Link-state Updates
ITE PC v4.0
Chapter 1
Cisco Public
Introduction to OSPF
OSPF Algorithm
ITE PC v4.0
Chapter 1
Cisco Public
10
Introduction to OSPF
Administrative Distance
ITE PC v4.0
Chapter 1
Cisco Public
11
Introduction to OSPF
OSPF Authentication
It is good practice to authenticate transmitted
routing information.
This is an interface specific configuration
This practice ensures that routers will only accept
routing information from other routers that have been
configured with the same password or authentication
information
MD5 authentication
uses a key ID that
allows the router to
reference multiple
passwords, making
password migration
easier and more
secure.
Note: Authentication
does not encrypt the
router's routing table.
?
ITE PC v4.0
Chapter 1
Cisco Public
12
ITE PC v4.0
Chapter 1
Cisco Public
13
ITE PC v4.0
Chapter 1
be 0
Cisco Public
14
network address
255.255.255.255
- 255.255.255.240
-------------------0. 0. 0. 15
255.255.255.255
- 255.255.255.252
-------------------0. 0. 0. 03
ITE PC v4.0
Chapter 1
Cisco Public
Subtract the
subnet mask
Wildcard mask
Subtract the
subnet mask
Wildcard mask
15
Cisco IOS now properly handles overlapping network ... area configuration commands.
Consider the following example:
fw#conf t
Enter configuration commands, one per line. End with CNTL/Z.
fw(config)#router ospf 100
fw(config-router)#network 0.0.0.0 255.255.255.255 area 0
fw(config-router)#network 10.0.0.0 0.0.3.255 area 1
13:06:57: %OSPF-6-AREACHG: 10.0.0.0 255.255.252.0 changed from area 0 to area 1
fw(config-router)#network 10.0.0.0 0.0.0.7 area 2
13:07:10: %OSPF-6-AREACHG: 10.0.0.0 255.255.255.248 changed from area 1 to area 2
fw(config-router)#^Z
I've entered overlapping network statements, each one with a smaller address range. Not
only does IOS detect that they overlap, it also prints nice syslog messages and reorders
the commands in the running configuration. Well done !
fw#show run | begin router ospf
router ospf 100
log-adjacency-changes
network 10.0.0.0 0.0.0.7 area 2
network 10.0.0.0 0.0.3.255 area 1
network 0.0.0.0 255.255.255.255 area 0
ITE PC v4.0
Chapter 1
Cisco Public
16
Both add all existing interfaces into area 0 and all later added interfaces
also. Both statements are valid.
ITE PC v4.0
Chapter 1
Cisco Public
17
ITE PC v4.0
Chapter 1
Cisco Public
18
ITE PC v4.0
Chapter 1
Router ID
Cisco Public
19
ITE PC v4.0
Chapter 1
Cisco Public
20
ITE PC v4.0
Chapter 1
Cisco Public
21
ITE PC v4.0
Chapter 1
Cisco Public
22
Cisco Public
23
Quick Review
We just went over 3 different types of ID
ospf process-id.
OSPF process.
Cannot be 0
Area ID:
OFPS area
If it is the first, and the backbone area, it is 0
Router ID
Router ID
1 IP address is elected per router,
Highest physical address (or)
Highest logical address (loopback)
ITE PC v4.0
Chapter 1
Cisco Public
24
Adjacency indicated by
No adjacency indicated by -
-Consequence of no adjacency-
ITE PC v4.0
Chapter 1
Cisco Public
25
Cisco Public
26
Verifying OSPF
Show ip protocols
Show ip ospf
OSPF process ID
router ID.
ITE PC v4.0
Chapter 1
Cisco Public
27
ITE PC v4.0
Chapter 1
Cisco Public
28
Loopback
interface counts
as a network.
These loopback
interfaces are
not advertised in
OSPF.
They function as
router ID.
ITE PC v4.0
Chapter 1
Cisco Public
29
OSPF Metric
ITE PC v4.0
Chapter 1
Cisco Public
30
OSPF Metric
ITE PC v4.0
Chapter 1
64 + 1 = 65
Cisco Public
31
OSPF Metric
ITE PC v4.0
Chapter 1
Cisco Public
32
2A/S
ITE PC v4.0
Chapter 1
2T
Cisco Public
33
Cisco Public
34
ITE PC v4.0
Chapter 1
Cisco Public
35
ITE PC v4.0
Chapter 1
Cisco Public
36
Broadcast Multiaccess
Point-to-multipoint
Virtual links
ITE PC v4.0
Chapter 1
Cisco Public
37
2 challenges presented by
multiaccess networks
Multiple adjacencies
Extensive LSA flooding
ITE PC v4.0
Chapter 1
Cisco Public
38
Solution:
ITE PC v4.0
Chapter 1
Cisco Public
39
On multi-access networks, the routers elect a DR and BDR. On these networks other routers
become adjacent to the DR.
ITE PC v4.0
Chapter 1
Cisco Public
40
ITE PC v4.0
Chapter 1
Cisco Public
41
ITE PC v4.0
Chapter 1
Cisco Public
42
DR & BDR
ITE PC v4.0
Chapter 1
Cisco Public
43
ITE PC v4.0
Chapter 1
Cisco Public
44
ITE PC v4.0
Chapter 1
Cisco Public
45
ITE PC v4.0
Chapter 1
Cisco Public
46
Example:
DROthers only form FULL adjacencies with the DR and BDR, but will still form
a neighbor adjacency with any DROthers that join the network.
When two DROther routers form a neighbor adjacency, the neighbor state is
ITE PC v4.0
displayed
as 2WAY.
Chapter 1
2007 Cisco Systems, Inc. All rights reserved.
47
ITE PC v4.0
Chapter 1
Cisco Public
48
ITE PC v4.0
Chapter 1
Cisco Public
49
DR Fails
ITE PC v4.0
Chapter 1
Cisco Public
50
New Router
Cisco Public
51
Old DR Returns
ITE PC v4.0
Chapter 1
Cisco Public
52
BDR Fails
ITE PC v4.0
Chapter 1
Cisco Public
53
New DR Fails
ITE PC v4.0
Chapter 1
Cisco Public
54
ITE PC v4.0
Chapter 1
Cisco Public
55
Force Election
ITE PC v4.0
Chapter 1
DR
BDR
Cisco Public
56
ITE PC v4.0
Chapter 1
Cisco Public
57
ITE PC v4.0
Chapter 1
Cisco Public
58
R1(config-router)#auto-cost
reference-bandwidth 10000
the default value is equivalent to 100. To
increase it to 10GigE speeds, you would need
to change the reference bandwidth to 10000.
Again, make sure you configure this command
on all routers in the OSPF routing domain.
ITE PC v4.0
Chapter 1
Cisco Public
59
R1(config-router)#autocost reference-bandwidth
10000
Cisco Public
60
Point to be made
ITE PC v4.0
Chapter 1
Cisco Public
61
The End
Questions?
What will be the result of the DR and BDR elections for this single area
OSPF network? (Choose three.)
*. Decision process:
HQ will be DR for 10.4.0.0/16.
Router A will be DR for 10.4.0.0/16.
HQ will be BDR for 10.4.0.0/16.
Router A will be DR for 10.5.0.0/16.
Remote will be DR for 10.5.0.0/16.
Remote will be BDR for 10.5.0.0/16.
ITE PC v4.0
Chapter 1
1.
2.
Priority?
3.
2.
3.
Cisco Public
62
The End
Questions?
The routers in the diagram are configured as shown. The loopback interface on
router R1 is labeled as lo0. All OSPF priorities are set to the default except for
Ethernet0 of router R2, which has an OSPF priority of 2. What will be the result of
the OSPF DR/BDR elections on the 192.1.1.0 network? (Choose two.)
R1 will be the DR
R1 will be the BDR
R2 will be the DR
ITE PC v4.0
Chapter 1
*. Decision process:
1.
2.
Priority?
3.
1.
R3 will be the DR
2.
3.
Cisco Public
63
Summary
2: DATABASE DESCRIPTION
3: LINK STATE REQUEST
4: LINK STATE UPDATE
5: LINK STATE ACKNOWLEDGEMENT
ITE PC v4.0
Chapter 1
Cisco Public
64
Summary
OSPF Characteristics
Metric = cost
Configuration
ITE PC v4.0
Chapter 1
Cisco Public
65
Summary
Verifying OSPF configuration
Use the following commands
show ip protocol
show ip route
ITE PC v4.0
Chapter 1
Cisco Public
66
ITE PC v4.0
Chapter 1
Cisco Public
67