Академический Документы
Профессиональный Документы
Культура Документы
Configuring OSPF in
a Single Area
2001, Cisco Systems, Inc.
5-1
Objectives
Upon completing this lesson, you will be
able to:
Explain why OSPF is better than RIP in a
large internetwork
Explain how OSPF discovers, chooses, and
maintains routes
Explain how OSPF operates in a single-area
NBMA environment
Configure OSPF for proper operation in a
single area
2001, Cisco Systems, Inc.
Objectives (cont.)
Configure a single-area OSPF environment
and verify proper operation (within described
guidelines) of your routers, given an
addressing scheme and other laboratory
parameters
Configure single-area OSPF in an NBMA
environment and verify proper operation
(within described guidelines) of your routers,
given an addressing scheme and other
laboratory parameters
2001, Cisco Systems, Inc.
OSPF Overview
5-4
What Is OSPF?
OSPF in IP Packets
89OSPF
6TCP
17UDP
Frame
Header
Frame Payload
IP
Header
Protocol
Number
Packet Payload
C
R
C
OSPF Terminology
5-7
Neighbors
Area 1
Interfaces
Cost = 10
Token
Ring
Cost = 1785
Neighborship
Database
Lists Neighbors
Area 0
Cost = 6
Topology
Database
Lists All Routes
Routing
Table
Lists Best Routes
5-9
Neighborship
D
E
Hello
A
afadjfjorqpoeru
39547439070713
Hello
Router ID
Hello/dead intervals
Neighbors
Area-ID
Router priority
DR IP address
BDR IP address
Authentication password
Stub area flag
Neighborship (cont.)
D
E
Hello
A
afadjfjorqpoeru
39547439070713
Hello
Router ID
Hello/dead intervals
Neighbors
Area-ID
Router priority
DR IP address
BDR IP address
Authentication password
Stub area flag
DR and BDR
DR
BDR
P=2
DR
BDR
Hello
P=1
P=1
P=0
Exchange Process
A
172.16.5.1/24
E0
172.16.5.2/24
E1
Down State
Exchange Process
A
172.16.5.1/24
E0
172.16.5.2/24
E1
Down State
Router B
Neighbors List
172.16.5.1/24, int E1
Exchange Process
A
172.16.5.1/24
E0
172.16.5.2/24
E1
Down State
Router B
Neighbors List
172.16.5.1/24, int E1
I am router ID 172.16.5.2, and I see 172.16.5.1.
Exchange Process
A
172.16.5.1/24
E0
172.16.5.2/24
E1
Down State
Router B
Neighbors List
172.16.5.1/24, int E1
I am router ID 172.16.5.2, and I see 172.16.5.1.
Router A
Neighbors List
172.16.5.2/24, int E0
Two-Way State
Discovering Routes
DR
E0
172.16.5.1
afadjfjorqpoeru
39547439070713
Hello
E0
172.16.5.3
Exstart State
afadjfjorqpoeru
39547439070713
Hello
Discovering Routes
DR
E0
172.16.5.1
afadjfjorqpoeru
39547439070713
Hello
E0
172.16.5.3
Exstart State
afadjfjorqpoeru
39547439070713
Hello
afadjfjorqpoeru
39547439070713
DBD
afadjfjorqpoeru
39547439070713
DBD
2001, Cisco Systems, Inc.
E0
172.16.5.1
E0
172.16.5.3
afadjfjorqpoeru
39547439070713
LSAck
afadjfjorqpoeru
39547439070713
LSAck
E0
172.16.5.1
E0
172.16.5.3
afadjfjorqpoeru
39547439070713
afadjfjorqpoeru
39547439070713
LSAck
LSAck
Loading State
afadjfjorqpoeru
39547439070713
LSR
LSU
afadjfjorqpoeru
39547439070713
E0
172.16.5.1
E0
172.16.5.3
afadjfjorqpoeru
39547439070713
afadjfjorqpoeru
39547439070713
LSAck
LSAck
Loading State
afadjfjorqpoeru
39547439070713
LSR
LSU
afadjfjorqpoeru
39547439070713
Choosing Routes
10.1.1.0/24
A
Token
Ring
10.2.2.0/24
B
Cost=6
FDDI
Cost=1
10.3.3.0/24
C
Cost=10
Cost=10
10.4.4.0/24
Topology Table
Net
Cost Out Interface
10.2.2.0
7
To0
This is the best route to 10.3.3.0.
10.3.3.0 17
To0
10.3.3.0 20
E0
2001, Cisco Systems, Inc.
DR
1 LSU
A
Maintaining Routing
Information (cont.)
2
Link-State Change
LSU
DR
1 LSU
A
Maintaining Routing
Information (cont.)
2
Link-State Change
LSU
DR
1 LSU
A
3
LSU
Maintaining Routing
Information (cont.)
2
Link-State Change
LSU
DR
4 I need to update
my routing table.
1 LSU
A
3
LSU
Configuring OSPF in
a Single Area
2001, Cisco Systems, Inc.
5-28
Configuring OSPF on
Internal Routers
Broadcast Network
Point-to-Point Network
S0
E0
10.64.0.2
E0
10.64.0.1
10.2.1.2
10. 2.1.1
S1
<OutputOmitted>
<OutputOmitted>
interfaceEthernet0
ipaddress10.64.0.1255.255.255.0
!
<OutputOmitted>
interfaceEthernet0
ipaddress10.64.0.2255.255.255.0
!
interfaceSerial0
ipaddress10.2.1.2255.255.255.0
<OutputOmitted>
routerospf50
network10.2.1.20.0.0.0area0
network10.64.0.20.0.0.0area0
routerospf1
network10.0.0.00.255.255.255area0
Network
172.16.0.0
Router ID:
Configuring Optional
Commands (cont.)
Traffic
Cisco
Router(config-if)#
Token
Ring
Non-Cisco
Verifying OSPF
Operation
2001, Cisco Systems, Inc.
5-32
show ip protocols
show ip route