Hi Guys,
I'm just curious: What is the most efficient way to perform route summarization? Any tricks or shortcuts?
The method explained in CBT Nuggets is to:
1) Line up the similar network ids.
2) Find the first octet that is different (left to right).
3) Write out that octet's values in binary for the smallest and largest values.
4) Count how many bits are unchanged. Add that value to the number of other unchanged bits in the left octets.
5) Use that as your subnet mask (use necessary discretion to determine if the subnet includes too many unused networks)
So for example, lets say I wanted to create a summary route for the following networks:
192.168.1.0 /24
192.168.2.0 /24
192.168.3.0 /24
192.168.4.0 /24
192.168.5.0 /24
192.168.6.0 /24
192.168.7.0 /24
192.168.8.0 /24
192.168.9.0 /24
192.168.10.0 /24
192.168.11.0 /24
192.168.12.0 /24
192.168.13.0 /24
192.168.14.0 /24
192.168.15.0 /24
Step 2: I notice that the 3rd octet changes.
Step 3: I write out the octet values for the smallest and largest values.
192.168.00000000.0 /24
192.168.00001111.0 /24
Step 4: Count how many bits remain unchanged.
8 in the first octet
8 in the second octet
4 in the third octet
8 + 8 + 4 = 20
Step 5: Route summary is 192.168.0.0 /20
This works. But the problem is, it's kinda slow. Is there a faster way to do this?
Thanks,
M
