[c-nsp] Calculate wildcard..

Todd, Douglas M. DTODD at PARTNERS.ORG
Sun Jun 22 15:23:12 EDT 2008


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: cisco-nsp-bounces at puck.nether.net
[mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of bill fumerola
Sent: Sunday, June 22, 2008 2:39 AM
To: almog ohayon
Cc: cisco-nsp at puck.nether.net
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  cisco-nsp at puck.nether.net
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.





More information about the cisco-nsp mailing list