OSPF Cheat Sheet
by marcx28 via [Link]/100679/cs/21734/
Basic Configuration Configure OSPF
Router(config)# set hostname of Router Router(config)# router ospf 1 enable ospf with specific
hostname R1 process id
Router(config)# no ip disable dns lookup Router(config-router)# configure network with
domain-lookup network 192.168.1.0 [Link] area id 0
area 0
Router(config)# enable set password for privileged EXEC
secret class mode Router(config-router)# set router id manually
router-id [Link]
Router(config-line)# sets console password
password cisco Router(config-router)# auto- change default reference
cost reference-bandwith 10000 bandwith
Router(config-line)# enables login
login Router(config)# clear ip ospf clears ospf to refresh
process everything (f.e after set
Router(config)# copy copies running configuration to
router-id)
run start startup configuration
Router(config)# passive-inte‐ routing updates won't
Topology rface F0/0 send on that interface
Router(config)# no-passive-i‐ router will send OSPF
nterface F0/0 routing updates on that
interface
Router(config-if)# ip ospf set cost on a interface
cost 1565
Router(config-if)# ip ospf configure interface with
priority 255 ospf priority
Router(config-if)# ip ospf router can not be become
priority 0 DR or BDR
Topology
Topology for [Link] and [Link]
Verify OSPF
Router# show ip ospf shows all ospf information
Router# show ip ospf shows ospf neighbor routers
neighbor
Router# show ip route verify ospf networks Topology for [Link]
ospf
Router# show ip protocols verify ospf configuration
Router# show ip ospf shows summary of OSPF-e‐
interface nabled interfaces
Router# show ip ospf shows ospf information about
interface F0/0 that interface
For OSPFv3 add ipv6 to the command: Router(config)# show
ipv6 route ospf
By marcx28 Published 5th February, 2020. Sponsored by [Link]
[Link]/marcx28/ Last updated 5th February, 2020. Learn to solve cryptic crosswords!
Page 1 of 1. [Link]