OSPF Myanmar
OSPF Myanmar
OSPF Myanmar
Table of Contents
1. INTRODUCTION
1.1 Routing Protocol, Routed Protocol and Routable Protocol
1.2 Routing protocol
1.3 Routed protocol and Rouable protocol
1.4 Interior gateway routing protocol (IGP) and Exterior gateway routing protocol (EGP)
1.5 Autonomous System (AS)
1.6 OSPF Operation
2. OSPF Neighbor Relationship
2.1 Router-ID (RID)
2.2 OSPF Aadjacency
2.3 OSPF 2-way State
2.4 Choosing a Designated Router
2.5 OSPF Network Types
2.6 DR, BDR Election
2.7 OSPF Database Exchange Process
2.8 OSPF Link-state Packets (LSP)
2.9 Meeting Neighbors
3. OSPF Tables
3.1 Neighbor Table
3.2 Topology Table (LSDB)
3.2.1 OSPF Cost
3.3 Routing Table
4. Link-State Advertisements (LSAs)
4.1 Router LSA (Type 1 LSA)
4.2 Network LSA (Type 2 LSA)
4.3 Summary LSAs for ABRs (Type 3 LSA)
4.4 Summary LSA for ASBRs (Type 4 LSA)
4.5 Autonomous System External LSAs (Type 5 LSA)
4.5.1 Two External Metrics Types
4.6 Group Membership LSA (Type 6 LSA)
4.7 NSSA external LSA (Type 7 LSA)
4.8 BGP LSA or Link LSA (Type 8)
4.9 Opaque LSAs (Type 9, 10, 11 LSAs)
5. OSPF Areas
6. OSPF Routers and Routes
7. OSPF Area Types
7.1 Backbone Area (Area 0)
7.2 Standard Area
7.3 Stub Area
7.4 Totally Stubby Area
7.5 Not-So-Stubby-Area (NSSA)
8. Administrative Distance
9. OSPFv2 Authentication
10. OSPF Load Balancing
11. OSPF Default Routes
12. OSPF Configuration in Single Area
12.1 OSPF Process ID
12.2 OSPF Network Command
12.3 Wildcard Mask
13. OSPF Configuration in Multi-Area
14. Troubleshooting OSPFv2 routing protocol
14.1 Interface Troubleshooting
14.2 Area Troubleshooting
14.3 Neighbor Troubleshooting
2
1. INTRODUCTION
Router
Connected route
Static route
Dynamic route
R algorithm
exchange
Router
r
routing protocol (RIP, EIGRP, OSPF forwarding (routing)
()
1.4 Interior gateway routing protocol (IGP) and Exterior gateway routing protocol (EGP)
Interior gateway routing protocol (IGP) Exterior gateway routing protocol (EGP)
IGP
OSPF, EIGRP, RIP
enterprise company () ( )
(Step 2) IP Address
IP Address router-id
IP Address Router router-id
7
(Step 4) IP Address
router-id
R1 Router router-id
+ Loopback 0: 10.0.0.1
+ Loopback 1: 12.0.0.1
+ Fa0/0: 192.168.1.1
+ Fa0/1: 200.200.200.1
IP Address
OSPF router-id
IP Address router-id
R2 Router loopb
router-id command
Init
- 2-way state or
bidirecti
2-way -
-
neighbor
-
10
-
- n
DR,
BDR -
Full St
ExStart > Exchange > Loading > Full State
Point-to-point
Point-to-multipoint
Broadcast
Non-Broadcast(NBMA)
Point-to-Point networks - - - -
Router Router
Router - -
DR, BDR
OSPF Router
Router
Router
Router
DR, BDR
Figure 2.2 Database exchange to and from the DR on and Ethernet network
- DR, Broadcast
( ) ExStart, Exchange,
Full state
Exchange Router DD
-
-
2-
- - -To-Multipoi
Broadcast
15
-
Hello pac
2-way sta
OSPF -
Hello Packet
OSPF link-stat
OSPF Router router-id Hello
OSPF Router
- Broadcast
- Full State (fully adjacent state) -
database exc
Router
full adjacency relationship or Full state
OSPF Router
OSPF Router OSPF Router
Hello Router Router
Hello
requirement parameter
4. Dead interval ou
(Hello mess )
Down reconvergence
(neighbor table, topology table-LSDB
5. OSPF Area ID
5. OSPF Areas
error
19
(*
Router
2-
OSPF DR, Broadcast
- -
dr, DD
exstart, exchange, loading,
master Router
router-id master
R1
20
router-id
DD R2
LSDB link
informatio link state request (LSR packet) li
OSPF
1. Hello
LSDB Router
LSA Router
LSDB
R2 Router
LSDB
R link state
reque
22
OSPF Router
ackn
R R
3. OSPF Tables
OSPF Router
Neighbor Table
Topology Table
Routing Table
command
OSPF Router
OSPF
Router Area
OSPF
OSPF Router
netwo
topolog
p
24
EIGRP
(best route)
Router Router R7
Router R5 R6
-
OSP
R1 R5 R6 R8
OSPF
cost 10
100/100=1
FastEth
100/10=10
E cost
C
Gigabit Ethernet
interface ba
26
in
co
Router(config-if)#bandwidth 1000000
co
cos
neighbor com
point to multi
OSPF Router
Router#show ip route
Router
- - - - Area -
- - - - Non-
Broadcast BDR network
(Broadcast, Non-Broadcast
R1 Router
router-id IP Address
Area
33
Area
Area 4 sub
Area 0
OSPF
topology Area
summary
Router OSPF
Router -
R3 Router ASBR OSPF
R3 Router Area
ASBR Area
ASBR Area
Router ABR Area
Backbone Area ABR
Router Area
ASBR ADV Router
37
R7 Router - BR Router
ADV Router (Advertising Router ASBR Router next hop
Router OSPF Router ASBR Router
ASBR Router Router
ASBR Area R4
38
Router
R7 Router -
{ Type 4 L
external network Router
Router
Router
O E1 O E2
42
R6 Router
R6#show ip route
command
internal
(OSPF Area
Area ABR
Area
Router Area
ABR Area
R3 Router OSPF
Area R2 Router
47
OSPF Router
48
5. OSPF Areas
n Router LSDB
Area Router
network
( )
link-state D
Router
OSPF Router up or
OSPF Router
multicast address LSA link
Router Area Area 1 Router LSA
Area Router Router Router
LSA Router
Router SPF
co
Area d
Hierarchical D
l -
CPU
Area Backbone Area OSPF Hierarchic OSPF domain (OSPF Autonomous System)
Area backbone Area Area Area Backbone Area
Standard Area
OSPF Area D
(intra-Area OSPF
(interArea OSPF
1. Backbone Area
2. Standard Area
3. Stub Area
4. Totally Stubby Area
5. Not-So-Stubby-Area (NSSA)
command
Area command no-
floo
Area ABR
Area
56
ABR Router
8. Administrative Distance
OSPF
Router OSPF
Router OSPF
OSPF
R R
R
(parameter)
OSPF cost (sum of Router
Router
Router OSPF ol (
Router OSPF
OSPF protocol EIGRP protocol
Cisco Router ()
58
OSPF
Router
Router OSPF
Administrative D
Router Router
default Administrative D
Adminis Router
EIGRP route OSPF OSPF
D
OSPF
[ Router u
routing
59
9. OSPFv2 Authentication
OSPFv2 Authentication T
- -
Router
Router fo
OSPFv2
Null authentication
Clear Text authentication
MD5 authentication
Null authentication (
interface configuration
interface subcommand Router
command command
Router
OSPF
Router
Router
command -
command authentication key ( cisco123
R1 Router Router
con Area
OSPF process
OSPF
routi OSPF
OSPF
Router Router
Router
Router
- per-destination IP Address
OSPF
Router
Company network Router (B1, B2, B3) default route configure Router (R1)
default route dynamically learn dynamically learn (B1, B2, B3) Router
Internet R1 forward
(
)
https://drive.google.com/file/d/0B2tglCgu24N3X0ZKNERFUTlzaW8/view?usp=sharing
https://drive.google.com/file/d/0B2tglCgu24N3RzJxYXlPOEs1SVU/view?usp=sharing
66
Command OSPF
Albuquerque Router
69
Albuquerque#show ip route
( )
command
Albuquerque Router
Seville Router
packet tracer Instructor version 6.1.1 download Lab file packet tracer
version
https://drive.google.com/file/d/0B2tglCgu24N3X0ZKNERFUTlzaW8/view?usp=sharing
OSPF configuration
Interface Troubleshooting
Area Troubleshooting
Neighbor Troubleshooting
Other issuees
R1 Router
command OSPF
84
OSPF debug
R1#undebug all
command debug
Router R3
R3#show ip ospf
command configure
85
R1 Router
R2
command detail
87
R1 Router
------------------------------------------------------------------------------------------------------------------------------------------------
D Dead R 40 C 10 R 40
R4 Dead timer 40 Router packet R received
value C configured value C 10 local Router R4
configure dead timer value 10 R4 Router received dead
timer value 40 configured dead timer value 10
R4 Hello, Dead timers (5, 10) R1 Hello, Dead timers (10, 40) R1 R4
neighbor
89
R1 Router
Router
command configure
92
15.1 Configuration
IR-1
ABR-1
ABR-2
ABR-3
ABR-3 Backbone Area Totally Stubby Area Area Border Router ABR-3 Totally
Stubby Area
IR-2
IR-3
ABR-4
IR-4
IR-5
ASBR
ASBR OSPF AS (OSPF Domain) external network (e.g, EIGRP network) Autonomous
System Border Router ASBR Router EIGRP Router EIGRP protocol
EIGRP protocol configuration
EIGRP
15.2 Verification
IR-1 Router
ABR-1 Router
ABR-1#show ip route
IR-1 Router
IR-1 Router Type 1 LSA Router Link States Area 0 virtual link
Summary Net Link States
Type 5 LSA AS External Link States
106
Summary Net Link States ABR-3 (10.0.0.6) default route (0.0.0.0) IR-2 Totally
Stubby Area Router Area Area Border Router
default route
IR-4 Router link state database IR-4 Router Stub Area Router
OSPF Domain
Type 4 ype
4 Stub Area pass Stub Area
forward ABR default route
107
Summary Net Link States (Area 4) IR-4 Stub Area ABR Router ABR-4 (10.0.0.9)
default route (0.0.0.0)
Summary Net Link States (Area 4) ABR Router ABR-4 (10.0.0.9) default
route OSPF domain ADV Router
(Advertise Router
Dual-stacks
Tunneling (6 To 4 Tunnel)
NAT Protocol Translator (NAT-PT)
Protocol -
Area design concept
Protocol interface enable
Interface enable OSPF protocol () neighbor discovery
Protocol neighbor Area Number, Hello Interval, Dead Inte
( OSPFv2 OSPFv3 )
Protocol Router neighbor LSDB
LSDB exchange SPF Algorithm best route
Protocol cost concept
Protocol LSA topology table
1) Step 1 assign
4) Step 4 router-id
111
Configuration
https://drive.google.com/file/d/0B2tglCgu24N3VGd1dkJSc2E0THc/view?usp=sharing
(Step 4) Global configuration mode (config) # OSPF protocol Router configuration mode (config-rtr) #
R3 Router running-configuration
116
117
R1 Router
R3 Router configuration
R1
R2 Neighbor Table -
119
120
R1 Router
FF00::/8
IPv6 Broadcast Address
OSPFv3 Broadcast DROther Router (all SPF Router routing information (DD of LSDB)
DR Router (Designated Router
IP Router
Router interface
124
17. REFERENCES
>https://supportforums.cisco.com
> https://www.informit.com
>http://www.ccieuniversity.com
>https://networklessons.com
>http://packetlife.net
>http://www.cisco.com
>http://www.learncisco.net
>http://study-ccna.com
>http://www.itcertnotes.com
>http://www.9tut.com
>http://www.getnetworking.net
>http://wiki.nil.com
Email: [email protected]
Skype: kyawswar711