LX0-104 · Question #664
Which of the following are valid IPv4 network masks? (Choose two correct answers.)
The correct answer is A. 255.255.0.0 E. 255.255.255.248. Valid IPv4 network masks consist of a contiguous block of ones followed by a contiguous block of zeros when expressed in binary.
Question
Options
- A255.255.0.0
- B255.255.255.65
- C255.255.0.255
- D0.0.0.1
- E255.255.255.248
How the community answered
(50 responses)- A92% (46)
- B2% (1)
- C2% (1)
- D4% (2)
Why each option
Valid IPv4 network masks consist of a contiguous block of ones followed by a contiguous block of zeros when expressed in binary.
255.255.0.0 is a valid network mask because its binary representation (11111111.11111111.00000000.00000000) shows a contiguous sequence of leading ones followed by zeros, representing a /16 prefix.
255.255.255.65 is not a valid network mask because 65 in binary (01000001) contains interspersed ones and zeros, breaking the contiguous block rule for a netmask.
255.255.0.255 is not a valid network mask because its binary representation (11111111.11111111.00000000.11111111) shows a non-contiguous pattern of ones and zeros, specifically a zero octet followed by an all-ones octet.
0.0.0.1 is not a valid network mask because it does not follow the contiguous block of ones followed by zeros rule; it would represent a very small network mask not used in practice.
255.255.255.248 is a valid network mask because its binary representation (11111111.11111111.11111111.11111000) shows a contiguous sequence of leading ones followed by zeros, representing a /29 prefix.
Concept tested: Valid IPv4 network masks
Source: https://www.cisco.com/c/en/us/support/docs/ip/routing-information-protocol-rip/13788-3.html
Topics
Community Discussion
No community discussion yet for this question.