For me, I'm using binary method AND/OR between address list. AND is address to 
match and OR is wildcard. But sometime, I'm still having problem and still not 
fast enough to calculate.
General wildcard are ok. Just minus from 255.  255.255.255.240 mask is 255-240 
= 
15 , 0.0.0.15
For specific wildcard, I calculate like this.

192.168.2.1
192.168.3.1
192.168.4.1
192.168.5.1 
I want to match 3rd Octet, only .3 and .5

3rd Octet
2/  00000010
3/  00000011
4/  00000100
5/  00000101

then 

3/    00000011
5/    00000101
AND 00000001 - 1 
OR   00000110 - 6 

So the address is 192.168.1.0
wildcard is 0.0.6.0

For .2 and .4,  192.168.0.0 and wildcard 0.0.6.0

Pls share me if you guys have other method to calculate faster. Thanks.

Regards,
Phyo




________________________________
From: Nicolas MICHEL <[email protected]>
To: OSL Routing and Switching <[email protected]>
Sent: Thursday, November 25, 2010 17:55:45
Subject: [OSL | CCIE_RS] Wildcard Mask

Hey guys,

I'm in trouble with Wildcard mask. I know that 0 is a match and 1 is a dont 
care 
but I have trouble to calculate that since I did calculate all my Masks using a 
decimal technique.

If someone could clarify with exemples etc etc I would be so thankfull !

-- 
Nicolas MICHEL
Ingenieur Réseaux et Securité (CCNA/CCNP)

_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Reply via email to