Module 5: Practice·Lesson 5.4 (4 of 5 in this module)·20 of 29 in the OSPF course
OSPF cheat sheet
Which setting or output should you check next? Use this reference beside your OSPF lab, then return to the linked lessons when a result needs more explanation.
Intermediate · 6 min read
This is a revision aid for the course's Cisco IOS/IOS XE examples, not a replacement for the explanations. OSPFv2 carries IPv4 routes. OSPFv3 is used for IPv6 in this course. Defaults and command availability can differ by platform and release, so verify the running values on your lab image.
Defaults and numbers
Defaults and numbers
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Each item on the left, with what it means on the right.
Router ID
router-id under router ospf,
otherwise the highest IPv4 address on an up loopback,
otherwise the highest IPv4 address on any other up interface.
A router ID identifies the OSPF process in routing messages; it is not necessarily a port address. Set it before enabling OSPF interfaces. A running process may need a planned restart to adopt a changed ID. Check the active value with show ip ospf rather than assuming the saved command has already taken effect.
Neighbours
Neighbours
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Read each row across: the left box names the item, the others describe it.
Neighbours
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Read each row across: the left box names the item, the others describe it.
Packets and LSAs
A packet is the message travelling between routers. An LSA is a record carried inside an update. The designated router (DR) coordinates flooding on a shared segment; the backup designated router (BDR) is ready to take over after DR failure is detected. A DROther is neither of those elected roles.
Packets and LSAs
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Each item on the left, with what it means on the right.
An area border router (ABR) connects areas. An autonomous system boundary router (ASBR) introduces external routes. These roles differ from the DR role on a particular shared link.
LSA
Created by
Scope
Route code
1 Router
Every router
Its area
O
2 Network
DR of a multi-access segment
Its area
O
3 Summary
ABR
Into other areas
O IA
5 External
ASBR
Whole OSPF domain (normal areas)
O E1 / O E2
Network types
Type
Default on
DR
Timers
Broadcast
Ethernet
Yes
10/40
Point-to-point
HDLC/PPP serial links and some tunnel designs; inspect actual output
No
10/40 in this IOS example
Non-broadcast
Frame Relay
Yes
30/120
Point-to-multipoint
Configured only
No
30/120
Loopback
Loopbacks
No
Advertised as /32
Configuration
These are reference commands, not one block to paste into every router. In the three-router lab, R1 Gi0/1 uses 10.0.12.1/30 towards R2 10.0.12.2/30. The wildcard selects that interface; it does not change its subnet mask. Start the examples in global configuration mode.
Process-level commands. The process ID is local; the router ID must be unique.
interface GigabitEthernet0/1
ip ospf 1 area 0
ip ospf network point-to-point
ip ospf cost 10
ip ospf priority 0
ip ospf hello-interval 10
ip ospf dead-interval 40
bandwidth 100000
Independent interface settings for recognition. The explicit OSPF cost overrides the bandwidth calculation; bandwidth does not change physical speed. Priority has no election effect with point-to-point OSPF. You do not need to set default timers explicitly.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Each item on the left, with what it means on the right.
OSPFv3 for IPv6
This table uses the classic ipv6 router ospf syntax taught in the IPv6 lab. OSPFv3 address-family configuration is a separate command style; do not mix fragments from the two styles as though they were a complete configuration.
OSPFv3 for IPv6
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Each item on the left, with what it means on the right.
Use the reference in a five-minute check
On R2, inspect the interface, neighbour, database and route to 192.168.3.0/24 in that order. Explain what each command proves. On a router link, Full means synchronisation completed; the LAN prefix and route still need checking. If the route is correct but the user test fails, inspect host gateways, the return route and filtering rather than restarting OSPF.