ospf configuration using two routers

Posted: 6 Jul 2018 in CCNA
Tags: , , ,

This is a basic ospf configuration lab using two routers. Using two routers ospf configuration have been done in this lab. I have used cisco Packet tracer software to demonstrate the ospf configuration. This if you are learning or preparing for ccna certification or ccna training then this lab is for you. Simple and to the point in just few simple steps.

I hope you can clearly see the OSPF Topology diagram drawn below. And now if you can see you can clearly analyse that there are total three routers in this topology table and total three networks.

Now let’s perform the ospf lab in just few simple steps.

Step 1:The first thing you have to do is to draw the topology Diagram using cisco packet tracer.
Step 2: Assign IP Address on router Interfaces and PC.

 

 

ospf configuration Lab

 

Step 3: OSPF Configuration on router R1:

Now configure ospf Routing on Router R1 as i have done below.

 

R1(config)#router ospf 1

R1(config-router)#network 192.168.0.0 0.0.0.255 area 0

R1(config-router)#network 192.168.1.0 0.0.0.255 area 0

Step 4: OSPF Configuration on Router R2:

After you done ospf routing over router R1 it’s time to configure Router R2 for OSPF.

 

R2(config)#router ospf 2

R2(config-router)#network 192.168.1.0 0.0.0.255 area 0

R2(config-router)#network 192.168.2.0 0.0.0.255 area 0

 

 

ospf routing Verification:

After ospf configuration you must verify whether ospf has been configured on your router or not using below command.

 

R2#show ip protocols

Routing Protocol is “ospf 2”

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

Router ID 192.168.2.1

Number of areas in this router is 1. 1 normal 0 stub 0 nssa

Maximum path: 4

Routing for Networks:

192.168.1.0 0.0.0.255 area 0

192.168.2.0 0.0.0.255 area 0

Routing Information Sources:

Gateway Distance Last Update

192.168.1.1 110 00:01:29

192.168.2.1 110 00:01:28

Distance: (default is 110)

 

Troubleshoot OSPF:

Troubleshooting is the one of most important task in ccna or for any network engineer.

Below command is used to see the routing table of OSPF Routing and helps you to troubleshoot OSPF if any error.

 

R2#show ip route

Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

Gateway of last resort is not set

O 192.168.0.0/24 [110/2] via 192.168.1.1, 00:01:01, FastEthernet0/0

C 192.168.1.0/24 is directly connected, FastEthernet0/0

C 192.168.2.0/24 is directly connected, FastEthernet0/1

 

Hence we have finished ospf configuration Lab successfully using cisco packet tracer.

If Any of you have any doubts regarding ospf Configuration feel free to share your doubts or questions through comment section.

 

Points to remember while configuring OSPF:

We use wild card Mask instead of subnet mask in ospf.

wild card mask is the inverse of subnetmask.

In line router ospf 1 and router ospf 2  1 and 2 are Process ID which will be different for all routers.

and Area 0 line 0 is the Area. If all routers have same area this means all these routers are controlled by same Admin or same Company.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.