Nicolas, A good way to do that is to covert the particular subnet mask oct. Into binary then inverse the bits, make the. 1, zero and make the zero, 1.
For example if the mask is 255.255.255.240 the first, second and the third Oct. Will be 0.0.0 now convert the last Oct into binary : 128. 64. 32. 16. 8. 4. 2. 1 1. 1. 1. 1. 0. 0. 0. 0 And now somply convert the one to zero and zero to one 0. 0. 0. 0. 1. 1. 1. 1 Convert the last to decimal It will be 15. The complete wildcard mask will be 0.0.0.15. HTH Amer Sent from my BlackBerry® smartphone provided by mobily -----Original Message----- From: [email protected] Sender: [email protected] Date: Thu, 25 Nov 2010 12:00:03 To: <[email protected]> Reply-To: [email protected] Subject: CCIE_RS Digest, Vol 58, Issue 98 Send CCIE_RS mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://onlinestudylist.com/mailman/listinfo/ccie_rs or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of CCIE_RS digest..." Today's Topics: 1. Wildcard Mask (Nicolas MICHEL) 2. Re: Wildcard Mask (Aung Phyo Lwin) 3. Re: Wildcard Mask (Nicolas MICHEL) 4. Re: Wildcard Mask (Aung Phyo Lwin) ---------------------------------------------------------------------- Message: 1 Date: Thu, 25 Nov 2010 10:55:45 +0100 From: Nicolas MICHEL <[email protected]> To: OSL Routing and Switching <[email protected]> Subject: [OSL | CCIE_RS] Wildcard Mask Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" 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) -------------- next part -------------- An HTML attachment was scrubbed... URL: </archives/ccie_rs/attachments/20101125/f2fe95f9/attachment-0001.html> ------------------------------ Message: 2 Date: Thu, 25 Nov 2010 03:26:44 -0800 (PST) From: Aung Phyo Lwin <[email protected]> To: Nicolas MICHEL <[email protected]>, OSL Routing and Switching <[email protected]> Subject: Re: [OSL | CCIE_RS] Wildcard Mask Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" 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) -------------- next part -------------- An HTML attachment was scrubbed... URL: </archives/ccie_rs/attachments/20101125/23899fe6/attachment-0001.html> ------------------------------ Message: 3 Date: Thu, 25 Nov 2010 12:36:11 +0100 From: Nicolas MICHEL <[email protected]> To: Aung Phyo Lwin <[email protected]> Cc: OSL Routing and Switching <[email protected]> Subject: Re: [OSL | CCIE_RS] Wildcard Mask Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" If you want to match only 3 and 5 then it would be 192.168.3.0 0.0.6.255 right ? You would also match 192.168.1.1 with the wildcard mask that you provide right ? Can someome confirm this and share their experience about it ? Much appreciated Aung. Nic 2010/11/25 Aung Phyo Lwin <[email protected]> > > 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) > > > > > > -- Nicolas MICHEL Ingenieur R?seaux et Securit? (CCNA/CCNP) -------------- next part -------------- An HTML attachment was scrubbed... URL: </archives/ccie_rs/attachments/20101125/ab39ff98/attachment-0001.html> ------------------------------ Message: 4 Date: Thu, 25 Nov 2010 04:00:35 -0800 (PST) From: Aung Phyo Lwin <[email protected]> To: Nicolas MICHEL <[email protected]> Cc: OSL Routing and Switching <[email protected]> Subject: Re: [OSL | CCIE_RS] Wildcard Mask Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" Yes. If the address has 192.168.1.1, it will also match. If 192.168.7.1 in the list, it will match too. It depend on the AND result. Even you add 192.168.3.0 , after you key in, the access-list will still show as 192.168.1.0 for this wildcard Regards, Phyo ________________________________ From: Nicolas MICHEL <[email protected]> To: Aung Phyo Lwin <[email protected]> Cc: OSL Routing and Switching <[email protected]> Sent: Thursday, November 25, 2010 19:36:11 Subject: Re: [OSL | CCIE_RS] Wildcard Mask If you want to match only 3 and 5 then it would be 192.168.3.0 0.0.6.255 right ? You would also match 192.168.1.1 with the wildcard mask that you provide right ? Can someome confirm this and share their experience about it ? Much appreciated Aung. Nic 2010/11/25 Aung Phyo Lwin <[email protected]> >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) > > > > > > -- Nicolas MICHEL Ingenieur R?seaux et Securit? (CCNA/CCNP) -------------- next part -------------- An HTML attachment was scrubbed... URL: </archives/ccie_rs/attachments/20101125/e23ccc15/attachment-0001.html> End of CCIE_RS Digest, Vol 58, Issue 98 *************************************** _______________________________________________ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com
