This blog was originally started to better help me understand the technologies in the CCIE R&S blueprint; after completing the R&S track I have decided to transition the blog into a technology blog.

CCIE #29033

This blog will continue to include questions, troubleshooting scenarios, and references to existing and new technologies but will grow to include a variety of different platforms and technologies. Currently I have created over 185 questions/answers in regards to the CCIE R&S track!! Note: answers are in the comment field or within "Read More" section.

You can also follow me on twitter @FE80CC1E


Monday, April 19, 2010

Question 1

How do you correctly advertise the loopback interface into OSPF using the correct mask?

Interface loopback address is 1.0.0.1/24

3 comments:

Packets Analyzed said...

Loopback interfaces are advertised in OSPF as host routes (Stub routes). So 1.0.0.1/24 advertised with network statement 1.0.0.0 0.0.0.255 will show up in the routing table as 1.0.0.0/32 and not 1.0.0.0/24. To ensure the route is advertised with the correct mask use the following command under the interface loopback.

Example

interface loopback 0
ip address 1.0.0.1 255.255.255.0
ip ospf network point-to-point


"ip ospf network point-to-point" tells the interface to use a point-to-point network type removing the limitation of network type loopback.

Packets Analyzed said...

The loopback will show up in the routing table as 1.0.0.1/32 not 1.0.0.0/32 (typing to fast) :P

Packets Analyzed said...

I found a couple of other ways to ensure the loopback gets advertised with the right mask

router ospf 1
redistribute connected

or

Summarization using the "area range" command

Post a Comment