Q. Why are loopbacks advertised as /32 host routes in OSPF?A. Loopbacks are considered host routes in OSPF, and they are advertised as /32. For more information, refer to section 9.1 of RFC 2328. In Cisco IOS Software Releases 11.3T and 12.0, if the ip ospf network point-to-point command is configured under loopbacks, OSPF advertises the loopback subnet as the actual subnet configured on loopbacks.
Fitzi wrote: » Are you asking: why is the loopback address now advertised as a /24 after you use the ip ospf point-to-point command? I would think this is because you have the netmask configured as a /24 on your loopback interface and it is now advertising the complete prefix and mask. According to this link:OSPF: Frequently Asked Questions - Cisco
FrankGuthrie wrote: » Yes,that exactly what I'm asking. Nobody seems to be able to explain that to me. Everyone is showing me this output, but I have labbed this and I understand the output. No one seems to awnser the real question: Why does configuring te Loopback as point to point, preserve the /24? what is it on a point to point link that presererves the /24.
fredrikjj wrote: » There's obviously nothing wrong with asking questions, necessarily, but it does seem like you focus too much on small little details instead of learning about the big picture. Once you have a better grasp of OSPF, questions like this one will simply answer themselves. Additionally, deth1k has answered the question on how OSPF handles this from a LSDB perspective. The answers anyone here can provide will mostly be centered around how a protocol works, not why the designers decided to pick one way of doing something over another.
lrb wrote: » FrankGuthrie, if you check out 12.4.1 of RFC2328 it will tell you why this occurs. When in doubt, always check the RFCs! Get into the habit of doing this now and you will be golden moving into the IE space Before you even question why the proper netmask is advertised when you change the OSPF network type on a loopback interface, ask yourself why it was advertised as host route in the first place. <snip> If you are particularly interested you can go read sections 12.4.1.1 through to 12.4.1.4 but I think this should give you enough detail as to why IOS/XR advertise the Loopback interface as host routes by default inside the router LSAs.