nerdexam
CompTIA

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.

Networking Fundamentals

Question

Which of the following are valid IPv4 network masks? (Choose two correct answers.)

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)
  • A
    92% (46)
  • B
    2% (1)
  • C
    2% (1)
  • D
    4% (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.

A255.255.0.0Correct

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.

B255.255.255.65

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.

C255.255.0.255

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.

D0.0.0.1

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.

E255.255.255.248Correct

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

#IPv4#Network masks#Subnetting

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice