Thank you to everyone who participated… It was my first time running a little contest on the blog, and I’m sorry to say it didn’t quite work as I expected! The comments were not supposed to be seen until a day later, but I think I forgot to share that with the other folks here! My bad!
Anyway, there are a variety of answers that we received in the commentary, and remember that I said all three must be correct. That was the catchy part, as even the first few people were almost there. Almost, but not quite! It’s a good learning curve though!
Andrew Dempsey was the first person to actually get all three of them correct! Congratulations! Andrew, pop me an e-mail and we’ll figure out how to get the tokens to you.
To everyone else, I promise to have all the kinks worked out by tomorrow when I post Part II with a much more exciting set of things to think about!
1. Start picking a few and finding similarities again…
Just like with our even/odd example, we look at the constants. The last two bits will ALWAYS be “00″. So a mask of 11111100 would fit.
access-list 16 permit 126.96.36.199 0.0.252.255
2. Our differences here are in the third octet.
There are three bits of difference between the six values there. The 2-bit, 4-bit and 8-bit positions. But 2^3 would yield eight matches.
140 and 142 are missing there. So we have two ways of looking at this.
access-list 17 permit 188.8.131.52 0.0.6.0
access-list 17 permit 184.108.40.206 0.0.2.0
access-list 17 deny 220.127.116.11 0.0.2.0
access-list 17 permit 18.104.22.168 0.0.14.0
Either way, two lines is our best bet!
3. This is a little more complicated than it looks! Namely because there’s a gap in the middle and we aren’t allowed to use any “deny” statements! Go figure!
This exercise is just like creating subnets though. How well did you know your bit boundaries?
So let’s make as many major blocks as we can.
access-list 18 permit 22.214.171.124 0.0.0.63
access-list 18 permit 126.96.36.199 0.0.0.15
access-list 18 permit 188.8.131.52 0.0.0.7
access-list 18 permit 184.108.40.206 0.0.0.3
access-list 18 permit 220.127.116.11 0.0.0.0
access-list 18 permit 18.104.22.168 0.0.0.0
access-list 18 permit 22.214.171.124 0.0.0.3
access-list 18 permit 126.96.36.199 0.0.0.15
access-list 18 permit 188.8.131.52 0.0.0.127
After a while you have to think about all the different bit boundaries. On the bright side, Windows Calculator available to help if necessary!
Back in a day’ish!
10 Responses to “Binary Math – Part I Answers”
Leave a Reply