Sharing Ilmu

Sharing for useful things

Configuration Dynamic Routing OSPF on Cisco Router

In this tutorial I’ll discuss about how to configuration of dynamic routing protocol using ospf. ospf is link state dynamic routing protocol where no Hop count limit.  Work with administrative distance 110. The following is the topologi :

Configure IP Address on R1 :

R1(config)#int g0/0/0
R1(config-if)#ip add 10.10.10.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#int g0/0/1
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown

Configure IP Address on R2 :

R2(config)#int g0/0/0
R2(config-if)#ip add 10.10.10.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#int g0/0/1
R2(config-if)#ip add 192.168.2.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit

Configure IP Address on PC0 :

Configure IP Address on PC1 :

Configure OSPF on R1 :

R1(config)#router ospf 1
R1(config-router)#router-id 10.10.10.1
R1(config-router)#network 10.10.10.0 0.0.0.255 area 0
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
R1(config-router)#exit

 

Configure OSPF on R2 :

R2(config)#router ospf 1
R2(config-router)#router-id 10.10.10.2
R2(config-router)#network 10.10.10.0 0.0.0.255 area 0
R2(config-router)#network 192.168.2.0 0.0.0.255 area 0
R2(config-router)#exit

 

If you look at the network configuration format is 10.10.10.0 it’s ip network and 0.0.0.255 it’s wildcard mask from subnetmask 255.255.255.0 (wildcard mask write is 255.255.255.255 – 255.255.255.0 = 0.0.0.255) area is  area 0 (backbone area).

Check ip route ospf status on R1 :

 

Check ip route ospf status on R2 :

 

Now test ping between PC0 and PC1 :

Connection already successfull.

Leave a Reply

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

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>