什么是“192.168.1.1/21”。意思? [英] What does "192.168.1.1/21" mean?

查看:765
本文介绍了什么是“192.168.1.1/21”。意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当他们在IP地址后写一个斜杠后跟一个数字时,这是什么意思?

When they write a slash followed by a number after an IP address, what does that mean?

推荐答案

之后的部分斜杠是要使用的子网掩码位数。由于使用无类路由,你使用斜杠而不是说A或B类。示例:

The part after the slash is how many subnet mask bits to use. Since the use of classless routing you use slash instead of saying class A or B whatever. Example:

192.168.1.1/24 is 192.168.1.1 255.255.255.0

255.255.255.0 正在使用 24 32位创建子网。

255.255.255.0 is using 24 of the 32 bits to create the subnet.

二进制文件如下:

11111111.11111111.11111111.00000000

so a / 30 看起来像:

so a /30 would look like:

255.255.255.252 or in binary 
11111111.11111111.11111111.11111100

剩余的00是主机; 1是网络。

the remaing 00 is for hosts; the 1's are the network.

这篇关于什么是“192.168.1.1/21”。意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆