Configuring OSPF on a Cisco router

Posted October 10, 2003 by lvance in Cisco router

This recipe describes configuring OSPF (Open Shortest Path First) in a Cisco router. OSPF was created to provide a more scalable dynamic routing solution than RIP. OSPF utilizes less bandwidth because, once established, it only sends routing table updates when there are changes.


router(config)#router ospf 1
router(config-router)#network 10.130.0.0 0.0.255.255 area 130

The command turns on the OSPF routing protocol with a process id of 1. The network line must be added to tell the router which networks will be participating in OSPF. This command can be expanded to include stub areas and not so stubby areas. That is how Cisco refers to it. You can run multiple processes of OSPF using different process ids.

Related commands:
show ip ospf neighbor
show ip ospf interface

The Conversation

Follow the reactions below and share your own thoughts.