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

Webcast- Automate Nexus9k

Community Member

Directly connected, via Null-0


I have a question on "directly connected, via Null0". I am searching the web, but also wanted to get your inputs.

On a router i have ospf running and under ospf summary address of is configured.

Now, let's say when i do " sh ip route" for i get directly connected to Null-0.

My understanding is if i am getting the Null-0 for then i cannot reach it. I know if summary-address is defined then in the routing table we would get Null-0 as to prevent looping.

Can someone please elaborate on this point. Or direct me to a website. Will appreciate it much



router ospf 1


Hall of Fame Super Gold

Re: Directly connected, via Null-0


It seems that you have provided the answer to your own question. With OSPF as with some other protocols when you configure a summary address the IOS creates a route for the summary address pointed at null0. The purpose for this is to prevent looping as you have said.

If we look more closely at the logic it is like this: you will be advertising the summary route to your neighbors, for example which tells your neighbors that if they need to get to that network that they should forward to you and you can get to the destination. Lets assume that your router has learned these subnets from its OSPF neighbors,, and but it does not have a route to (which includes the address). If a neighbor forwards to your router a packet with destination what should you do? Lets also assume that you have learned your default route from that neighbor. If you forward toward your default route it would be forwarding back to the neighbor who sent you the packet and a loop is created. So OSPF creates the null0 route so that if you do not know how to forward to the destination address you will discard the packet.



CreatePlease to create content