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.
HQ#config t
HQ(config-router)# router OSPF 1
HQ(config-router)#network 10.10.10.0 0.0.0.255 area 0
HQ(config-router)#network 172.16.10.0 0.0.0.3 area 0
HQ(config-router)#network 172.16.10.8 0.0.0.3 area 0
HQ(config-router)#end
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.
Also, we used a wildcard mask or inverted subnet mask to define what range of network or hosts are permitted or deny access.
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 0.0.0.0 0.0.0.0 172.16.10.2
HQ(config)#router ospf 1
HQ(config-router)#default-information originate metric 30 metric-type 1
HQ(config-router)#end
HQ#
The above configuration enables OSPF to
advertise a default route (0.0.0.0) into a normal area or destination network (172.16.10.2).
Join Forum Discussion
How to Configure EIGRP on a Network