cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4967
Views
5
Helpful
4
Replies

Simple OSPF configuration

beiriger
Level 1
Level 1

I setup a simple OSPF configuration but I am not seeing the OSPF route when doing a show ip route. The show ip ospf neighbor command is working correctly. Here is the configuration I setup http://www.cisco.com/en/US/tech/tk365/technologies_configuration_example09186a0080094057.shtml

4 Replies 4

vijayasankar
Level 4
Level 4

Hi,

Kindly provide the exact configurations in your routers (show run output) along with the outputs of "show ip ospf neighbor" and "show ip route".

-VJ

jackyoung
Level 6
Level 6

Do you mean you cannot find the 'loopback interface' routes at the routers ? If it appears, it may be the host route generated by the PPP, please check the description in the link at bottom.

Or please provide the config.

Hope this helps.

sachinraja
Level 9
Level 9

Hello,

The first thing you have to check is the Topology database on your router.. this is the first step for any ospf troubleshooting.. can you give a "show ip ospf database" and see if the entry is there ? Only if it in the database, the router will compute the path in the routing table !!!! As VJ told, can you also give us more details ?? Are there any prefix list or route-maps filtering any routes ???

Raj

mheusinger
Level 10
Level 10

Hi,

there seems to be a bit missing in the example config given following your link.

Router1

!

interface Loopback0

ip address 3.3.3.3 255.255.255.255

!

interface Serial0

ip address 1.1.1.2 255.255.255.0

!

router ospf 1

network 1.1.1.0 0.0.0.255 area 0

network 3.3.3.3 0.0.0.0 area 0

Router2

!

interface Loopback0

ip address 2.2.2.2 255.255.255.255

!

interface Serial0

ip address 1.1.1.1 255.255.255.0

clockrate 2000000

!

router ospf 1

network 1.1.1.0 0.0.0.255 area 0

network 2.2.2.2 0.0.0.0 area 0

The two additional network statements will include the loopback networks into OSPF and announce them to the neighboring router.

Just following the original config will not give you ospf routes, because OSPF will only announce 1.1.1.0/24 and this network is already in the routing table with better administrative distance, namely being directly connected.

Alternatively you can also configure

router ospf 1

network 1.1.1.0 0.0.0.255 area 0

redistribute connected subnets

To include the loopback networks in OSPF updates.

Hope this helps! Please use the rating system.

Regards, Martin

Review Cisco Networking products for a $25 gift card