Skip to content
Calcapedia
Number of problems

In the print window, choose “Save as PDF” as the printer (or print it on paper). Seed 1 rebuilds this exact sheet.

Showing 10 problems, seed 1.

IP Subnet worksheet

College and adult

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)

  2. Problem 2.
    • IPv4 address: 102.17.2.18
    • Network size given as: CIDR prefix (/24)
    • Prefix length: /28

    Find: Network (CIDR)

  3. Problem 3.
    • IPv4 address: 46.135.1.14
    • Network size given as: CIDR prefix (/24)
    • Prefix length: /20

    Find: Network (CIDR)

  4. Problem 4.
    • IPv4 address: 47.48.1.7
    • Network size given as: CIDR prefix (/24)
    • Prefix length: /24

    Find: Network (CIDR)

  5. Problem 5.
    • IPv4 address: 234.177.1.15
    • Network size given as: CIDR prefix (/24)
    • Prefix length: /24

    Find: Network (CIDR)

  6. Problem 6.
    • IPv4 address: 12.136.2.14
    • Network size given as: CIDR prefix (/24)
    • Prefix length: /30

    Find: Network (CIDR)

  7. Problem 7.
    • IPv4 address: 2.213.1.16
    • Network size given as: CIDR prefix (/24)
    • Prefix length: /26

    Find: Network (CIDR)

  8. Problem 8.
    • IPv4 address: 216.77.1.6
    • Network size given as: CIDR prefix (/24)
    • Prefix length: /22

    Find: Network (CIDR)

  9. Problem 9.
    • IPv4 address: 150.58.2.11
    • Network size given as: CIDR prefix (/24)
    • Prefix length: /18

    Find: Network (CIDR)

  10. Problem 10.
    • IPv4 address: 197.153.1.13
    • Network size given as: CIDR prefix (/24)
    • Prefix length: /26

    Find: Network (CIDR)

Answer key: IP Subnet worksheet

  1. 1. Network (CIDR): 253.184.2.0/28

    1. Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit

      253.184.2.4=11111101.10111000.00000010.00000100
    2. A /28 mask is 28 one-bits (the network part) followed by 4 zero-bits (the host part)

      /28=11111111.11111111.11111111.11110000=255.255.255.240
    3. Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address

      11111101.10111000.00000010.00000100 AND 11111111.11111111.11111111.11110000=11111101.10111000.00000010.00000000=253.184.2.0/28
    4. Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)

      253.184.2.0 OR 0.0.0.15=253.184.2.15
    5. 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

      24−2=14
  2. 2. Network (CIDR): 102.17.2.16/28

    1. Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit

      102.17.2.18=01100110.00010001.00000010.00010010
    2. A /28 mask is 28 one-bits (the network part) followed by 4 zero-bits (the host part)

      /28=11111111.11111111.11111111.11110000=255.255.255.240
    3. Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address

      01100110.00010001.00000010.00010010 AND 11111111.11111111.11111111.11110000=01100110.00010001.00000010.00010000=102.17.2.16/28
    4. Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)

      102.17.2.16 OR 0.0.0.15=102.17.2.31
    5. 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

      24−2=14
  3. 3. Network (CIDR): 46.135.0.0/20

    1. Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit

      46.135.1.14=00101110.10000111.00000001.00001110
    2. A /20 mask is 20 one-bits (the network part) followed by 12 zero-bits (the host part)

      /20=11111111.11111111.11110000.00000000=255.255.240.0
    3. Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address

      00101110.10000111.00000001.00001110 AND 11111111.11111111.11110000.00000000=00101110.10000111.00000000.00000000=46.135.0.0/20
    4. Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)

      46.135.0.0 OR 0.0.15.255=46.135.15.255
    5. 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

      212−2=4,094
  4. 4. Network (CIDR): 47.48.1.0/24

    1. Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit

      47.48.1.7=00101111.00110000.00000001.00000111
    2. A /24 mask is 24 one-bits (the network part) followed by 8 zero-bits (the host part)

      /24=11111111.11111111.11111111.00000000=255.255.255.0
    3. Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address

      00101111.00110000.00000001.00000111 AND 11111111.11111111.11111111.00000000=00101111.00110000.00000001.00000000=47.48.1.0/24
    4. Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)

      47.48.1.0 OR 0.0.0.255=47.48.1.255
    5. 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

      28−2=254
  5. 5. Network (CIDR): 234.177.1.0/24

    1. Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit

      234.177.1.15=11101010.10110001.00000001.00001111
    2. A /24 mask is 24 one-bits (the network part) followed by 8 zero-bits (the host part)

      /24=11111111.11111111.11111111.00000000=255.255.255.0
    3. Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address

      11101010.10110001.00000001.00001111 AND 11111111.11111111.11111111.00000000=11101010.10110001.00000001.00000000=234.177.1.0/24
    4. Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)

      234.177.1.0 OR 0.0.0.255=234.177.1.255
    5. 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

      28−2=254
  6. 6. Network (CIDR): 12.136.2.12/30

    1. Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit

      12.136.2.14=00001100.10001000.00000010.00001110
    2. A /30 mask is 30 one-bits (the network part) followed by 2 zero-bits (the host part)

      /30=11111111.11111111.11111111.11111100=255.255.255.252
    3. Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address

      00001100.10001000.00000010.00001110 AND 11111111.11111111.11111111.11111100=00001100.10001000.00000010.00001100=12.136.2.12/30
    4. Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)

      12.136.2.12 OR 0.0.0.3=12.136.2.15
    5. 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

      22−2=2
  7. 7. Network (CIDR): 2.213.1.0/26

    1. Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit

      2.213.1.16=00000010.11010101.00000001.00010000
    2. A /26 mask is 26 one-bits (the network part) followed by 6 zero-bits (the host part)

      /26=11111111.11111111.11111111.11000000=255.255.255.192
    3. Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address

      00000010.11010101.00000001.00010000 AND 11111111.11111111.11111111.11000000=00000010.11010101.00000001.00000000=2.213.1.0/26
    4. Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)

      2.213.1.0 OR 0.0.0.63=2.213.1.63
    5. 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

      26−2=62
  8. 8. Network (CIDR): 216.77.0.0/22

    1. Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit

      216.77.1.6=11011000.01001101.00000001.00000110
    2. A /22 mask is 22 one-bits (the network part) followed by 10 zero-bits (the host part)

      /22=11111111.11111111.11111100.00000000=255.255.252.0
    3. Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address

      11011000.01001101.00000001.00000110 AND 11111111.11111111.11111100.00000000=11011000.01001101.00000000.00000000=216.77.0.0/22
    4. Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)

      216.77.0.0 OR 0.0.3.255=216.77.3.255
    5. 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

      210−2=1,022
  9. 9. Network (CIDR): 150.58.0.0/18

    1. Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit

      150.58.2.11=10010110.00111010.00000010.00001011
    2. A /18 mask is 18 one-bits (the network part) followed by 14 zero-bits (the host part)

      /18=11111111.11111111.11000000.00000000=255.255.192.0
    3. Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address

      10010110.00111010.00000010.00001011 AND 11111111.11111111.11000000.00000000=10010110.00111010.00000000.00000000=150.58.0.0/18
    4. Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)

      150.58.0.0 OR 0.0.63.255=150.58.63.255
    5. 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

      214−2=16,382
  10. 10. Network (CIDR): 197.153.1.0/26

    1. Write the address in binary (ones and zeros), 8 bits for each of the four numbers, so you can see each bit

      197.153.1.13=11000101.10011001.00000001.00001101
    2. A /26 mask is 26 one-bits (the network part) followed by 6 zero-bits (the host part)

      /26=11111111.11111111.11111111.11000000=255.255.255.192
    3. Keep the address bits where the mask is 1 and set the rest to 0 (a bitwise AND). That leaves the network address

      11000101.10011001.00000001.00001101 AND 11111111.11111111.11111111.11000000=11000101.10011001.00000001.00000000=197.153.1.0/26
    4. Set every host bit to 1 to get the broadcast address, the last one in the block (network OR wildcard mask)

      197.153.1.0 OR 0.0.0.63=197.153.1.63
    5. 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

      26−2=62