cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
434
Views
13
Helpful
5
Replies

routes in ospf not showing mask

carl_townshend
Spotlight
Spotlight

Hi all, I have the 10.116.1.0/24 network on one of my routers, on the other router usng ospf its showing the route to network 10.116.1.1,where as i thought is should be route to network 10.116.1.0/24

see below

10.116.1.1 [110/2] via 192.168.2.1, 00:06:34, FastEthernet0/0

why is this not showing me route to the /24

cheers

5 Replies 5

John Blakley
VIP Alumni
VIP Alumni

What does your ospf statements look like on the other end?

--John

HTH, John *** Please rate all useful posts ***

Hi there

the interface ip is 10.116.1.1/24

the statement was

network 10.116.1.1 0.0.0.0

but have have tried 10.116.1.0 0.0.0.255

I was told as long as you include the interface within the statement, the ip of the interface and mask get advertised.

why is the proper route not showing ?

It is on a loopback interface

It's showing just the host address because that's what you're telling it with the 0.0.0.0 mask. Try to change to:

network 10.116.1.0 0.0.0.255 area 0 (or whatever area)

You mentioned that it's a loopback though. Others can chime in, but I think you would also want to advertise your normal network along with it.

network 10.116.1.1 0.0.0.0 area 0

network 192.168.0.0 0.0.0.255 area 0

Are your local ethernet interfaces in the 10.116.1.0/24 network?

--John

HTH, John *** Please rate all useful posts ***

John

This issue has nothing to do with what mask is used in the network statement and changing the mask will have no effect on what is advertised.

The key to this issue is the mention that the interface is a loopback interface. OSPF will advertise a loopback interface as a /32 and consider it a stub host no matter what mask is configured on the interface and no matter what mask is used in the network statement. (check this with the output of show ip ospf interface) The solution to this is to configure on the loopback interface ip ospf network point-to-point. If you do this then OSPF will advertise the subnet with the configured mask.

HTH

Rick

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: