how to calculate subnet mask from ip address manually
how to calculate subnet mask from ip address manually
Alibabacloud.com offers a wide variety of articles about how to calculate subnet mask from ip address manually, easily find your how to calculate subnet mask from ip address manually information here online.
There are two ways to compute the subnet mask:
Method One: Use the subnet number to calculate:
1. First of all, the number of subnets from the decimal number into binary number;
2. Then, the number of digits of the binary number obtained by the statistic is set to n;
3. Finally, the
(2, n)-2 (all zeros are used for network addresses, and all 1 is used for broadcast addresses)
The number of 1 in the subnet mask can be used to calculate the number of subnetworks.
For example, if the IP address is 151.244.20.34 and the
This article mainly introduces how to use Python to calculate network segments based on IP addresses and subnet masks. It involves Python character string operation techniques based on the Linux platform and has some reference value, for more information about how to use Python to calculate network segments based on
is 202.112.14.159.In the ccna test, you also need to plan the subnet address and calculate the subnet mask based on the number of hosts on each network. This can also be calculated based on the above principles. For example, if a subnet
, why calculate network addressThe bottom line is that the computers in the network can communicate with each other. First look at the simplest network, Figure 3 is to use a network cable (crossover) directly connect two computers. Here are several IP address settings to see if the network is on or off in different settings.1, set the
different networks, so it does not pass.Here is a conclusion: the computer with a direct connection to the network cable or through the hub (hub) or the ordinary switch between the computer to be able to communicate with each other, the computer must be on the same network, that is, their network address must be the same, And the host address must be different. If it is not a network will not be able to pa
, infrared, etc., sometimes referred to as physical media. The MAC address is also called the physical address, hardware address, or link address, which is written by the network device manufacturer when it is produced inside the hardware. This address is not related to the
is a private address and cannot be applied directly in the Internet. The Internet must be converted to a public address.I. Why do I need to calculate the network address?In a word, computers in the network can communicate with each other. first, let's look at the simplest network. Figure 3 uses a network cable (crossover line) to directly connect the two compute
IP addresses, subnet masks, and gateways in network management are the basic knowledge that each network administrator must master. Only by mastering them can you really understand the TCP/IP protocol settings. The following describes what a subnet mask is.To understand what
Summary:
Class A, B, C is actually the concept of address block, the so-called application of a class C address, refers to the application of a Class C address block.
C class Address block of specific IP address of this class C
): Network address + host address =192.168.100.1Broadcast address: 192.168.100.255How are these addresses calculated? Why calculate these addresses? To know how, first to understand a truth, the purpose of learning Network is how to make the network of computers communicate with each other, that is, around the word "to
Question:
If a company has 100 computers and a class C registered IP address segment: 218.102.142.0, its Intranet (LAN) needs to be further divided into two subnets, each with 40 computers and 60 computers,
Requirements:
(1) Specify the subnet mask;
(2) assume that the IP
, that subnet mask set how much appropriate? Let's set out a formula first.2 m-Time Square =560First, we determine that 2 must be greater than 8 square, because we know that 2 of 8 is 256, that is, the number of Class C IP maximum capacity of the computer, we from 9 times a trial 2 9 is 512, less than 560, 2 10 is 1024, it seems 2 of the most suitable. The
The subnet address and broadcast address are not given directly because the condition is given precedence. However, these two parameters require that we use the IP address and subnet mask
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
Reference Original address: http://www.cnblogs.com/JuneWang/p/3917697.htmlIP Address:IPv4IP address = network number + host numberSubnet Mask:A subnet mask is a basis for determining whether the IP addresses of any two computers belong to the same
A few words to master subnet mask, IP address, host number, network number, network address, broadcast address1, 191.172.16.10.33/27 in the/27 that is, the subnet mask is 255.255.255.22
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.