Monday, 15 April 2013

Basic OSPF

OSFP


Objectives

  • Cable the network
  • Assign IP addresses
  • Configure OSPF
  • Configure Cost
  • Configure Hello and Dead timers
  • Verify configuration

Topology



Configure OSPF

Enable OSPF autonomous system 1 and use the network command to add directly connected networks. Use the router command to configure the RID manually. This is the final router that I configured, which shows OSPF forming adjacencies.

R2(config)#router ospf 1
R2(config-router)#router 10.0.0.2
R2(config-router)#Reload or use "clear ip ospf process" command, for this to take effect
R2(config-router)#network 192.168.0.4 0.0.0.3 area 0
R2(config-router)#network
00:02:16: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.0.5 on Serial0/0/0 from LOADING to FULL, Loading Done
R2(config-router)#network 192.168.0.8 0.0.0.3 area 0
R2(config-router)#
00:02:36: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.0.9 on Serial0/1/0 from LOADING to FULL, Loading Done
R2(config-router)#

Configure OSPF cost

Use the formula 10^8/link speed to find the ip ospf cost. 
R1(config)#interface Serial0/1/1
R1(config-if)#ip ospf cost 1785
R1(config-if)#int s0/1/0
R1(config-if)#ip ospf cost 1388

To increase the reference bandwidth to 10000 to simulate 10GigE speeds, use the following command; auto-cost reference-bandwidth 10000


Configure Hello and Dead Timers

This will need to be configured on all OSPF routers in the same area. Otherwise OSPF neighbors will not form neighbors.

R1(config-if)#int s0/1/1
R1(config-if)#ip ospf hello-interval 5
R1(config-if)#ip ospf dead-interval 20
00:29:34: %OSPF-5-ADJCHG: Process 1, Nbr 10.0.0.2 on Serial0/1/0 from FULL to DOWN, Neighbor Down: Dead timer expired

00:29:34: %OSPF-5-ADJCHG: Process 1, Nbr 10.0.0.2 on Serial0/1/0 from FULL to DOWN, Neighbor Down: Interface down or detached
R1(config-if)#int s0/1/0
R1(config-if)#ip ospf hello-interval 5
R1(config-if)#ip ospf dead-interval 20
00:29:34: %OSPF-5-ADJCHG: Process 1, Nbr 10.0.0.2 on Serial0/1/0 from FULL to DOWN, Neighbor Down: Dead timer expired

00:29:34: %OSPF-5-ADJCHG: Process 1, Nbr 10.0.0.2 on Serial0/1/0 from FULL to DOWN, Neighbor Down: Interface down or detached
R1(config-if)#

Verify configuration

show ip protocols
 

show ip ospf


show ip ospf neighbor

 
show ip ospf interface

Complete


No comments:

Post a Comment