当前位置:网站首页>子网划分不会?瑞哥带你深入理解IP地址,手把手教你子网划分!
子网划分不会?瑞哥带你深入理解IP地址,手把手教你子网划分!
2022-06-10 10:29:00 【InfoQ】
1. 什么是IP地址
192.168.1.12. 十进制与二进制的转换


3. IP地址的分类

0.0.0.0255.255.255.255
- 第一个八位组首位恒定为0,那么我们就得到一个区间:
0.0.0.0一直到127.255.255.255。这是A类地址,其中127.0.0.0/8作为本地回环使用,例如你ping 127.0.0.1实际上ping的是本机。所以如果看到一个IP地址,它的首个八位组掉落在1-126区间内,那么这是一个A类地址
- 第一个八位组的最高两位恒定为二进制的10,就得到一个区间:
128.0.0.0-191.255.255.255,这是B类地址。
- 第一个八位组的最高三位恒定为110,就得到一个区间:
192.0.0.0–223.255.255.255,这是C类地址。
- 第一个八位组的最高四位恒定为1110,就得到一个区间:
224.0.0.0–239.255.255.255,这是D类地址,这个类别的地址专门用于组播
- 剩下的是E类地址,这类地址保留作为研究使用。
4. 网络掩码(Network Mask)
- 网络掩码为32bit,与IPv4地址的位数是一样的。
- 网络掩码在二进制的表示上是一堆连续的1,后面接连续的0。
- 网络掩码值为1的bit对应IP地址中的网络位;为0的bit对应IP地址中的主机位,以此来识别一个IP地址中的网络与主机位,如下图:

192.168.1.1255.255.255.0192.168.1.1/24255.255.255.0255.0.0.0/8255.255.0.0/16255.255.255.0/24123.0.0.0/85. IP地址类型
网络地址
192.168.10.0/24192.168.10.1192.168.10.2192.168.10.254192.168.10.0/24广播地址
192.168.10.255/24192.168.10.0/24节点地址
92.168.10.1/24192.168.1.254/24192.168.1.0
6. 为什么要划分子网

172.16.0.0/16255.255.0.0172.16.0.0/16
7. 如何划分子网

172.16.0.0/16255.255.0.0
255.255.0.0255.255.128.0/16/17172.16.0.0/16172.16.0.0/17172.16..128.0/178. 子网划分例子一
192.168.1.0/25
/24
192.168.1.0/25192.168.1.128/25

192.168.1.0/25192.168.1.127192.168.1.128/25192.168.1.255192.168.1.0/24/25
9. 子网划分例子二
192.168.1.64/27
/27192.168.1.64/27边栏推荐
猜你喜欢

Tami dog shares | real estate enterprise mergers and acquisitions are only increasing, so where to find these projects?

Eg2131 test circuit

高考志愿填报,城市、学校与专业怎么选?

2023 Wangdao C language training camp (clue binary tree)

Leetcode 2000. 反转单词前缀

效率工具 : uTools

单片机触发器或非门工作原理以及用途

B站季报图解:营收51亿同比增30% 月均活跃用户近3亿

【先楫HPM6750测评】RT-Thread开发环境搭建和Hello World

仿淘宝商品详情,下拉切换到图片详情,上拉切换到图文简介
随机推荐
EG2131测试电路
[cloud native weapon cilium] what is cilium
Conversion between binary, octal, decimal and hexadecimal (integer plus decimal)
It is very convenient to make a data analysis crosstab with one line of code
2022 underground coal mine electrical examination question bank and online simulation examination
Hardcore spoiler! With 11 topics and 14 celebrities, dragon dragon dragon community entered Intel meetup and announced the agenda!
pytorch安装教程
Xcode8.3.2 自动打包脚本
Unpopular knowledge points in Delphi
Axure add drop-down menu linkage
Dr. jiangxiaowei, a member of hpca Hall of fame, is the chief scientist of Dayu smart core
Market development details of NFT casting trading platform
Question bank and answers of 2022 metal and nonmetal mine hoist operation examination
Detailed steps for installing mysql+django under mac
【高并发】关于乐观锁和悲观锁,蚂蚁金服面试官问了我这几个问题!!
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Deve
MySQL Foundation
[high concurrency] about optimistic lock and pessimistic lock, the interviewer of ant financial asked me these questions!!
[FAQ] summary of common problems and solutions during the use of rest API interface of sports health service
MySQL architecture