Four /24s 10.1.0.0/24 through 10.1.3.0/24 sit behind a VPN. How do you advertise them efficiently?
IntermediateScenarioAddressing, CIDR & Routing
Answer
Situation read → Route summarization reduces table size and hides internal changes.
What I'd do →
- Check the prefixes are contiguous and aligned on a power of two: 0,1,2,3 in the third octet
- Summarize to
10.1.0.0/22 - Advertise only the /22 over BGP or add it as one static route on the remote side
- Confirm no other host uses 10.1.0.0 to 10.1.3.255 outside the intended subnets
Why → A summary is only valid if every address in it is reachable through that next hop, otherwise you attract traffic you cannot deliver.
Interview tip → Mention that over-summarizing creates black holes and that AWS TGW lets you advertise summaries with attachments.
More on Addressing, CIDR & Routing
You own 10.0.0.0/16 for a new VPC and need separate /24 subnets for dev, QA and prod across two AZs. How do you carve it up?BeginnerA host is configured as 192.168.1.130/25. What network does it belong to and what is the broadcast address?BeginnerHow many usable IPs does an AWS subnet of /28 have?BeginnerA route table has 10.0.0.0/16 -> local and 10.0.1.0/24 -> vpn-gw. Where does a packet to 10.0.1.5 go?BeginnerA newly built server can ping everything in its subnet but nothing outside. What is the first thing you check?BeginnerYou are picking a private range for a new company network. Which RFC 1918 range do you choose and why?Beginner