当前位置:网站首页>关于网段CIDR的笔记
关于网段CIDR的笔记
2022-07-23 19:08:00 【人形bug制造机9527】

今天给新服务器配置设置redis的外网访问仅限公司ip地址访问
CIDR/之后的数字表示的是匹配前面ip地址的长度
比如我的ip地址是
112.5.72.133
那么
CIDR112.5.72.133/16表示的就是,只允许ip地址的前16位和样例中写的地址112.5.72.133一样的ip进行访问;
当然这里的位数指的是二进制位数
每段用8个二进制数字表示
举例
CRID是
47.146.27.135/13
转换成二进制就是
…00101111.10010010.00011011.10000111
取13位00101111.10010
也就是要求网址的前13个二进制数字相同即可匹配
这个CRID允许的网段就是00101111.10010000.00000000.00000000
到00101111.10010111.11111111.11111111
转换成十进制47.144.0.0 到 47.151.255.255
边栏推荐
- New product listing | A-share floor derivatives market point
- Mekol Studio - Little Bear Development Notes 2
- 能量原理与变分法笔记19:最小余能原理+可能功原理
- scanf()和getchar()的用法讨论
- solidworkd学习笔记:草图几何关系及编辑
- Leetcode 152. product maximum subarray (brute force cracking can actually pass!)
- [development experience] development project trample pit collection [continuous update]
- Energy principle and variational method note 16: solution of virtual displacement principle
- [interview: concurrent Article 22 multithreading: reentrantlock]
- 2022山东养老展,中国国际养老服务业展览会,济南老龄产业展
猜你喜欢

21.mixin混入详解

Attack and defense world web question Fakebook

Win11小组件怎么添加待办事项?Win11添加待办事项小组件的方法

Leetcode 219. duplicate Element II exists (yes, resolved)

task03笔记2

Principe de l'énergie et méthode variationnelle note 19: principe de l'énergie résiduelle minimale + principe du travail possible
![[interview: concurrent Article 22 multithreading: reentrantlock]](/img/a7/19f947faba18e58b768588af414aeb.png)
[interview: concurrent Article 22 multithreading: reentrantlock]

MySQL data recovery - using the data directory

能量原理与变分法笔记14:总结+问题的求解
![[development experience] development project trample pit collection [continuous update]](/img/02/7bea3bf09e9a27b6ab74399639f197.png)
[development experience] development project trample pit collection [continuous update]
随机推荐
[激光器原理与应用-8]: 激光器电路的电磁兼容性EMC设计
Energy principle and variational method note 17: generalized variational principle (identification factor method)
如何给电脑系统重置系统?方法其实很简单
Odrive application 6 encoder
【AR学习】-- 二、 环境搭建
R language filters the data columns specified in dataframe, and R language excludes (deletes) the specified data columns (variables) in dataframe
安装Win11找不到固态硬盘如何解决?
Lecture 9 of project practice -- operation import and export tool
Introduction to web security SSH testing and defense
MySQL master-slave replication
AtCoder——Subtree K-th Max
13. Roman to Integer罗马数字转整数
QT with OpenGL (frame cache)
BM14 链表的奇偶重排
Uncover the working principle of solid state disk
Baidu map data visualization
TASK03|回归
梅科尔工作室-华为14天鸿蒙设备开发实战笔记六
2022上半年中国十大收缩行业
Home NAS server (3) | SSD cache acceleration mechanical hard disk