OSPF Flashcards
What kind of routing protocol is OSFP?
Distance Vector
Link State
Link State
Does OSPF only know about it’s neighbor’s routes or have a picture of the entire network topology
OSPF is a Link State routing protocol so it knows about the while network topology.
A Distance Vector protocol like RIP or EIGRP only learns about routes from its directly connected neighbors.
What kind of packets are used in OSPF to exchange routing infrormation?
LSA - Link State Advertisements are used to pass routing updates between routers.
List steps taken in OSPF route learning.

List OSPF Packet Types
- Hello Packet - Router sends and listens for these on enabled interfaces
- DBD - DataBase Descriptor - Info about the networks a router knows about
- LSR - Link State Request - asking for more information about a link
- LSA - Link State Advertisement - A routing update
- LSU - Link State Update - contains a list of LSA’s that should be updated, typicially flooded out
- LSAck - Recieving routers acknowledge LSAs
What is the number called that is listed when enabling OSPF on a router?
i.e. R1(config)# router ospf 100
the Process ID
- This is a locally, not globaly significant number.
- This does not have to be the same on other neighbor routers.
- Usually only one Process ID is used on a router no matter how many interfaces it has.
What is the number denote that is entered after the network address and wildcard mask in OSPF?
i.e:
R1(config)# router ospf 1
R1(config)# network 192.168.0.0 0.0.255.255 area 0
R1(config)# network 10.0.0.0 0.255.255.255 area 0
The area number will be the same on all routers that are sharing routing info in their databases with each other.
In OSPF, if you enter the following commands and hit enter, what will happen reguarding the wildcard mask?
R1 (config) # router ospf 100
R1(config-router) network 10.0.0.0
You’ll get an % Incomplete command error because OSFP does not default to classful network/wildcard masks.
In OSPF when entering the command:
R1(config-router) network 192.168.0.0 0.0.255.255 area 0
Will the network 192.168.0.0/16 be advertised?
Probably No.
Only if an interface on that router is configured on that exact network / mask combination. If it only has interfaces configured with 192.168.10.0/24 and 192.168.20.0/24, those spific networks will be advertised, not the entire 192.168.0.0/16 network.
Command to show OSPF running config
R1# show run | section ospf

command to show detailed information about OSPF:
R1# show ip protocols

Command to show interfaces setup for OSPF?
R1# show ip ospf interface brief

command to show nearby OSPF devices:
R1# show ip ospf neighbor

Command to view OSPF database
R1# show ip ospf database

How is the default Router ID chosen in OSPF?
Highest loopback interface IP.
If no loopback interfaces, then highest interface IP address.
Can also manually be set.
Command to mamually config Router ID
R1(config) router ospf 100
R1(config-router)# router-id 2.2.2.2
(Doesnt have to be an IP address on that router but must be in the form of an IPv4 address)
Commands to configure OSPF passive interface

Commands to default to all passive OSPF interfaces and the allow some interfaces to not be passive:

Command to configure OSPF default route:
R1(config)# ip route 0.0.0.0 0.0.0.0 203.0.113.1
R1(config)# router ospf 100
R1(config-router)# default-information originate

What does O*E2 indicate in the show ip routes table?
The route was a static route on a router that was injected (redistributed) into OSPF.
What does O IA indicate in the show ip routes table?
The route was learned from an ABR - Area Boundry Router and is an ‘Inter Area’ Route that’s located in another OSPF area.
In OSPF, does manually setting the router ID imediatly take effect?
No. OSPF must be manually restarted for the new update to take effect.
How is the OSPF metric calculated?
Based on path ‘cost’.
Cost is derieved from the interface bandwidth.
How is the ‘Cost’ in OSPF referenced and be modified?
Based on 100 / interface bandwidth.
If this is less than 1, the protocol rounds up to 1
should be adjusted by:
R1(config)# router ospf 1
R1(config-router)# auto-cost reference-bandwidth 100000 (in mbit)




