“192.168.1.1/21"是什么意思?意思是? [英] What does "192.168.1.1/21" mean?
本文介绍了“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
正在使用 32 位
的 24
来创建子网.
255.255.255.0
is using 24
of the 32 bits
to create the subnet.
在二进制中它看起来像这样:
in binary it looks like this:
11111111.11111111.11111111.00000000
所以 /30
看起来像:
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屋!
查看全文