Jeff R. answered 07/31/22
B.S. in Computer Science & Principal Newtork Security Engineer II
The first group of 64 customers will each need a /24 network (64 /24 networks total). The second group of 128 customers will each need a /25 (128 /25 networks total). And the third group of 128 customers will each need a /26 (128 /26 networks total).
Here is how I would design the allocations:
- First Group:
- Each customer would get their own subnet 190.100.X.0/24, where X is a number that ranges 0-63 for each customer. For example, customer 1 would get 190.100.0.0/24, customer 2 would get 190.100.1.0/24, customer 3 would get 190.100.2.0/24, etc. all the way up to 190.100.63.0/24.
- Second Group:
- Each customer of the second group would start off adjacently to where the first group's IP blocks left off. So the first customer of the second group would get the block 190.100.64.0/25, the second customer would get the block 190.100.64.128/25, the third customer would get 190.100.65.0/25, etc. all the way up to 190.100.127.128/25
- Third Group:
- Each customer of the third group would start off adjacently to where the second group's IP blocks left off. So the first customer of the third group would get the block 190.100.128.0/26, the second customer would get the block 190.100.128.64/26, the third customer would get the block 190.100.128.128/26, etc. all the way up to 190.100.170.192/26.
The 190.100.0.0/16 network has a total of 216 addresses, or 65,536 addresses. The first group has 64 x 28 addresses, or 64 x 256 = 16,384 addresses. The second group has 128 x 27 addresses, or 64 x 128 = 16,384 addresses. Finally, the third group has 128 x 26 addresses, or 128 x 64 = 8,192 addresses.
The sum of the addresses allocated to the first, second, and third groups is 16,384 + 16,384 + 8,192 = 40,960.
The amount of addresses remaining is 65,536 - 40,960 = 24,576