0% found this document useful (0 votes)
98 views1 page

OSPF Configuration Cheat Sheet

This document provides a cheat sheet for configuring and verifying OSPF routing. It outlines the basic OSPF configuration commands needed to enable OSPF routing on a router with a specific process ID and network, set the router ID, and configure cost metrics and interface priorities. It also lists show commands for verifying OSPF neighbor relationships, routes, configuration, and interface information. Topologies are provided as examples.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views1 page

OSPF Configuration Cheat Sheet

This document provides a cheat sheet for configuring and verifying OSPF routing. It outlines the basic OSPF configuration commands needed to enable OSPF routing on a router with a specific process ID and network, set the router ID, and configure cost metrics and interface priorities. It also lists show commands for verifying OSPF neighbor relationships, routes, configuration, and interface information. Topologies are provided as examples.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

OSPF Cheat Sheet

by marcx28 via [Link]/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 [Link] 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 [Link]
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 [Link] and [Link]

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 [Link]


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 [Link]


[Link]/marcx28/ Last updated 5th February, 2020. Learn to solve cryptic crosswords!
Page 1 of 1. [Link]

You might also like