Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

ospf routing problem

This may not be the right forum. its just a lab simulation question.

I have 5 2501 routers connected back to back via serial cables. all routers have loopbacks and some have ethernet interfaces which are up. any router can ping any interface on any other router - am running ospf between them all.

BUT, a PC connected to any of the ethernet segments (when default gateway is properly configured on the pc) can ping any of the serial interfaces (all /30 masks but put into ospf as network 172.16.x.x 0.0.0.0 area 0). All the loopbacks and ethernet segments are 192.168.x.1 255.255.255.0. The PC can ping any of them that were entered into OSPF as 192.168.x.1 0.0.0.0 area 0, but it can't ping any of the ones that were entered 192.168.x.0 0.0.0.255 area 0.

I think I'm having a brain freeze. Is there any particular reason it would be better or worse to use the 0.0.0.0 as opposed to a 0.0.0.255? The routers all communicate fine, its just the PC that is not working.

3 REPLIES

Re: ospf routing problem

If you trace to those Loopbacks that are not working, where does it stop.

New Member

Re: ospf routing problem

Earlier the tracert from Windows would just stop at the first hop. Then I'd tracert to a serial interface on the same desitnation router and it would work fine. Strange.

Just now I shut everything down...again...and only booted up two routers. now for reasons unknown, the PC at 192.168.40.11 can ping the loopback on both routers - 192.168.3.1 and 192.168.4.1. Maybe it was a fluke. While I'm asking, below is the show IP route of the 2nd router. On the first router, 192.168.40.1 is the e0 and 192.168.3.1 is the loopback0. Both are entered on their respective interfaces with 24 bit mask, both are entered into OSPF at net 192.168.x.0 0.0.0.255 area 0. How come in the route table of the 2nd router it displays one with the /24 and one with /32 & subnetted remark?

Is there a specific forum for questions like these or this one as good as any? I'm new to the Cisco.com forums.

Gateway of last resort is not set

O 192.168.40.0/24 [110/74] via 172.18.1.1, 00:01:08, Serial1

172.18.0.0/30 is subnetted, 1 subnets

C 172.18.1.0 is directly connected, Serial1

C 192.168.4.0/24 is directly connected, Loopback0

192.168.3.0/32 is subnetted, 1 subnets

O 192.168.3.1 [110/65] via 172.18.1.1, 00:01:08, Serial1

2501-b#

Hall of Fame Super Silver

Re: ospf routing problem

David

This forum is fine for questions like this one (or the WAN Routing and Switching forum would also be good).

The answer to your question is that OSPF treats a loopback interface slightly differently when OSPF is enabled on it. By default when OSPF is enabled on a loopback interface it will treat that loopback as a host route (/32) no matter what netmask was used in configuring the interface (and no matter what mask was used in OSPF configuration). If you want OSPF to advertise the subnet of the loopback then you can use this command under the loopback interface:

ip ospf network point-to-point

This will cause OSPF to advertise the subnet rather than the host route.

HTH

Rick

106
Views
0
Helpful
3
Replies