The subnet mask for a particular network is 255.255.31.0. Which of the...
A and C are not the answers as the second byte of IP differs and subnet mast has 255 for second byte.
Consider B, (& for bitwise AND)
10.35.28.2 & 255.255.31.0 = 10.35.28.0 (28 = 111002)
10.35.29.4 & 255.255.31.0 = 10.35.29.0 (29 = 111112)
So, we get different subnet numbers
Consider D.
128.8.129.43 & 255.255.31.0 = 128.8.1.0 (129 = 100000012)
128.8.161.55 & 255.255.31.0 = 128.8.1.0 (161 = 101000012)
The subnet number matches. So, D is the answer.
View all questions of this test
The subnet mask for a particular network is 255.255.31.0. Which of the...
Explanation:
Subnet mask is used to divide an IP address into network and host portions. In this case, the subnet mask is 255.255.31.0, which means that the first 21 bits are used for network identification while the remaining 11 bits are used for host identification.
To find out which pairs of IP addresses could belong to this network, we need to compare the first 21 bits of each IP address with the network portion of the subnet mask.
Option A: 172.57.88.62 and 172.56.87.23
- First IP address: 10101100.00111001.01011000.00111110
- Second IP address: 10101100.00111000.01010111.00010111
- Both IP addresses have different network portions, so they cannot belong to the same network as the given subnet mask.
Option B: 10.35.28.2 and 10.35.29.4
- First IP address: 00001010.00100011.00011100.00000010
- Second IP address: 00001010.00100011.00011101.00000100
- Both IP addresses have the same network portion (00001010.00100011.000111), but the third octet is not within the range of the subnet mask (0-31). Therefore, these IP addresses cannot belong to the given network.
Option C: 191.203.31.87 and 191.234.31.88
- First IP address: 10111111.11001011.00011111.01010111
- Second IP address: 10111111.11101010.00011111.01011000
- Both IP addresses have the same network portion (10111111.11), but the next 10 bits are different, which means they cannot belong to the same network.
Option D: 128.8.129.43 and 128.8.161.55
- First IP address: 10000000.00001000.10000001.00101011
- Second IP address: 10000000.00001000.10100001.00110111
- Both IP addresses have the same network portion (10000000.00001000.10), which matches the network portion of the given subnet mask. Therefore, these IP addresses could belong to the same network as the subnet mask.
Thus, option D is the correct answer.
The subnet mask for a particular network is 255.255.31.0. Which of the...
A and C are not the answers as the second byte of IP differs and subnet mast has 255 for second byte.
Consider B, (& for bitwise AND)
10.35.28.2 & 255.255.31.0 = 10.35.28.0 (28 = 111002)
10.35.29.4 & 255.255.31.0 = 10.35.29.0 (29 = 111112)
So, we get different subnet numbers
Consider D.
128.8.129.43 & 255.255.31.0 = 128.8.1.0 (129 = 100000012)
128.8.161.55 & 255.255.31.0 = 128.8.1.0 (161 = 101000012)
The subnet number matches. So, D is the answer.
To make sure you are not studying endlessly, EduRev has designed Computer Science Engineering (CSE) study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in Computer Science Engineering (CSE).