I'm having a hard time understanding this Null 0 concept and why it's there.
For example, R1 is connected to R2 through 172.16.1.0/24 and auto-summary is enabled
- R1 has the 172.16.5.0/24 and 172.16.6.0/24 behind it
- When R1 advertise these networks to R2, a summary route of 172.16.0.0/16 to Null 0 is also added to R2's routing table
Here's R2 routing table
172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 172.16.1.0/24 is directly connected, FastEthernet0/0
D 172.16.5.0/24 [90/409600] via 172.16.1.1, 00:00:02, FastEthernet0/0
D 172.16.6.0/24 [90/409600] via 172.16.1.1, 00:00:02, FastEthernet0/0
D 172.16.0.0/16 is a summary, 00:00:14, Null0
S* 0.0.0.0/0 [1/0] via 10.0.0.1
My question is why? The book says its to prevent R2 from forwarding traffic to its default route and to prevent loop. If I understand this correctly, if a packet comes in for the 172.16 network, and it's anything other than 172.16.1 or .5 or .6, it gets dropped. So if a packet destined for 172.16.7.1 comes in, it gets matched to the summary route to null 0, and is dropped. Is that right?