关于无类域间路由
我想了解 CIDR。还有一些需要练习的好问题,所以请帮助我。
i want to know about the CIDR.and few good questions to practise so please help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我想了解 CIDR。还有一些需要练习的好问题,所以请帮助我。
i want to know about the CIDR.and few good questions to practise so please help me.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
阅读维基百科的 CIDR 页面。
IP 地址可以被认为由两部分组成:网络地址和主机地址。互联网中的路由寻址特定网络,从而将许多主机组合在一起。例如,66.11.0.0/16 寻址 66.11.0.0 和 66.11.255.255 之间的所有主机(/16 表示网络前缀为 16 位长)。
有类寻址将 ip 按八位字节分为 A、B 和 C 类(分别有 1、2 和 3 个八位字节,基本上是 /8、/16 和 /24)。这导致路由表非常大,因为条目只能分组在这三层中。引入 CIDR 是为了减少路由表的大小。本质上,CIDR 规定网络部分可以是可变数量的比特,而不一定是八位字节。这允许像 66.11.128.0/20 这样的路由,而在有类寻址中,网络将有 16 C (/24) 路由。
Read wikipedia's CIDR page.
An IP address can be thought of as having 2 parts, the network address followed by the host address. Routes in the internet address a specific network, and thus group together many hosts. For example, 66.11.0.0/16 addresses all hosts between 66.11.0.0 and 66.11.255.255 (the /16 states that the network prefix is 16 bits long).
Classful addressing divided the ip by octets into classes A, B, and C (with 1, 2, and 3 octets respectively, basically /8, /16, and /24). This resulted in routing tables being very large, as entries could only be grouped in those three tiers. CIDR was introduced in order to reduce the size of the routing tables. In essence, CIDR states that the network part can be a variable number of bits, and not necessarily octets. This allows for routes like 66.11.128.0/20, whereas in classful addressing, the networks would've had 16 C (/24) routes.