This might help in addition to what Bill sent: http://blog.internetworkexpert.com/2007/12/26/q-how-do-i-compute-complex-wildcar d-masks-for-access-lists/
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bill fumerola Sent: Sunday, June 22, 2008 2:39 AM To: almog ohayon Cc: [email protected] Subject: Re: [c-nsp] Calculate wildcard.. On Sat, Jun 21, 2008 at 07:41:18PM +0300, almog ohayon wrote: > Q : when i have couple of address that i need to know their common > wildcard, i XOR them and i get excellent result but > how can i know that i'm not overlapping any other addresses ?? a wildcard will match 2^x addresses where x= the number of bits set. examples: 0.0.0.1 = 0 0 0 1 = 2 addrs 10.0.0.0 10.0.0.1 = 10.0.0.0 0.0.0.1 0.0.0.3 = 0 0 0 11 = 4 addrs 10.0.0.0 10.0.0.1 10.0.0.2 10.0.0.3 = 10.0.0.0 0.0.0.3 0.0.0.6 = 0 0 0 110 = 4 addrs 10.0.0.0 10.0.0.2 10.0.0.4 10.0.0.6 = 10.0.0.0 0.0.0.6 0.1.0.1 = 0 1 0 1 = 4 addrs 10.0.0.0 10.1.0.0 10.0.0.1 10.1.0.1 = 10.0.0.0 0.1.0.1 -- bill _______________________________________________ cisco-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/cisco-nsp archive at http://puck.nether.net/pipermail/cisco-nsp/ The information transmitted in this electronic communication is intended only for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this information in error, please contact the Compliance HelpLine at 800-856-1983 and properly dispose of this information. _______________________________________________ cisco-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/cisco-nsp archive at http://puck.nether.net/pipermail/cisco-nsp/
