
As the eight example networks are contiguous, i.e. their address spaces follow numerically with no gaps, we can encapsulate all eight with a single CIDR route by simply changing the subnet mask:
ip route 66.100.50.0 255.255.255.0 194.1.1.1
It's easy to see the benefit of IP Address Aggregation and CIDR when we see the difference in routing table entries between the "before CIDR" and "after CIDR" cases above. This is a very example but it is easy to imagine how CIDR can help in the real world with much larger aggregations.
CIDR brings with it its own simplified form of IP network address notation. Instead of using the network address and subnet mask, CIDR notation uses the network address followed by a slash ("/") and the number of mask bits. For example, taking the CIDR network from the above case:
66.100.50.0 255.255.255.0would become
66.100.50.0/24
We have now made a smartphone optimized version of this calculator available at IP Calc - VLSM
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-36011-2.html
他航他的