Home>Article> What will happen if the IP addresses of the two hosts are ANDed with their subnet masks?

What will happen if the IP addresses of the two hosts are ANDed with their subnet masks?

藏色散人
藏色散人 Original
2020-05-17 09:49:01 4748browse

What will happen if the IP addresses of the two hosts are ANDed with their subnet masks?

What will happen if the IP addresses of the two hosts are ANDed with their subnet masks?

The results of the "AND" operation between the IP addresses of the two hosts and their subnet masks are the same.

Related introduction:

Subnet mask (subnet mask) is also called network mask, address mask, subnet mask. It is a method used to specify which parts of an IP address The bits identify the subnet the host is on, and which bits identify the host's bitmask. The subnet mask cannot exist alone, it must be used in conjunction with the IP address. The subnet mask has only one function, which is to divide an IP address into two parts: a network address and a host address.

The subnet mask is a 32-bit address that is used to mask a part of the IP address to distinguish the network identification and the host identification, and to indicate whether the IP address is on a LAN or a WAN.

The above is the detailed content of What will happen if the IP addresses of the two hosts are ANDed with their subnet masks?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Macro definition function Next article:Macro definition function