Name Date
IP Subnet worksheet
College and adult
Calcapedia Solve each problem and show your work. Round answers to 2 decimal places where needed.
- 1.
Problem 1. - IPv4 address: 253.184.2.4
- Network size given as: CIDR prefix (/24)
- Prefix length: /28
Find: Network (CIDR)
Answer
- 2.
Problem 2. - IPv4 address: 102.17.2.18
- Network size given as: CIDR prefix (/24)
- Prefix length: /28
Find: Network (CIDR)
Answer
- 3.
Problem 3. - IPv4 address: 46.135.1.14
- Network size given as: CIDR prefix (/24)
- Prefix length: /20
Find: Network (CIDR)
Answer
- 4.
Problem 4. - IPv4 address: 47.48.1.7
- Network size given as: CIDR prefix (/24)
- Prefix length: /24
Find: Network (CIDR)
Answer
- 5.
Problem 5. - IPv4 address: 234.177.1.15
- Network size given as: CIDR prefix (/24)
- Prefix length: /24
Find: Network (CIDR)
Answer
- 6.
Problem 6. - IPv4 address: 12.136.2.14
- Network size given as: CIDR prefix (/24)
- Prefix length: /30
Find: Network (CIDR)
Answer
- 7.
Problem 7. - IPv4 address: 2.213.1.16
- Network size given as: CIDR prefix (/24)
- Prefix length: /26
Find: Network (CIDR)
Answer
- 8.
Problem 8. - IPv4 address: 216.77.1.6
- Network size given as: CIDR prefix (/24)
- Prefix length: /22
Find: Network (CIDR)
Answer
- 9.
Problem 9. - IPv4 address: 150.58.2.11
- Network size given as: CIDR prefix (/24)
- Prefix length: /18
Find: Network (CIDR)
Answer
- 10.
Problem 10. - IPv4 address: 197.153.1.13
- Network size given as: CIDR prefix (/24)
- Prefix length: /26
Find: Network (CIDR)
Answer
Answer key: IP Subnet worksheet
Calcapedia 1. Network (CIDR): 253.184.2.0/28
Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit
A /28 mask is 28 one-bits (the network part) followed by 4 zero-bits (the host part)
Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address
Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)
4 host bits give 2 to the power of 4 addresses. Take away 2, because the network and broadcast addresses can't be given to devices
2. Network (CIDR): 102.17.2.16/28
Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit
A /28 mask is 28 one-bits (the network part) followed by 4 zero-bits (the host part)
Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address
Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)
4 host bits give 2 to the power of 4 addresses. Take away 2, because the network and broadcast addresses can't be given to devices
3. Network (CIDR): 46.135.0.0/20
Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit
A /20 mask is 20 one-bits (the network part) followed by 12 zero-bits (the host part)
Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address
Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)
12 host bits give 2 to the power of 12 addresses. Take away 2, because the network and broadcast addresses can't be given to devices
4. Network (CIDR): 47.48.1.0/24
Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit
A /24 mask is 24 one-bits (the network part) followed by 8 zero-bits (the host part)
Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address
Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)
8 host bits give 2 to the power of 8 addresses. Take away 2, because the network and broadcast addresses can't be given to devices
5. Network (CIDR): 234.177.1.0/24
Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit
A /24 mask is 24 one-bits (the network part) followed by 8 zero-bits (the host part)
Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address
Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)
8 host bits give 2 to the power of 8 addresses. Take away 2, because the network and broadcast addresses can't be given to devices
6. Network (CIDR): 12.136.2.12/30
Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit
A /30 mask is 30 one-bits (the network part) followed by 2 zero-bits (the host part)
Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address
Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)
2 host bits give 2 to the power of 2 addresses. Take away 2, because the network and broadcast addresses can't be given to devices
7. Network (CIDR): 2.213.1.0/26
Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit
A /26 mask is 26 one-bits (the network part) followed by 6 zero-bits (the host part)
Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address
Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)
6 host bits give 2 to the power of 6 addresses. Take away 2, because the network and broadcast addresses can't be given to devices
8. Network (CIDR): 216.77.0.0/22
Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit
A /22 mask is 22 one-bits (the network part) followed by 10 zero-bits (the host part)
Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address
Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)
10 host bits give 2 to the power of 10 addresses. Take away 2, because the network and broadcast addresses can't be given to devices
9. Network (CIDR): 150.58.0.0/18
Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit
A /18 mask is 18 one-bits (the network part) followed by 14 zero-bits (the host part)
Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address
Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)
14 host bits give 2 to the power of 14 addresses. Take away 2, because the network and broadcast addresses can't be given to devices
10. Network (CIDR): 197.153.1.0/26
Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit
A /26 mask is 26 one-bits (the network part) followed by 6 zero-bits (the host part)
Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address
Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)
6 host bits give 2 to the power of 6 addresses. Take away 2, because the network and broadcast addresses can't be given to devices