. subnet division and mask settingsSubnet division is achieved by dividing the original network into several subnets by using several host locations of IP addresses as subnet addresses. When dividing subnets, The subnet address is borrowedAs the number of hosts increases, the number of subnets increases, and the number of available hosts in each
subnet mask is 255.255.0. One-bit host space is used to generate two subnets. Each subnet has 126 host addresses. Two-Bit host locations are used to generate four subnets. Each subnet has 62 host addresses ...... In each network, the first IP address (that is, the IP address of all hosts) and the last IP address (that is, the IP address of all hosts is 1) cannot
. here the network range ends in the previous one, that is, 10.0.31.255.
Chart
Note that the number of hosts doubles as the subnet size increases by one binary bit. the smallest step represents eight binary bits. The eight binary bits contain a subnet of 256 hosts. However, because you cannot use the first or last IP addresses, in fact, there are only 254 available hosts on the network. the easiest way t
answer is BC.
21. IP Address: 192.168.12.72, subnet mask: 255.255.255.255.192, the network address and broadcast address of the IP address segment are ()A. 192.168.12.32, 192.168.12.127;B. 192.168.0.0, 255.255.255.255;C. 192.168.12.43, 255.255.255.128;D. 192.168.12.64, 192.168.12.127.Analysis: It is obtained from subnet mask 255.255.255.255.192 that it has 26-bit network bits and 6-bit host bits.
Convert t
The subnet mask cannot exist alone, it must be used in conjunction with an IP address. The subnet mask has only one function, which is to divide an IP address into two parts: network address and host address.The subnet mask setting must follow certain rules. The same as the IP address, the length of the subnet mask is
As for subnet division, the subnet mask is odd. 1.0.1.0 -- 1.0.3.255 Fujian Telecom converts the subnet mask to an IP segment 1.0.1.0/24--1.0.2.0/23, if two IP addresses are replaced by binary IP addresses in a general way, or the budget is 0001.00000000.00000001.00, the subnet mask may be odd.
1.0.1.0 -- 1.0.3.255 Fuj
Python: a simple method for converting the subnet mask and a python Subnet Mask
This article describes how to convert the subnet mask in Python. We will share this with you for your reference. The details are as follows:
Here, the subnet mask length is converted to a specific sub
why no one is teaching this technique to beginners, because it makes it very easy to calculate subnets.Figure F
When the subnet mask has 11 0's time, it means that the subnet size is 11 bits long. This indicates that there are 2 to the power of 11, or 2048 hosts can appear in this network, the last of this SubnetThe IP address is 10.20.239.255. In the third 8-b
Returns information such as Network, mask, broadcast, reverse resolution, subnet number, IP type, etc. based on the IP or subnet enteredModule required for IPY module here is the Python3 version#!/usr/bin/envpython#-*-coding:utf-8-*-fromipyimportipip_s= input (' pleaseinputanipornet-range: ') # Parameters are IP or network segment Ips=ip (ip_s) Iflen (IPs) >1: #网络地址个数 print (' net:%s ' %ips.net ()) #输出网络地
11000000.10101000.00000000.00000001
(Here is the same as the subnet mask, 8 bits per paragraph, less than 8 bits, the front plus 0 is padded.) )
IP 11000000.10101000.00000000.00000001
Subnet Mask 11111111.11111111.11111111.00000000
Same network segment
Here, let's talk about exactly how to calculate the same network segment.
To be in the same network segment, m
2:I P address 192.168.0.254, subnet mask 255.255.0, and OperationConvert to binary for calculation:I P address: 1102.16.10101000.20.2.16.11111110Subnet Mask: 11111111.111111.11111111.00000000And Operation: 111000000.10101000.00000000.00000000Converted to decimal: 192.168.0.0Computing demonstration 3:I P address 192.168.0.4, subnet mask 255.255.0, And, convert to binary for calculation:I P address 1102.16.1
need to compute the subnet mask and allocate the corresponding host block, although using the binary calculation can draw the corresponding conclusion, but it is more convenient to calculate the decimal method. After long-term practice and experience accumulation, the author sums up the subnet mask and host block decimal algorithm.I. Clear ConceptsBefore introdu
=32Network bit + host bit =32The subnet mask is extended by n bits, which is divided into 2 N sub-subnets based on the current subnet. Number of IP addresses per subnet =2^ (32-The number of subnet mask bits before partitioning-N)How to compute the subnet mask according to
calculate the number of subnets that must be divided before the subnet mask is obtained, and the number of hosts required within each subnet. 1) Convert the number of subnets to binary to represent 2) obtain the number of bits of the binary, N 3) Obtain the IP address of the class subnet mask, the host address portion
administrator will need to calculate according to the first step out of the subnet planning scheme, can meet the needs of enterprise host data. When calculating the legitimate host IP address of a subnet, there is also a formula that can be applied: the number of 2x-2= legitimate host IP addresses (where x represents the number of digits of the
address is 192.168.0.192/26. This broadcast address is simpler: 192 is expressed as 11000000 in binary format. Take the last six digits (these bytes are "disabled" by the mask) and "open" These bytes. What do you get? 192.168.0.255. Check whether you have understood all this. Now, calculate the network address and broadcast address of 192.168.0.44/26. (Network Address: 192.168.0.0/26; broadcast address: 192.168.0.63 ).
These addresses are hard to be
simpler: 192 is expressed as 11000000 in binary format. Take the last six digits (these bytes are "disabled" by the mask) and "open" These bytes. What do you get? 192.168.0.255. Check whether you have understood all this. Now, calculate the network address and broadcast address of 192.168.0.44/26. (Network Address: 192.168.0.0/26; broadcast address: 192.168.0.63 ).
These addresses are hard to be viewed at first. It is helpful to create a table. If yo
(Here is the same as the subnet mask, 8 bits per paragraph, less than 8 bits, the front plus 0 is padded.) )IP 11000000.10101000.00000000.00000001Subnet Mask 11111111.11111111.11111111.00000000Here, let's talk about exactly how to calculate the same network segment.Want to be in the same network segment, must do network identity is same, that network identification how to
Tutorial on TCP/IP Subnet Mask
1. Default class A, B, and C addresses, subnet mask;
Ii. Role of subnet mask:
Code:IP address 192.20.15.5 11000000 00010100 00001111 00000101Subnet Mask 255.255.0.0 11111111 11111111 00000000 00000000Network ID 192.255.0.0 11000000 00010100 00000000 00000000Host ID 0.0.15.5 00001111 00000101
Ca
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.