cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
400
Views
0
Helpful
7
Replies

loopbacks and ospf

maryodriscoll
Level 1
Level 1

Hi,I have an OSPF network setup - loopback on 1 router is configured with a /24 mask rather than with /32.This network has been added to the OSPF routing table with a /24 mask even though in the OSPF process on the router I have given it a /32 mask. Any idea how I can force the routing process to inject the route into the routing table with a /32 only. Please note that this is just a lab exercise?

Regards

Mary

1 Accepted Solution

Accepted Solutions

there are 3 ways to sort it out,

summary addresses, redistribution and er look at groupstudy

View solution in original post

7 Replies 7

marikakis
Level 7
Level 7

Hello,

Do you have "ip ospf network point-to-point" command configured under the loopback?

Please have a look at the OSPF FAQ (Why are loopbacks advertised as /32 host routes in OSPF?):

http://www.cisco.com/en/US/tech/tk365/technologies_q_and_a_item09186a0080094704.shtml#qone

Kind Regards,

M.

Yeah, I do have ip ospf network point-to-point configured under the loopback but its still not working and appearing as /24 in the next-hop router

Hello,

I meant that you should try to remove this command :-)

Kind Regards,

Maria

there are 3 ways to sort it out,

summary addresses, redistribution and er look at groupstudy

Ok grand, ta, will have a look

Mary

OSPF treats a loopback interface as a stub host; i.e whatever (address, mask) pair is configured, the address of the loopback

interface will be advertised as a host route to the neighbors and hence you will not be required to do any summarization

The routing table on the originating router would be shown as a /24 as a connected route

HTH

Narayan

Mary,

The "ip ospf network point-to-point" command under your Loopback interface is what causes the network NOT to be advertised as a host route. If this command is missing, then the network will be advertised as a host route to other routers (default behavior). Only the router with the particular loopback will see the route as a connected /24 (the ways to get rid of connected routes are pretty violent and I think this is not what you want). Isn't the /24 in other routers what you are trying to get rid of? If it is, then you could try to remove the "ip ospf network point-to-point" command by preceeding it with a "no" or try to configure some other ospf network type (such as broadcast or multipoint).

Redistribution of connected subnets will not manage to advertise a /32. The external route that will result from redistribution, will be covering the /24 under the Loopback interface.

Kind Regards,

M.

p.s. Those labs are very realistic as always. The simplest thing to do in normal life is to have /32 masks on loopbacks :-)

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco