Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Which two parts does the IP address contain?

Shulou Source: shulou.com Published: 2022-06-01 10:50:59 09月14日 Update

This article mainly introduces "which two parts IP address contains". In daily operation, I believe many people have doubts about which two parts IP address contains. Xiaobian consulted all kinds of information and sorted out simple and easy operation methods. I hope to help you answer the question of "which two parts IP address contains"! Next, please follow the small series to learn together!

IP (Internet Protocol)IP address

An IP address actually contains two parts, one part is the network address and the other part is the machine address.

Network address: English is Network Address, network is the meaning of the network, address is the meaning of the address. This network is the network in which the machine resides.

Machine address: English is Host Address, host is the meaning of host, so the machine address is also called host address. In the computer world, any machine connected to the Internet is generally referred to as a host. So we're going to use the term host address instead of machine address.

subnet mask

The IP address and subnet mask are inseparable because it is the subnet mask that indicates which part of the IP address is the network address and which part is the host address.

Subnet mask is only used to match IPv4 format IP address, IPv6 format address does not need subnet mask, so subnet mask and IPv4 IP address format is the same, also 4 bytes (32 bits, because a byte is 8 bits binary, that is, 8 bits), expressed in dotted decimal (of course, it is also possible to express it in dotted binary, just like IPv4 IP addresses).

A binary bit of 1 in the subnet mask represents the network portion of the IP address (network address).

A binary bit of 0 in the subnet mask represents the host portion of the IP address (host address)

In a subnet mask presented in binary form, the bits of 1 must be on the left and the bits of 0 must be on the right. Zero and 1 cannot be mixed. Each of the 4 bytes of the subnet mask will always take the following values, and no other values.

000000-> 01000000-> 1281100000-> 19211100000-> 22411110000-> 24011111000 -> 24811111100-> 252111110-> 254111111-> 255CIDR notation

CIDR stands for Classless Inter-Domain Routing.

The subnet mask 255.255.255.0 is abbreviated as/24, which means that the first 24 bits of the subnet mask are all 1.

Abbreviate 255.255.255.0 to 192.168.0.1/24. 192.168.0.1

At this point, the study of "which two parts of IP address contain" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Tags: Address subnet network part host two machine binary format learning byte meaning representative more abbreviation English help practical and then Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Docker Huawei NVidia Shulou Technology