Definition

An addressing plan assigns non-overlapping, aligned address blocks to logical IP networks (LINs), then assigns usable addresses to their hosts and router interfaces.

Method

  1. Identify every LAN and router-to-router link. Each point-to-point link is a network too.
  2. Count computers and router addresses in each LIN. Under the workbook’s traditional model, add two reserved addresses: network and broadcast.
  3. Round each total up to a power of two. For a block of 2^h addresses, the prefix is /p, where p = 32 - h.
  4. Check the available parent block, then allocate largest blocks first at valid boundaries.
  5. Assign unique usable addresses and configure each computer’s gateway as the router address in its own subnet.

For one gateway address per subnet: needed = computers + 1 + 2 reserved. Count every router interface attached to the subnet; two router interfaces mean computers + 2 + 2. Reservations apply once per subnet, not once per interface.

Worked example from the source

The workbook’s pages 6-11 allocate 10.0.0.0/24 to two LANs and their router link:

NetworkNeeded including reservationsAllocatedBlockGateway / endpointsBroadcast
100 computers, one router address10312810.0.0.0/2510.0.0.110.0.0.127
40 computers, one router address436410.0.0.128/2610.0.0.12910.0.0.191
Two router interfaces4410.0.0.192/3010.0.0.193, 10.0.0.19410.0.0.195

Allocated total: 128 + 64 + 4 = 196, within the available 256 addresses. The first LAN can assign its 100 computers .2-.101; .102-.126 remain spare. The broadcast stays .127, not .101.

Why largest first?

A /25 inside a /24 can only occupy .0-.127 or .128-.255. Putting a /26 at .0-.63 and a /30 at .252-.255 first blocks both choices, even though enough addresses remain free in total. A proposed .64-.191 range has 128 addresses but crosses the /25 boundary; it is not one /25 subnet.

Splitting a LAN to save addresses

Added worked example, following the technique used in Exercise 10: 300 computers, 120 computers, and a router link require 512 + 128 + 4 = 644 addresses with one subnet per LAN. They cannot fit into one /23 containing 512 addresses.

Split the 300-computer LAN into a /24 and a /26:

  • /24: 253 computers + one router address + two reserved = 256.
  • /26: 47 computers + one router address + two reserved = 50, rounded to 64.

The whole plan now needs 256 + 128 + 64 + 4 = 452 addresses:

PurposeBlockGateway / endpointsBroadcast
253 computers192.168.0.0/24192.168.0.1192.168.0.255
120 computers192.168.1.0/25192.168.1.1192.168.1.127
Remaining 47 computers192.168.1.128/26192.168.1.129192.168.1.191
Router link192.168.1.192/30192.168.1.193, 192.168.1.194192.168.1.195

One physical router can serve both subnets. On a shared physical LAN, it can have an address in each subnet on the connected interface; separate LANs or VLANs can use separate interfaces or subinterfaces. Splitting adds gateway addresses and reservations, not necessarily physical routers. Allow for future growth before choosing this optimization.

Planning for growth

Added example: 70 computers and one gateway need 73 addresses including reservations. A /25 provides 126 usable addresses, leaving room for 55 more computers. Splitting into /26 (61 computers) and /28 (9 computers), each with a gateway, allocates only 80 addresses but leaves room for just four more computers overall. The tradeoff is space saved versus growth capacity and configuration work.

Exercise 11 preserves the growing 70-computer LAN’s /25 and splits the other 70-computer LAN into /26 plus /27 to fit the complete topology. The /26 plus /28 illustration above is an added alternative for explaining capacity, not a copy of the source solution. For 60 computers with 10 expected additions and one gateway, plan for 73 total addresses and choose /25, not /26.

Allocated block versus subnet

An allocation such as 192.169.2.0/24 gives a customer 256 addresses to organize; it does not require one LAN. Added illustration:

PurposeInternal subnetRange
LAN A192.169.2.0/25.0-.127
LAN B192.169.2.128/26.128-.191
Router link192.169.2.192/30.192-.195

The provider can route the whole /24 toward the customer, whose routers then select the smaller internal subnets. Destination .150 belongs to LAN B. Configure link interfaces with their actual subnet prefix, such as /30, rather than the allocation’s /24. The allocation is an aggregate routing destination, not a claim that every address is directly reachable on one link. Exercise 15 develops this distinction with a more complex customer topology.

Provider internal and customer addressing

Exercise 14 uses public addresses for customer networks and Internet-facing links, with private addresses on internal router links. The provider needs internal routes to both private infrastructure and public customers; it announces the public customer destinations externally and keeps private internal networks unannounced.

A packet between public destinations can traverse routers with privately addressed internal interfaces. Ordinary forwarding preserves the final destination address; this is not itself tunneling or encapsulation. Entry and exit interfaces do not universally require public addresses: the source’s choices reflect its specific topology and reachability requirements. Private internal addressing alone is not a security guarantee, and a router may also expose a public interface.

Important rules

  • Usable capacity includes router addresses, not just computers.
  • Network and broadcast depend on block boundaries, not on the number of active devices.
  • Unassigned addresses inside an allocated subnet cannot be assigned to a separate network without restructuring the original subnet.
  • The gateway may be any unique usable address actually configured on the router’s local interface. First or last usable is a convention.
  • A supplied parent block can be divided into smaller subnets; it does not require one physical LAN.
  • The source uses /30 links; the RFC 3021 /31 exception is explained in IPv4 Host Counts and Point-to-Point Subnets.

Source

Fulvio Risso, Exercises on IP Addressing, 7 December 2017, local 01c - IP Addressing.pdf, PDF pages 6-13; Exercise 10 (page 21, solution pages 37-38); Exercise 11 (pages 22, 39); Exercises 14-15 (pages 24-25, 42-43). Explanations and explicitly marked examples are original study material. Source licensed CC BY-NC-SA 3.0; these workbook-derived notes are shared under the same license: https://creativecommons.org/licenses/by-nc-sa/3.0/. The source PDF remains local.