当前位置:网站首页>IP address classification, which determines whether a network segment is a subnet supernetwork
IP address classification, which determines whether a network segment is a subnet supernetwork
2022-07-25 14:41:00 【Love little Zhizhi forever~】
One 、IP Address classification

Two 、IP Address range
A class IP Address

One A class IP Address by 1 Byte network address and 3 Byte host address composition , The highest bit of the network address must be “0”.
The highest bit of the network address is 0 The address of , by A Class address . The Internet ID yes 0 Out-of-service ,127 As a reserved network segment , therefore A Class address 1 Part of the value range 1-126.
A The default subnet mask of class network is 255.0.0.0. host ID From the first 2 part 、 The first 3 Section and section 4 Part of it is made up of , The value range of each part 0-255, common 256 Species value , One A The number of class network hosts is 256×256×256=166777216, Here you need to subtract 2, host ID whole 0 The address of is the network address , And the mainframe ID All for 1 The address of is the broadcast address .
Address range 1.0.0.1-126.255.255.254
Binary representation as :00000001 00000000 00000000 00000001 - 01111110 11111111 11111111 11111110
B class IP Address

One B class IP Address by 2 Byte network address and 2 Byte host address composition , The highest bit of the network address must be “10”.
The highest bit of the network address is 10 The address for B Class address .IP Address No 1 The value range of part is 128-191.
B The default subnet mask of class network is 255.255.0.0. host ID From the first 3 Section and section 4 Part of it is made up of , Every B The maximum number of hosts that a class network can accommodate 256×256-2=65023.
Address range 128.1.0.1-191.255.255.254
Binary representation as :10000000 00000001 00000000 00000001 - 10111111 11111111 11111111 11111110
C class IP Address

One C class IP Address by 3 Byte network address and 1 Byte host address composition , The highest bit of the network address must be “110”.
The highest bit of the network address is 110 The address for C Class address .IP Address No 1 The value range of part is 192-223.
C The default subnet mask of class network is 255.255.255.0. host ID From the first 4 Part of it is made up of , Every C The maximum number of hosts that a class network can accommodate 256-2=254.
Range 192.0.1.1-223.255.255.254
Binary representation as : 11000000 00000000 00000001 00000001 - 11011111 11111111 11111110 11111110
D class 、E class IP Address

D class IP The first byte of the address is “1110” Start , It's a reserved address .
It doesn't point to a specific network , At present, this kind of address is used in multicast (Multicast) in .
The highest bit of the network address is 1110 The address for D Class address .D Class address 1 The value range of part is 224-239. For multicast ( Also known as multicast ) The address of , The multicast address has no subnet mask .
A multicast address is used to address a group of computers at a time
Address range 224.0.0.1-239.255.255.254

With “1111” Start , Reserved for future use
E Class address reservation , For experiment and development only
The highest bit of the network address is 11110 The address for E Class address . Part I value range 240-254, Reserved for future use .
3、 ... and 、IP Schematic diagram of address classification

Four 、 Judge whether a network segment is a subnet or a supernetwork
Merge multiple network segments by shifting the subnet mask to the left , Moving the subnet mask to the right divides a network segment into multiple subnets , bring IP The address breaks the traditional A class 、B class 、C Class boundaries .
Determine whether a network segment is a subnet or a Supernet , It depends on whether the network segment is A Class network 、 still B Class network 、 still C Class network , Default A Class subnet mask /8,B The class subnet mask is /16,C The class subnet mask is /24.
If the subnet mask of this network segment is longer than the default subnet mask , It's a subnet , If the subnet mask of this network segment is shorter than the default subnet mask , It's super net .
Example :
12.3.0.0/16 This is a A Class network or C What about class network ? Is it a Supernet or a subnet ?
answer :IP The first part of the address is 12, This is a A Class network ,A The default subnet mask of the class address is /8, The subnet mask of this network is /16, Longer than the default subnet mask , So this is A A subnet of a class network .
namely ,A The default subnet mask of the class address is 8, therefore 12.3.0.0 The default original network segment of is 12.0.0.0/8,12 It's the network part , Next is the host . 12.3.0.0/16,12.3 It's the network segment , Next is the host . therefore 12.3.0.0/16 yes 12.0.0.0/8 A sub network subdivided .
边栏推荐
猜你喜欢

基于PaddleOCR开发uni-app离线身份证识别插件

Alibaba cloud installs mysql5.7

Keys and scan based on redis delete keys with TTL -1

Gonzalez Digital Image Processing Chapter 1 Introduction

【口才】谈判说服技巧及策略

Realsense-Ros安装配置介绍与问题解决

阿里云安装MYSQL5.7

Initial flask and simple application

变分(Calculus of variations)的概念及运算规则

Live classroom system 05 background management system
随机推荐
The security market has entered a trillion era, and the security B2B online mall platform has been accurately connected to deepen the enterprise development path
没错,请求DNS服务器还可以使用UDP协议
thymeleaf通过样式控制display是否显示
Throwing OutOfMemoryError “Could not allocate JNI Env“
spark参数调整调优
51单片机学习笔记(2)
Idea error failed to determine a suitable driver class
SQL优化的一些建议,希望可以帮到和我一样被SQL折磨的你
awk从入门到入土(21)awk脚本调试
Writing standard of physical quantities and unit symbols
CTS test introduction (how to introduce interface test in interview)
pytorch训练代码编写技巧、DataLoader、爱因斯坦标示
直播课堂系统05-后台管理系统
D2. picking carrots (hard version) (one question per day)
阿里云技术专家邓青琳:云上跨可用区容灾和异地多活最佳实践
D2. Chopping Carrots (Hard Version) (每日一题)
物理量与单位符号的书写标准
[MySQL must know and know] trigger | permission management
Kibana operation es
河源市区推出消防安全主题奶茶 助推夏季火灾防控