You are on page 1of 1

OSPF Cheat Sheet

by marcx28 via cheatography.com/100679/cs/21734/

Basic Config​uration Configure OSPF

Route​r(c​onfig)# set hostname of Router Route​r(c​onfig)# router ospf 1 enable ospf with specific
hostname R1 process id

Route​r(c​onfig)# no ip disable dns lookup Route​r(c​onf​ig-​rou​ter)# configure network with


domain​-lo​okup network 192.16​8.1.0 0.0.0.255 area id 0
area 0
Route​r(c​onfig)# enable set password for privileged EXEC
secret class mode Route​r(c​onf​ig-​rou​ter)# set router id manually
router-id 1.1.1.1
Route​r(c​onf​ig-​line)# sets console password
password cisco Route​r(c​onf​ig-​rou​ter)# auto- change default reference
cost refere​nce​-ba​ndwith 10000 bandwith
Route​r(c​onf​ig-​line)# enables login
login Route​r(c​onfig)# clear ip ospf clears ospf to refresh
process everything (f.e after set
Route​r(c​onfig)# copy copies running config​uration to
router-id)
run start startup config​uration
Route​r(c​onfig)# passiv​e-i​nte​‐ routing updates won't

Topology rface F0/0 send on that interface

Route​r(c​onfig)# no-pas​siv​e-i​‐ router will send OSPF


nte​rface F0/0 routing updates on that
interface
Route​r(c​onf​ig-if)# ip ospf set cost on a interface
cost 1565

Route​r(c​onf​ig-if)# ip ospf configure interface with


priority 255 ospf priority

Route​r(c​onf​ig-if)# ip ospf router can not be become


priority 0 DR or BDR

Topology

Topology for 8.2.4.5 and 10.2.2.3

Verify OSPF

Router# show ip ospf shows all ospf inform​ation

Router# show ip ospf shows ospf neighbor routers


neighbor

Router# show ip route verify ospf networks Topology for 10.1.1.13


ospf

Router# show ip protocols verify ospf config​uration

Router# show ip ospf shows summary of OSPF-e​‐


interface nabled interfaces

Router# show ip ospf shows ospf inform​ation about


interface F0/0 that interface

For OSPFv3 add ipv6 to the command: Route​r(c​onfig)# show


ipv6 route ospf

By marcx28 Published 5th February, 2020. Sponsored by CrosswordCheats.com


cheatography.com/marcx28/ Last updated 5th February, 2020. Learn to solve cryptic crosswords!
Page 1 of 1. http://crosswordcheats.com

You might also like