Network Design and Operations

192.168.10.0/24 is to be split into subnets for site A (100 hosts), site B (50 hosts) and site C (25 hosts). Starting with the site that needs the most hosts, each site is given the smallest subnet that holds its hosts, packed in from the lowest addresses. Which subnet is assigned to site C?

  1. A192.168.10.160/27
  2. B192.168.10.192/27
  3. C192.168.10.192/28
Show answer and explanation

Answer: B. 192.168.10.192/27

A subnet with h host bits holds 2^h − 2 hosts. Site A needs /25 because 2^7 − 2 = 126 ≥ 100, so it gets 192.168.10.0/25 (.0 to .127), and site B needs /26 because 2^6 − 2 = 62 ≥ 50, so it gets 192.168.10.128/26 (.128 to .191). Site C needs /27 because 2^5 − 2 = 30 ≥ 25, so it gets the next block, 192.168.10.192/27 (.192 to .223). Assigning subnets with different prefix lengths like this is called VLSM (variable-length subnet masking). The remaining 192.168.10.224/27 can be split further, for example into /30 subnets for links between routers.

  • A. This is the next block if site B were given a /27. A /27 holds only 30 hosts, so it cannot fit site B's 50.
  • B. Correct. After the /25 and /26, a /27 is assigned starting at 192.168.10.192.
  • C. A /28 holds only 2^4 − 2 = 14 hosts, so it cannot fit site C's 25.
Practice this topic Back to topic

Related calculators

Books on Network Design and Operations Ad

As an Amazon Associate I earn from qualifying purchases.

More Network Design and Operations questions

  1. Each of the following three sets consists of four consecutive /24 networks. For which set can the four routes be summarized into exactly one /22 route without including any addresses outside the set?
  2. A router's routing table has four routes: 172.16.0.0/12 (next hop router B), 172.16.32.0/19 (router A), 172.16.48.0/20 (router C) and 0.0.0.0/0 (router D). To which router is a packet for 172.16.45.10 sent?
  3. Branch router R2 is connected to head-office router R1 over a 10.255.0.0/30 link, with R1's end at 10.255.0.1 and R2's at 10.255.0.2. When a static route to the head-office network 192.168.1.0/24 is configured on R2, which address is appropriate as the next hop?
  4. A router has learned routes to the same destination, 192.168.50.0/24, from both OSPF and RIP. On this router, the administrative distance, which expresses the preference for each route source (lower is preferred), is 110 for OSPF and 120 for RIP. Which route goes into the routing table?
  5. A router's routing table holds three routes: a static route 10.0.0.0/8 (next hop router A, administrative distance 1), 10.1.0.0/16 learned by OSPF (router B, 110) and 10.1.1.0/24 learned by RIP (router C, 120). To which router is a packet for 10.1.1.5 sent?

Comparisons in this topic