当前位置:网站首页>Learn to divide subnets in an article
Learn to divide subnets in an article
2022-06-12 23:53:00 【Sun Bujian 1208】
List of articles
IP Address and subnet Division
Towards the end of the term , Review computer network , An article teaches you to understand subnet partition .
Basic concepts
according to TCP/IP agreement , Connected to the Internet Every device on the must have a globally unique IP Address ( The logical address used by the network layer ) 32 The binary number of bits .
It is generally expressed in dotted decimal system : Every time 8 One by one , Convert to decimal , use "." separate
meaning : network number + Host number
32(bit) The binary number of bits :
dotted decimal : Every time 8 Bit to a decimal number , use . separate
IP Address meaning :
IP Natural classification of addresses
IP Address type | Binary fixed highest | First byte Decimal range | Binary system network number | Binary system Host number |
---|---|---|---|---|
A class | 0 | 0~127 | 8 position | 24 position |
B class | 1 | 128~191 | 16 position | 16 position |
C class | 110 | 192~223 | 24 position | 8 position |
D class | 1110 | 224~239 | Multicast uses | |
E class | 11110 | 240~255 | Reserved for trial use |
special IP Address
network address : The network address is used to represent the network where the device is located . The network number part is not change , The host number part is all “0”( Binary system ) Of IP The address is called the network address . Such as mainframe 129.5.1.1(B class ) The network address of your network is 129.5.0.0.
Broadcast address : The broadcast address is used to broadcast to all devices in the same network . network The network number remains unchanged , The host number part is all “1”( Binary system ) Of IP Address scale For broadcast address . Such as mainframe 129.5.1.1 ( B class ) the stay network Collateral Of wide seeding The earth site Just yes 129.5.255.255.
Loopback address : The device address in the network cannot be decimal 127 As the beginning ,127 open The address of the header is reserved for the system for diagnostic purposes , Called loopback address . If you use instructions : ping 127.0.0.1 Test whether the local network card works normally ( Loop test )
subject : Judge the following IP Classification of addresses
10.2.1.1 128.63.2.100 201.222.5.64 192.6.141.2 256.241.201.10
IP Address | Category | network address | Broadcast address |
---|---|---|---|
10.2.1.1 | A | 10.0.0.0 | 10.255.255.255 |
128.63.2.100 | B | 128.63.0.0 | 128.63.255.255 |
201.222.5.64 | C | 201.222.5.0 | 201.222.5.255 |
192.6.141.2 | C | 192.6.141.0 | 192.6.141.255 |
256.241.201.10 non-existent
Subnet mask
- Subnet mask : Used to identify IP The number of digits of the network number in the address
- 2 There are two ways to express :
- 32 Bit binary number , In the subnet mask , Corresponding to the network number part, use binary “1” Express , The host number part is binary “0” Express . Such as IP Address 1.1.1.1 The subnet mask for is 255.0.0.0, Indicates the front of this address 8 Bit is the network number .
- Network suffix method , namely “IP Address / Number of network numbers ” , Such as 138.96.0.1/18 surface Show that IP The network number of the network where the address is located 18 position , Host number 14 position .
- A network , The host number has x position , Then the network can be assigned to the host IP How many addresses ?
- The network consists of 2 Of x The next address , Remove network address and broadcast address , That can be assigned to a host IP The address is 2 Of x Power -2 individual
- for example , One C Class network , That can be assigned to a host IP The address is 2 Of 8 Power -2=254 individual
Subnet partition ( Topic actual combat )
Reasons for dividing subnets : Improve IP Address utilization .

The core idea of subnet Division : The network number remains unchanged , Borrowing part of the host number to generate a new network .






边栏推荐
- 一篇文章学会子网划分
- Introduction to message oriented middleware (message queue)
- 【HCIE论述】STP-A
- 同花顺开证券账户怎么样?到底安不安全呢
- Pytorch loading model error resolution
- SAP QM qp03 displays an inspection plan with multiple specs inspection features
- 2022 R2 mobile pressure vessel filling test questions and online simulation test
- 2022年G3锅炉水处理考题模拟考试平台操作
- June 11, 2022 diary: Mr. Wang's spring, mixed in
- Zhengzhou University of light industry -- development and sharing of harmonyos pet health system
猜你喜欢
Day 3 of jsbom and DOM learning
PMP test experience
2022起重机械指挥上岗证题目模拟考试平台操作
Leetcode 2200. Find all k nearest neighbor subscripts in the array (yes, one pass)
Start of u-boot S analysis (III)
机加工行业MES系统模具行业MES系统CNCl中工行业MES系统MES扫码报工MES数据采集
leaflet中如何优雅的解决百度、高德地图的偏移问题
Talent Weekly - 5
PLC peut également faire des jeux - - codesys écrit des jeux de devinettes numériques
How leaflet gracefully displays the bubble window of overlapping points
随机推荐
Pytorch loading model error resolution
Lower interest rates lead to higher bond prices
Software development tools [3] theoretical basis of software development tools
Novice must see! How rust beginners write gear smart contracts (1)
Examination questions and online simulation examination for safety management personnel of hazardous chemical business units in 2022
PLC也能制作小遊戲----Codesys編寫猜數字小遊戲
【HCIE论述】STP-A
Teach you how to grab ZigBee packets through cc2531 and parse encrypted ZigBee packets
Enterprise wechat H5_ Authentication, H5 application web page authorization login to obtain identity
支持Canvas的Leaflet.Path.DashFlow动态流向线
如何利用华为云容灾解决方案替代灾备一体机
June 11, 2022 diary: Mr. Wang's spring, mixed in
How leaflet gracefully displays the bubble window of overlapping points
KConfig
36 krypton's debut | "osogena" won nearly ten million angel rounds of financing. The original DLR scientists of German Aerospace Research and development system modeling and simulation CAE software PA
OSM地图本地发布-如何生成各省市矢量地图
Tableau
Based on three JS offshore wind power digital twin 3D effect
2022年电工(初级)操作证考试题库及在线模拟考试
Do you really use the buffer buffer in PostGIS?