IP Addressing and Subnetting Questions
Working with IP address space: IPv4 and IPv6 addressing, subnet masks and CIDR notation (including why classful addressing was abandoned), VLSM calculation, route summarization from an addressing standpoint, private (RFC1918), ULA, link-local (including 169.254 self-assigned) and public ranges, and multicast address ranges. Covers designing hierarchical addressing schemes for sites, VLANs, security zones, DMZs and data centers, laying out prefixes so ACL and QoS policy stays compact, NAT and CGNAT for address conservation, static versus DHCP-assigned addressing, IPAM practice, renumbering after mergers or overlaps, and IPv4-to-IPv6 transition (dual-stack, tunneling, NAT64/DNS64). Boundary: routing protocol operation, cloud VPC topology, DNS and DHCP service operation, and firewall design are covered elsewhere.
Your campus ACLs and QoS policies have grown into hundreds of per-host entries. How could a deliberate prefix allocation for voice, video, and general data traffic have prevented that, how would you retrofit one, and what does it cost you in address waste and flexibility?
Sample Answer
Direct answer
If voice, video and data each had their own contiguous, bit-aligned block, then one ACL (access control list) line and one QoS (quality of service) match per class would replace hundreds of per-host lines, because policy would key on the prefix. Retrofitting means renumbering class by class into those blocks while keeping the old addresses alive until traffic counters prove nothing still uses them. The price is address waste (under-filled subnets) and less freedom to put a device wherever there is space.
How a deliberate allocation prevents the sprawl
Without a plan, a phone in one closet sits in a data /24 and a video endpoint in another, so the only way to identify them is host by host. With a plan, the class is readable from the address. Example for a campus using 10.20.0.0/14:
| Class | Block | Subnets available |
|---|---|---|
| Voice | 10.20.0.0/16 | 256 x /24 |
| Video | 10.21.0.0/16 | 256 x /24 |
| General data | 10.22.0.0/15 | 512 x /24 |
Policy then becomes three matches. Before the plan, the ACL that matched voice looked like this, one line per phone, growing with every phone added (illustrative addresses):
ip access-list extended VOICE
permit ip host 10.31.4.17 any
permit ip host 10.31.4.18 any
permit ip host 10.52.9.203 any
... (hundreds more)
After the plan, one line per class, written in wildcard-mask form (ACL syntax where 0 bits must match and 1 bits are ignored, so 0.0.255.255 means "any last two octets" and 0.1.255.255 covers the two /16s of the 10.22.0.0/15 data block):
ip access-list extended VOICE
permit ip 10.20.0.0 0.0.255.255 any
ip access-list extended VIDEO
permit ip 10.21.0.0 0.0.255.255 any
ip access-list extended DATA
permit ip 10.22.0.0 0.1.255.255 any
class-map match-any VIDEO-CLASS
match access-group name VIDEO
A class-map is the QoS object that selects which traffic a policy applies to; here it selects everything matching the VIDEO ACL, that is, 10.21.0.0/16. Adding a closet adds a /24 inside an existing block and changes no policy at all.
Retrofit plan
- Measure first. Pull ACL hit counters and flow records for 2 to 4 weeks to see which hosts really match each per-host entry, and group them into voice, video and data from the evidence, not from the old spreadsheet.
- Allocate the blocks in IPAM (the system that records every subnet and owner) and reserve them before anyone uses them.
- Move voice first. Phones and softphones are DHCP clients, so they can move without touching each device, but a renewal alone does not move them: while the old scope still exists the DHCP server keeps granting renewals on the old lease. Create the new voice scope in the new block, shorten the old scope's lease ahead of the change, then deactivate the old scope for that closet so the server refuses the renewal (a DHCP NAK; some servers only do this when configured as authoritative for the subnet) and the phone restarts discovery and takes a new-block address. This is the cheapest class. Moving servers and static video endpoints comes later, with their owners.
- Run old and new together. Add the new summarized rules above the old per-host lines, move one closet per change window, and keep the old subnet as a secondary address on the interface.
- Delete only on evidence. When the old per-host lines show zero hits for a full business cycle (at least one month-end), remove them.
- Pair it with marking. Do not rely on addresses alone: mark DSCP (differentiated services code point, the QoS value in the IP header) at the access port from the voice VLAN. The trust boundary is the point in the network where you stop believing the markings devices send and apply your own, normally the access port, so a user cannot mark their own traffic as high priority. A PC plugged into the phone's pass-through port (the second socket on the phone that forwards the PC's traffic) sits behind that boundary too, so its traffic must be re-marked or left in the data class. Use the prefix as the policy and security anchor and as a backstop if marking is lost.
What it costs
- Address waste: a /24 has 254 usable hosts. If a closet has 60 phones, 60/254 is 23.6% used, so 76.4% of that subnet is unused. Over 256 voice /24s, the voice /16 holds 65,024 usable addresses, far more than the phones on the campus. Plenty of private space makes that cheap; in scarce space, use /25 or /26 per closet instead.
- Flexibility: a device that changes role (a phone becomes a softphone on a laptop, a video room moves) now has to change VLAN and address, not just a rule.
- Summarization limit: each class must stay in its block, so growth has to be planned in powers of two.
Trade-offs and pitfalls
- Recommend the prefix scheme for ACLs and routing summaries and DSCP marking for QoS together; either alone is weaker.
- It stops working if exceptions are allowed in ("temporary" voice hosts in a data subnet). Enforce class by VLAN at the switch and audit with IPAM.
- If space is truly scarce or the campus is small, a smaller scheme (one summarized prefix for voice only) delivers most of the benefit.
A colleague describes a 172.16.5.0/24 network as 'a Class B subnet'. Explain what classful addressing was, why the internet abandoned it, and why that way of talking is misleading in modern IP planning.
Sample Answer
Direct answer
Classful addressing was the original IPv4 scheme in which the first bits of an address fixed its class and therefore its network size, with no separate mask. The internet abandoned it because it wasted address space and bloated routing tables, and replaced it in 1993 with CIDR (Classless Inter-Domain Routing, RFC 1519) where the prefix length is explicit. Calling 172.16.5.0/24 "a Class B subnet" is misleading because the mask, not the first octet, defines the network, and this one is a /24 inside a private block.
What classful addressing was
| Class | Leading bits | First octet | Fixed network size | Hosts per network |
|---|---|---|---|---|
| A | 0 | 0 to 127 | /8 | 16,777,214 |
| B | 10 | 128 to 191 | /16 | 65,534 |
| C | 110 | 192 to 223 | /24 | 254 |
| D | 1110 | 224 to 239 | multicast | n/a |
| E | 1111 | 240 to 255 | reserved | n/a |
To see how the first bits fix the class, take 172.16.5.0: the first octet 172 is 10101100 in binary, which starts with 10, so it is Class B and the classful network was 172.16.0.0 with a /16 mask. By contrast 192.168.1.0 starts 11000000, leading bits 110, so Class C and /24. Routing protocols of the time (RIPv1 and IGRP, early routing protocols that exchange route lists between routers) sent no mask in updates and inferred it from the class.
Why it was abandoned
- Wasted addresses. Class C (254 hosts) was too small and Class B (65,534) too large, so an organization needing 2,000 addresses took a Class B and left more than 63,000 unused.
- Routing table growth. Organizations needing more than a Class C received several, each its own route, so the global table grew toward unmanageable size.
- Rigid sizes with no way to carve or combine blocks.
CIDR allows any prefix length and supernetting (advertising one shorter prefix that covers many contiguous blocks), which fixed both.
Why the label misleads today
- 172.16.5.0/24 has a 24-bit mask, 254 usable hosts, not Class B's 65,534. Its class only tells you the first octet falls in 128 to 191.
- 172.16.0.0/12 (172.16.0.0 to 172.31.255.255) is the RFC 1918 private block, which is 16 old Class B ranges, so "a Class B" is not even a correct name for it.
- Modern gear and protocols (OSPF, BGP, EIGRP, static routes) carry explicit prefixes, so the class changes nothing in forwarding or planning. Assuming a /16 mask for a "Class B" causes real mistakes, for instance when configuring ACLs, summaries or firewall objects.
- Class D (multicast, 224.0.0.0/4) and E (reserved, 240.0.0.0/4) survive as ranges, which is the only part of the vocabulary still in use.
What to say to the colleague
Say "172.16.5.0/24, inside the 172.16.0.0/12 private range". Always quote the prefix length.
Pitfalls
- Defaulting to the classful mask when a device or script omits one.
- Believing old automatic summarization at classful boundaries still applies. That was the behaviour of early routers, which advertised a subnet such as 172.16.5.0/24 to other networks as the whole classful network 172.16.0.0/16; modern protocols advertise the exact prefix.
How do you decide which devices in a corporate network get static addresses and which get DHCP-assigned ones, and how do you keep static assignments documented and recoverable over time?
Sample Answer
Direct answer
Ask one question per device class: does anything need to reach this device at a fixed address, and must it work when DHCP (Dynamic Host Configuration Protocol, the service that hands out addresses automatically) or DNS is down? Devices that other devices depend on and that must boot without DHCP get a static address configured on the device. Devices that need a stable address but not that independence get a DHCP reservation (the server always gives that device's hardware address the same IP). Ordinary endpoints get dynamic DHCP. Whatever the method, the address, owner and purpose are recorded in one system of record, and the configurations are backed up so the plan can be rebuilt.
Decision table
| Device class | Method | Why |
|---|---|---|
| Routers, switches, firewalls, wireless controllers (management interfaces) | Static, configured on the device | Must be reachable when DHCP is broken, and the DHCP relay (a router or switch feature that forwards a client's broadcast request to a DHCP server on another subnet) depends on them |
| DHCP, DNS and directory servers, hypervisor hosts (physical servers that run virtual machines), storage, monitoring | Static on the device | Other things find them by address or need them to boot, and a DHCP server cannot obtain its own address from itself |
| Application servers | Static or reservation, with a DNS name | Firewall rules and clients depend on a stable address; use DNS names so the address can change |
| Printers, cameras, badge readers, other fixed IoT devices | DHCP reservation | Stable address for print queues and ACLs (access control lists), configured centrally instead of at each device's menu |
| Laptops, desktops, phones, guests | Dynamic DHCP | Numbers change, nobody addresses them directly, short leases recycle addresses |
The test for static-on-device versus reservation is failure behaviour: if DHCP being down for an hour would hurt the device's job or your ability to repair it, put the address on the device; otherwise a reservation gives the same address with one place to edit it, and moving a reserved device is a record change, not a site visit.
Layout convention inside each subnet
Use the same map in every /24 so an address tells you what it is:
| Range | Addresses | Use |
|---|---|---|
| .1 to .19 | 19 | Gateway (.1), router interfaces, network infrastructure (static) |
| .20 to .49 | 30 | Static servers and appliances |
| .50 to .99 | 50 | Reservations (printers, cameras, fixed devices) |
| .100 to .250 | 151 | Dynamic DHCP pool |
| .251 to .254 | 4 | Spare |
19 + 30 + 50 + 151 + 4 = 254, the usable addresses of a /24. A static address inside the dynamic pool is the classic cause of duplicate-address conflicts, so the pool boundaries are enforced on the DHCP server. The scope is the range of addresses the server may hand out on one subnet, with a lease (the time a client may keep an address) on each. Either set the scope to start at .100 and end at .250, or define a wider scope and add exclusion ranges (addresses inside the scope that the server must never give out) for .1 to .99 and .251 to .254. Either way the static ranges never overlap what the server hands out. If a subnet is smaller or larger, keep the proportions and the same ordering.
Keeping static assignments documented and recoverable
- One system of record. Every static address and reservation lives in an IPAM (IP address management) database with owner, device, purpose, and DNS name; spreadsheets drift, and the system should be the thing that hands out the next free address, not a person scanning for a gap.
- Change control. An assignment is created by a ticket or an API call and recorded when it happens; nobody types a static address on a device without a record.
- Automatic reconciliation. Periodically compare IPAM against reality: DHCP lease and reservation tables, router ARP tables (IP to hardware address) and switch MAC tables (hardware address to port), and a ping or ARP sweep of each subnet. An address answering that IPAM says is free is a rogue static; an address IPAM says is in use with no answer for weeks is a candidate to reclaim.
- Back up what rebuilds the network. Device configurations in version control (so a replaced switch gets its address back), the IPAM database, and the DHCP server's scopes and reservations. On a Windows DHCP server,
Export-DhcpServer -File <path> -Leasesexports scopes, reservations and optionally leases to an XML file thatImport-DhcpServercan load on a replacement. The command prints nothing on success: its result is the file, which holds the server's DHCP configuration including all scopes, plus the current leases because of-Leases(add-Forceto overwrite an existing file). Practise a restore at least once; a backup nobody has restored is a hope. - DNS as the stable name. Register forward and reverse records for every static and reserved address, so documentation and troubleshooting use names.
- Lifecycle. When a device is decommissioned, release the address in IPAM, remove the reservation and the DNS records; stale reservations are how scopes silently run out.
Worked example
A new floor printer needs a fixed address. It gets 10.20.5.57 (inside the reservation range .50 to .99 of 10.20.5.0/24): a ticket creates the IPAM record with owner "Facilities" and printer MAC aa:bb:cc:00:11:22, the DHCP reservation is generated from that record, DNS gets printer-5f.example.net, and print servers point at the name. When the printer is replaced, only the MAC in the record changes; the address, the DNS record and the print queue stay the same.
Pitfalls
- Static addresses inside the dynamic pool.
- Reservations keyed to a MAC that changes (a replaced device, or a client using randomised MAC addresses) so the device silently loses its address.
- Treating DHCP reservations as documentation: the reservation exists on one server and nowhere else unless exported.
- Static everywhere for "predictability", which makes every move a manual renumbering.
Your enterprise network is IPv4-only today, but some services and partners are moving to IPv6. What are the main ways to bridge the two worlds, and what are the operational benefits, limits and common pitfalls of each?
Sample Answer
Direct answer
There are four ways to bridge IPv4 and IPv6: dual stack (run both protocols side by side), tunnelling (carry IPv6 packets inside IPv4), translation (convert packets between the two; NAT64 does the packet conversion and DNS64 makes the DNS answers that point clients at it, both explained below), and application-layer proxying (a load balancer, reverse proxy or content delivery network, CDN, that speaks IPv6 on one side and IPv4 on the other). For an IPv4-only enterprise whose partners are moving to IPv6, the practical order is: put a dual-stack front door (load balancer or CDN) on the services partners consume, route outbound access to IPv6-only partners through a dual-stack proxy, and dual-stack the internal network later on a schedule. Tunnels are for pilots and translation is for IPv6-only segments. Of the techniques named below, dual stack, a dual-stack front end and NAT64/DNS64 are the ones to plan around; 6in4, 6rd, 6to4 and 464XLAT are narrower tools you meet in specific situations.
The two directions are different problems
- Partners reaching your IPv4 services. The partner has IPv6 and your servers do not. Fix this at the edge: an IPv6 address on the load balancer or CDN that forwards to IPv4 servers behind it.
- Your IPv4 users reaching an IPv6-only partner service. Your clients have no IPv6. NAT64 does not help here, because it lets IPv6-only clients reach IPv4 servers, the opposite direction. The workable options are a dual-stack forward proxy (clients speak IPv4 to the proxy, the proxy speaks IPv6 to the partner) or giving clients IPv6 (dual stack).
Comparison
| Approach | Solves | Operational benefit | Limits and pitfalls |
|---|---|---|---|
| Dual stack | Both directions, no translation | Native end to end, no state in the middle, easiest to troubleshoot | Two address plans, two sets of firewall rules and ACLs (access control lists), two sets of monitoring. IPv6 rules must match IPv4 rules or one stack becomes a bypass. |
| Tunnelling (6in4 is IPv6 carried inside IPv4 packets marked IP protocol number 41; 6rd and 6to4 are two automatic variants of it) | Reaching IPv6 over an IPv4-only path | Quick pilot without changing the transport | Protocol 41 is dropped by some NATs and firewalls. The tunnel adds a 20-byte IPv4 header, so a 1,500-byte link carries at most 1,480 bytes of tunnelled packet. A larger IPv6 packet is dropped (routers do not fragment IPv6 in transit) and only an ICMPv6 "packet too big" message tells the sender to shrink it, which is why filtering ICMPv6 makes tunnels hang on large transfers. The anycast form of 6to4 was deprecated (RFC 7526) and basic 6to4 should be off by default, so do not build on it. |
| NAT64 + DNS64 (translation) | IPv6-only clients reaching IPv4 servers | Lets a segment be IPv6-only and still reach the IPv4 internet | Stateful (a translation table and port exhaustion to size and log). Apps with hard-coded IPv4 addresses bypass DNS and fail. A client that validates DNSSEC (cryptographic signatures on DNS answers) itself rejects the synthesised AAAA record, because DNS64 invented an answer the zone owner never signed. 464XLAT adds a translator on the client so apps that only speak IPv4 (for example with a hard-coded IPv4 address) still work on an IPv6-only network. |
| Proxy / load balancer / CDN front end | IPv6 clients to IPv4 services (and IPv4 clients out through a proxy) | Isolates the change to one device, easy rollback | The server sees the proxy's address, not the client's, so pass the original address along, either in an HTTP header (X-Forwarded-For) or with the PROXY protocol (a small preamble the proxy sends on the connection carrying the real client address) and update logs and rate limits accordingly. |
Worked example: what DNS64 does
An IPv6-only client asks for the AAAA record (the DNS record type that holds an IPv6 address; an A record holds an IPv4 one) of a name that only has an IPv4 address, 93.184.216.34. DNS64 builds an IPv6 address by placing the IPv4 address in the low 32 bits of the well-known prefix 64:ff9b::/96. The client sends to that address, and the NAT64 gateway extracts the IPv4 address and forwards the packet. Computed with Python's ipaddress module:
import ipaddress as ip
wkp = ip.ip_network("64:ff9b::/96")
v4 = ip.IPv4Address("93.184.216.34")
synth = ip.IPv6Address(int(wkp.network_address) | int(v4))
print("DNS64 synthesised AAAA for", v4, "->", synth)
print("embedded v4 recovered:", ip.IPv4Address(int(synth) & 0xFFFFFFFF))
print("is 10.1.2.3 global?", ip.IPv4Address("10.1.2.3").is_global, "| is 93.184.216.34 global?", ip.IPv4Address("93.184.216.34").is_global)
print("IPv6 minimum MTU 1280; 6in4 adds 20-byte IPv4 header ->", 1500 - 20, "max tunnel MTU on a 1500 link")
DNS64 synthesised AAAA for 93.184.216.34 -> 64:ff9b::5db8:d822
embedded v4 recovered: 93.184.216.34
is 10.1.2.3 global? False | is 93.184.216.34 global? True
IPv6 minimum MTU 1280; 6in4 adds 20-byte IPv4 header -> 1480 max tunnel MTU on a 1500 link
The third line matters: RFC 6052 forbids using the well-known prefix for non-global IPv4 addresses such as RFC 1918 ranges, and a translator must drop those packets. To reach internal IPv4 servers through NAT64 you need a prefix of your own from the organisation's address space, not 64:ff9b::/96.
Pitfalls that cause real incidents
- Publishing an AAAA record before the IPv6 path works end to end. Clients try IPv6 first. Happy Eyeballs (RFC 8305, the client behaviour of racing IPv6 and IPv4 connections) falls back to IPv4 after a connection attempt delay (250 ms is the recommended default), which hides the fault from users but adds latency to every connection; test from outside before publishing.
- Blocking ICMPv6 wholesale. IPv6 needs it for neighbour discovery and path MTU discovery, and routers do not fragment, so tunnels and translators fail silently for large packets if it is filtered (the sender never learns its packet was too big).
- Rule parity. A server with an IPv6 address that nobody put in the firewall policy is reachable in ways the IPv4 policy never allowed.
- Tooling that only parses IPv4. SIEM (security information and event management) parsers, IPAM, monitoring and ACL automation need IPv6 support before the first AAAA record goes live.
Recommendation and what would change it
Commit to the dual-stack edge plus an outbound proxy first, because it changes only a few devices and every step can be backed out by removing an AAAA record or a proxy rule. Move to dual stack on user networks when a measurable share of destinations is IPv6-only. Introduce NAT64/DNS64 only for a segment you decide to make IPv6-only (guest Wi-Fi is a common first candidate). If the partner can only be reached over an IPv6-only private link, dual stack on the affected user group is needed sooner.
You are designing the IPv4 addressing plan for a global enterprise with 50 sites, growing by several sites a year, all inside RFC1918 space. Walk through how you would structure the address space top-down, what you would reserve, how it stays summarizable by region, and how you would add new sites without renumbering.
Sample Answer
Direct answer
Take all of 10.0.0.0/8 as the corporate plan and divide it top-down on bit boundaries (each split fixes a few more leading bits, so every block is a power-of-two size that starts on its own boundary): first into purpose blocks (one block for each region's sites, one for data centres and cloud, one for infrastructure), then by site size class inside each region, then by function inside each site. Each level is one prefix, so a region advertises a single route to the rest of the network, and a new site is only a new block carved from space that was already reserved for its region. Nothing existing changes, so nothing is renumbered.
Level 1: the whole /8 by purpose
Going from /8 to /11 fixes 3 more bits, which cuts the /8 into 8 equal blocks. Each /11 covers 2^(32-11) = 2,097,152 addresses, which is 32 values of the second octet (256 / 8), so the first /11 is 10.0 to 10.31, the next 10.32 to 10.63, and so on.
| Block | Range | Purpose |
|---|---|---|
| 10.0.0.0/11 | 10.0.0.0 to 10.31.255.255 | Americas |
| 10.32.0.0/11 | 10.32.0.0 to 10.63.255.255 | EMEA (Europe, Middle East, Africa) |
| 10.64.0.0/11 | 10.64.0.0 to 10.95.255.255 | APAC (Asia-Pacific) |
| 10.96.0.0/11 | 10.96.0.0 to 10.127.255.255 | Held back for a fourth region or an acquisition |
| 10.128.0.0/10 | 10.128.0.0 to 10.191.255.255 | Data centres and cloud networks (VPCs and VNets) |
| 10.192.0.0/10 | 10.192.0.0 to 10.255.255.255 | Infrastructure (first /16) and unallocated reserve |
Giving the data centre and cloud space its own block keeps it separable from branch space. Cloud networks (a VPC in AWS or a VNet in Azure is a customer's private network inside the cloud provider) must not overlap anything reachable over a VPN (an encrypted tunnel across the internet) or a private link (a dedicated provider connection). Corporate use stays out of 172.16.0.0/12 and 192.168.0.0/16 on purpose: home routers and remote users' networks very often use 192.168.x.x, and an acquired company or partner may already use any RFC 1918 range, so keeping two of the three ranges free leaves somewhere to renumber into or translate when an overlap shows up.
Level 2: site size classes inside each region
Inside one region (APAC, 10.64.0.0/11, as the example), split the first three /16s by site size class instead of mixing sizes:
| Pool | Block | Site block | Slots | Usable per site |
|---|---|---|---|---|
| Large sites (campus, HQ) | 10.64.0.0/16 | /20 | 16 | 4,094 |
| Medium sites | 10.65.0.0/16 | /22 | 64 | 1,022 |
| Small sites (branches) | 10.66.0.0/16 | /24 | 256 | 254 |
| Region reserve | 10.67.0.0 to 10.95.255.255 | unallocated | 29 x /16 |
Pools by size class keep every block naturally aligned and make the free space easy to see in IPAM (IP address management, the database of who owns which prefix).
Reading an address back through the plan: take 10.65.12.5. The second octet 65 lies in 64 to 95, so it is inside 10.64.0.0/11, APAC. The block 10.65.0.0/16 is the medium-site pool. Third octet 12 falls in the /22 starting at 10.65.12.0 (slot 3 counting from 0, so the fourth medium site), and the host part .5 sits in the first /27 of the site, which the fixed-offset template below uses for management. The plan is deliberately generous: a rollout of 4 large, 16 medium and 30 small sites uses 4 x 4,096 + 16 x 1,024 + 30 x 256 = 40,448 addresses, about 0.24% of the /8.
Level 3: what to reserve, and what each site gets
- Infrastructure block: 10.192.0.0/16, for example a /24 of router loopbacks (one /32 per device, 256 devices) and a /24 of point-to-point links (/31 each, 128 links). Never allocate these from user ranges, so they stay stable when sites change.
- Fixed offsets inside every site block (a fixed offset means a function always starts the same distance into the site's block): the same function at the same offset in every site (for example the first /27 of any site block is management, then users, voice, printers, guest). Staff can read an address and know what it is, and firewall rules can be written as patterns.
- Rules reserved by policy: the unallocated 10.96.0.0/11 and 10.192.0.0/10 remainder are marked reserved in IPAM; nobody takes a "temporary" block from them without a ticket.
- Gateway convention: .1 of every subnet is the gateway.
Summarisation by region
Each regional hub advertises its /11 (10.0.0.0/11, 10.32.0.0/11, 10.64.0.0/11) into the backbone, so a router in EMEA holds two routes for the other two regions (the Americas /11 and the APAC /11) plus the detail for its own region, instead of one route per site across the company (50 and growing). Two conditions make it hold: every site in a region must come from that region's /11, and the summarising router should carry a discard route for the /11 so traffic to an unallocated address inside the region is dropped rather than looped back toward the default route. A discard route is a route for the whole /11 that points at nowhere: with it, an address inside the /11 that has no more specific route is dropped here, instead of matching the default route (the catch-all route that sends everything unknown toward the backbone), going back out, and being sent in again by the other regions' summaries. The summary also hides site flaps (a link going down and up repeatedly): a site going down changes no route outside its region.
Adding a site without renumbering
New medium site in APAC, with three medium sites already allocated (10.65.0.0/22, 10.65.4.0/22, 10.65.8.0/22): record the next free slot, 10.65.12.0/22, in IPAM, build the site from the fixed-offset template, and advertise it inside the region. The /11 summary is untouched, and no other site is touched. A site that outgrows its block gets a second block from the same pool in the same region, which is still inside the /11 summary (the site then appears as two prefixes locally, a small cost); it does not trigger renumbering.
Pitfalls
- Allocating by "next free /24" with no regional structure: after a few years the summaries are gone and every router carries 50 or more site routes.
- A size class that is too small. Pick the site block for the biggest realistic need of the class, because a changed mask means renumbering; this plan allows a second block as the release valve.
- Overlap with cloud and acquired companies: reserve cloud space now and check for overlap before any VPN or peering is set up.
- Using the whole /8 as a flat pool, with no rule for who allocates, and nothing recorded: IPAM is what stops two engineers taking the same block.
Unlock Full Question Bank
Get access to all 30 IP Addressing and Subnetting interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.