AWS Certified Advanced Networking - Specialty Exam: Equivalent Network Mask for CIDR Block 10.0.0.0/24

Equivalent Network Mask

Prev Question Next Question

Question

You have been told to define a VPC with a CIDR block as 10.0.0.0/24

What is the equivalent Network mask for this block?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - C.

If you see the result of any online CIDR calculator , you will get this result.

For trying out the CIDR calculator, please visit the following URL:

http://www.subnet-calculator.com/cidr.php
CIDR Calculator

IP Address
10.0.0.0

Mask Bits
24 M

Maximum Subnets
256 M

CIDR Network (Route)
10.0.0.0

CIDR Address Range

CIDR Netmask

255.255.255.0 M

Wildcard Mask
0.0.0.255

Maximum Addresses
254 M

Net: CIDR Notation
10.0.0.0/24

10.0.0.0 - 10.0.0.255

The CIDR block 10.0.0.0/24 specifies that the IP addresses within the VPC will range from 10.0.0.0 to 10.0.0.255.

The equivalent network mask for this CIDR block can be calculated as follows:

  • First, convert the CIDR notation to binary. The number after the slash (/24) indicates the number of bits in the network portion of the address. Since IPv4 addresses are 32 bits long, there are 8 bits left for the host portion of the address. Therefore, the binary representation of the CIDR block is:

    10.0.0.0/24 = 00001010.00000000.00000000.00000000/24

  • Next, count the number of bits in the network portion of the address. In this case, there are 24 bits in the network portion and 8 bits in the host portion.

  • To calculate the network mask, set all of the bits in the network portion to 1s and all of the bits in the host portion to 0s. In this case, the network mask would be:

    11111111.11111111.11111111.00000000

  • Finally, convert the binary network mask to dotted decimal notation to get the answer. The equivalent network mask for the CIDR block 10.0.0.0/24 is:

    255.255.255.0

Therefore, the correct answer is C. 255.255.255.0.