What is OSPF? How to Configure OSPF on a Network Example

By | 9th November 2015

OSPF Configuration

How to Configure OSPF on a Network

On this page we’ll be looking at:

*   Configuring OSPF on a Network.

*   Creating a default Route in OSPF.

Configuring OSPF on a Network using the topology below. Note all router interface IP addresses had been configured appropriately.

ospf config

HQ#config t

HQ(config-router)# router OSPF 1

HQ(config-router)#network area 0

HQ(config-router)#network area 0

HQ(config-router)#network area 0


All routers in the same network domain must be configured in the same manner.

You might notice the difference in the above configuration to that or RIP and EIGRP.

The OSPF process number is 1, The process number could be a any value between 1 to 65,535.

OSPF process number does not propagate outside of the area. Any value could be used. Also, you can use a different value for every router in an AS. Note that this is different from EIGRP, where every router in the AS must have the same process number.

How to create a default Route in OSPF Enabled Network

You want to propagate a default route within an OSPF network.

Propagating a default route within OSPF, use the default-information originate configuration command:

HQ#configure terminal

HQ(config)#ip route 

HQ(config)#router ospf 1

HQ(config-router)#default-information originate metric 30 metric-type 1



use the show ip route ospf to verify you configuration

Troubleshoot and verify OSPFConfiguration 

How to Configure OSPF with Authentication

 How to Configure EIGRP on a Network

Leave a Reply

Your email address will not be published. Required fields are marked *