-
If you want to be in the same network segment, you must have the same network identity, so how to calculate the network identity?
All types of network identification algorithms are different.
class, only the first paragraph.
class, only counts the first.
Paragraphs 1 and 2. class, arithmetic. Paragraphs 1, 2 and 3.
The algorithm just needs to put and the number of bits of the subnet mask.
and methods: 0 and 1 0 0 0 and 0 0 1 and 1 1 such as: and,, first convert to binary, and then and every bit of the subnet mask.
Derive and results.
Convert to decimal system, which is the network identity, and then reverse the subnet mask, that is:
With ip and get the result:
Convert to decimal system, i.e., that's the host ID.
In order to be on the same network segment, the network identity must be the same.
Let's take a look at this class that has been changed to the default subnet mask, such as: Are the subnet masks all set to, in the same network segment?
Convert these into binary first.
and, respectively, got.
The network identifier is different, that is, it is not in the same network segment.
-
Perform an AND operation on the IP address and the subnet mask (first convert it into binary) to obtain the network address, and the same network segment is the same network address.
-
1. IP address and subnet mask, in the subnet mask is the same, normally, the first 24 bits of the IP address are the same, and the last 8 digits change.
For example, if you want to be the same as 2, the native workgroup is the same, you select Properties on My Computer, and then select the computer name to see if the workgroup is the same.
-
To determine whether the two IP addresses are in the same network segment, it is to compare the network identifier (network address infiltration), if the network identifier is the same, it is in the same subnet, otherwise, it is not in the same subnet.
-
If the IP addresses of the two are the same in the first three segments and the last segment are different, it means that they are in the same network segment, otherwise they are not in the same network segment.
1. Open "Start" - Run "- CMD" in turn to open the DOS interface as shown below
-
You write the IP addresses of these two computers in binary form, and the corresponding subnet mask is also written in binary form, and then the respective IP addresses and subnet masks are calculated with the subnet mask (that is, the corresponding bits are added +0=0), and the two results are calculated respectively.
-
See if the subnet mask of the two machines is the same as the gateway, the same is a network segment, and the different is not a network segment.
-
CIDR block differentiation involves subnet division.
Generally, if the subnet mask is, then the first three digits of the IP are the same, then they are in the same subnet.
For more information about the concept of subnetting, please refer to:
-
Different network segments: The two groups of devices connected by them are still in their own independent physical layers, because the Kaimin type is two network segments, and the computer networks belonging to two different network segments are different network segments.
Connected devices: such as bridges, switches, routers, etc.
Devices that typically use the same physical layer, and if their transmission media is connected through transit devices such as repeaters and hubs that operate at the physical layer, they are still considered devices in the same physical layer, with one network segment instead of two.
-
According to the subnet mask.
The subnet mask is all 16-bit, that is. The first 24 bits of both IPs are the same, which is a segment omission and therefore a network segment. Target.
The subnet masks are all 24-bit, that is. The top 24 bits of the two IPs are not the same, one is the other is.
Therefore, it is not a search for Zheng network segments.
One subnet mask is 16-bit and the other is 24-bit. At this time, it is the same network segment as it. And for the pair and it is not a network segment.
-
If you want to determine whether two IP addresses are in the same network segment, you only need to do the same calculation of the IP address and the subnet mask, if the result is the same, then the two IP addresses are in the same subnet. Method Step 2: Examples:
Subnet Mask: Methods Step 4: Do and Operate:
The result they get is the same as the arithmetic and the arithmetic, and the conversion to decimal is:. So and is in the same network segment.
Personal computers belong to the category of microcomputers. Microcomputers are characterized by their small size. Flexibility. **Cheap. Easy to use. >>>More
360TimeProtect time protection tool.
Thanks to MJ0011 for delivery. >>>More
Novices should first learn how to operate a computer, including the use of a familiar keyboard and mouse, and then learn to type, and then learn to use the operating system proficiently. >>>More
1. Inter-process communication is to disseminate or exchange information between different processes, so what media can be accessed by both parties between different processes? The user space of the processes is independent of each other and generally cannot be accessed from each other, with the only exception being shared memory. >>>More
The computer level 1 exam is divided into three subjects, namely level 1 MS office, level 1 WPS office, and level 1 Photoshop, and the scores of multiple-choice questions are as follows: 1. Level 1 WPS Office: 20 points for multiple-choice questions. >>>More