To find the network part you have to perform which operation between netmask and IP?

Prepare for the eLearnSecurity Junior Penetration Tester exam with our comprehensive quiz platform. Improve your skills with multiple-choice questions, detailed explanations, and exam tips. Get exam ready with ease!

Multiple Choice

To find the network part you have to perform which operation between netmask and IP?

Explanation:
Finding the network part of an IP address is done by applying the subnet mask to the IP with a bitwise AND. The mask has 1s in the network bits and 0s in the host bits, so ANDing preserves the network portion and clears the host portion to zero. For example, 192.168.1.10 with a 255.255.255.0 mask yields 192.168.1.0, which is the network address for that subnet. If you used addition or subtraction, you wouldn’t reliably isolate the network bits—the result could carry over host bits or produce undefined values. Using OR would set host bits to 1, giving a result that represents a different address, not the true network address.

Finding the network part of an IP address is done by applying the subnet mask to the IP with a bitwise AND. The mask has 1s in the network bits and 0s in the host bits, so ANDing preserves the network portion and clears the host portion to zero. For example, 192.168.1.10 with a 255.255.255.0 mask yields 192.168.1.0, which is the network address for that subnet.

If you used addition or subtraction, you wouldn’t reliably isolate the network bits—the result could carry over host bits or produce undefined values. Using OR would set host bits to 1, giving a result that represents a different address, not the true network address.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy