[Network technology] calculates the network address, direct broadcast address, and host number based on the IP address subnet mask.

Source: Internet
Author: User

I don't need to analyze it professionally. I use dummies to answer questions.

This is a simulated question. Use this question as an example.

URL type: Of course, it is Class B.


Convert the IP address and subnet mask to binary, and then perform operations on them.

145.189.24.3 10010001 10111101 00011000 00000011

201710000224.0 11111111 11111111 11100000 00000000

Network Address: Calculate the IP address and subnet mask. If two values are met, one is met, one is met, 0 is met, and the other is 0.

Changed to: 10010001 10111101 00000000 00000000

Then, convert the binary value to the decimal value to know that the network address is 145.189.0.0.


Direct broadcast address :?? The font direct broadcast address is counted as the number of zeros after the binary netmask, and then the number of digits after the binary address is changed to 1. Convert to binary.

Changed to 10010001 10111101 00011111 11111111

Convert to IP address 145.189.31.255


Host number: changes the subnet mask 1 to 0, 0 to 1, and then performs operations with the IP address.

Changed to 00000000 00000000 00011111 11111111

145.189.24.3 10010001 10111101 00011000 00000011

Network number binary: 00000000 00000000 00011000 00000011

Network No.: 0.0.24.3


Last available IP Address: 145.189.31.254

First available IP Address: 145.189.0.1

Reprinted please indicate Source: edire blog: http://my.oschina.net/edire/



[Network technology] calculates the network address, direct broadcast address, and host number based on the IP address subnet mask.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.