|
发表于 2013-4-23 10:19:18
|
显示全部楼层
本帖最后由 lin0131 于 2013-4-23 14:24 编辑
lin0131 发表于 2013-4-22 16:41
如果说没有差别呢
本来就是一个被包含的概念,如果在路由汇聚的时候发生超网,那就是CIDR也可以说是路由汇聚,没发生超网,那只能说是路由汇聚。
1. 192.168.7.64/27 192.168.7.96/27 汇聚为
192.168.7.64/26 虽然不是24位的掩码,但是它还是在C类主网下,这是路由汇聚
2. 192.168.7.0/26 192.168.7.64/26 192.168.7.128/26 192.168.7.192/26 汇聚为
192.168.7.0/24 汇聚后还是一个C类主网,所以还是路由汇聚
3. 192.168.4.0/24 192.168.5.0/24 192.168.6.0/24 192.168.7.0/24 汇聚为
192.168.4.0/22 前缀为192.168 本应是不小于/24的掩码,但是汇聚后成了/22的掩码,发生了超网,这种情况下就可以称之为CIDR,同样是路由汇聚,只是它的特殊情况而已。
以下是思科官网的解释:
The difference between CIDR and route summarization is that route summarization is generally done within, or up to, a classful boundary, whereas CIDR combines several classful networks.
In this example, the eight separate 192.168.x.0 Class C networks that have the prefix /24 are combined into a single summarized block of 192.168.8.0/21. (At some other point in the network, this summarized block may be further combined into 192.16.0.0/16, and so on.)
Consider another example. A company that uses four Class B networks has the IP addresses 172.16.0.0/16 for Division A, 172.17.0.0/16 for Division B, 172.18.0.0/16 for Division C, and 172.19.0.0/16 for Division D. They can all be summarized as a single block: 172.16.0.0/14. This one entry represents the whole block of four Class B networks. This process is CIDR; the summarization goes beyond the Class B boundaries.
|
|