OSPF Flashcards
(15 cards)
LSA
Link State Advertisement:
Routers exchange these to maintain consistent databases
Network changes generate them
LSDBs are composed of all received LSAs
A link state update contains:
An OSPF header and a string of LSAs
Each LSA has its own header
Routers acknowledge the receipt of LSAs
Forming an OSPF Adjacency
Down: initial state
Init: Hello packets was seen from a non-adjacent neighbor
2-way: Communication is bidirectional between the two routers
ExStart: A primary and secondary relationship is negotiated
Exchange: Database description packets are exchanged
Loading: LSA information is exchanged
Full: LSDBs are identical
Adjacency Requirements
Primary IP address of peers are in the same subnet with the same mask
Interfaces of peers are the same type and in the same OSPF area
Hello and dead intervals of peers must match
Each peer has a unique router ID
OSPF IP maximum transmission units (MTUs) match
OSPF authentication, if enabled, is successful
OSPF status command
get router info ospf status
OSPF interface command
get router info ospf interface
States-
DR: Designated Router
BDR: Backup Designated Router
DROther: Neither DR nor BDR
shows info of DR and BDR
also shows number of neighbor and adjacencies
OSPF Neighbors command
get router info ospf neighbor
State column-
Displays the adjacency state and whether the interface is a DR, BDR, or neither (DROther)
Dash(-) represents point-to-point network
OSPF LSDB command
get router info ospf database brief
shows the LSDB entries ordered by LSA Types
LSA Type 1
get router info ospf database router lsa
AKA router link states
Self-Originated LSAs
LSAs that originated on the local FGT
get router info ospf database self-originate
OSPF Protocol/Port
IP/89
OSPF Real-Time Debug
diagnose ip router ospf all enable
diagnose ip router ospf level info
diagnose debug enale
to Disable:
diagnose ip router ospf all disable
diagnose ip router ospf level none
diagnose debug disable
Diagnose debug reset does NOT stop it
Command to restart OSPF process
execute router clear ospf process
by default, routing real-time debugs stop running after restarting the routing process
can use the âzlâ flag to make it persist after restart
diagnose ip router zl enable
Type 5 LSAs
AS External Link States
OSPF Logging
FGT logs:
Neighbor down/up
OSPF message exchange
Negotiation errors
enabled by default:
config router ospf
set log-neighbor-change enable
end
Can also be seen in GUI under: Log & Report > System Events > Router Events