Show Menu
Cheatography

Basic Config­uration

Route­r(c­onfig)# hostname R1
set hostname of Router
Route­r(c­onfig)# no ip domain­-lo­okup
disable dns lookup
Route­r(c­onfig)# enable secret class
set password for privileged EXEC mode
Route­r(c­onf­ig-­line)# password cisco
sets console password
Route­r(c­onf­ig-­line)# login
enables login
Route­r(c­onfig)# copy run start
copies running config­uration to startup config­uration

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 neighbor
shows ospf neighbor routers
Router# show ip route ospf
verify ospf networks
Router# show ip protocols
verify ospf config­uration
Router# show ip ospf interface
shows summary of OSPF-e­nabled interfaces
Router# show ip ospf interface F0/0
shows ospf inform­ation about that interface
For OSPFv3 add ipv6 to the command: Route­r(c­onfig)# show ipv6 route ospf
 

Configure OSPF

Route­r(c­onfig)# router ospf 1
enable ospf with specific process id
Route­r(c­onf­ig-­rou­ter)# network 192.16­8.1.0 0.0.0.255 area 0
configure network with area id 0
Route­r(c­onf­ig-­rou­ter)# router-id 1.1.1.1
set router id manually
Route­r(c­onf­ig-­rou­ter)# auto-cost refere­nce­-ba­ndwith 10000
change default reference bandwith
Route­r(c­onfig)# clear ip ospf process
clears ospf to refresh everything (f.e after set router-id)
Route­r(c­onfig)# passiv­e-i­nte­rface F0/0
routing updates won't send on that interface
Route­r(c­onfig)# no-pas­siv­e-i­nte­rface F0/0
router will send OSPF routing updates on that interface
Route­r(c­onf­ig-if)# ip ospf cost 1565
set cost on a interface
Route­r(c­onf­ig-if)# ip ospf priority 255
configure interface with ospf priority
Route­r(c­onf­ig-if)# ip ospf priority 0
router can not be become DR or BDR

Topology

Topology for 10.1.1.13
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Single-Area OSPF Cheat Sheet

          More Cheat Sheets by marcx28