当前位置:网站首页>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 .






边栏推荐
- Divicon est toujours utilisé dans le leaflet de l'ère H5?
- Do you have to read for PMP?
- Pytorch loading model error resolution
- C # graphic tutorial (Fourth Edition) chapter7-7.6.1 virtual and override
- Operation of simulation test platform for G3 boiler water treatment test questions in 2022
- How about opening a securities account in flush? Is it safe or not
- Memory address mapping of u-boot
- H5时代leaflet中还在用DivIcon?
- TCP与UDP
- Tableau
猜你喜欢

Start of u-boot_ Armboot analysis (I)

你真的会用PostGIS中的buffer缓冲吗?

Matlab【路径规划】—— 无人机药品配送路线最优化

【Matlab】矩阵变换与矩阵求值

How to publish OSM maps locally and customize the mapping

H5时代leaflet中还在用DivIcon?

Preparing for the Blue Bridge Cup Day11__ Basic operation of serial port communication

Pytorch loading model error resolution

Examination questions and online simulation examination for safety management personnel of hazardous chemical business units in 2022

【HCIE论述】组播IGMP-A
随机推荐
2022年R2移动式压力容器充装考试题及在线模拟考试
How to use Huawei cloud disaster tolerance solution to replace disaster recovery all-in-one machine
How leaflet gracefully displays the bubble window of overlapping points
妙才周刊 - 5
2022年危险化学品经营单位安全管理人员考试试题及在线模拟考试
Why study PMP?
Vscode实现PHP在浏览器实时预览
CS for mobile security [nethunter]
PLC peut également faire des jeux - - codesys écrit des jeux de devinettes numériques
Memory address mapping of u-boot
KConfig
华为云弹性云服务器ECS使用【华为云至简致远】
H5时代leaflet中还在用DivIcon?
AWS lambda: how to store secrets to external APIs- AWS Lambda: How to store secret to external API?
【Matlab】矩阵
Matlab【路径规划】—— 无人机药品配送路线最优化
Design MySQL table structure for message queue to store information data
如何实现OSM地图本地发布并自定义配图
PMP training organization
June 11, 2022 diary: Mr. Wang's spring, mixed in