#### Have a question or want to start a discussion? Post it! No Registration Necessary. Now with pictures!

**posted on**

- Ira Gladnick

June 2, 2008, 3:43 am

Would anyone happen to have a pointer to a proof of how the "magic

number" algorithm for finding a subnet number's "interesting" octet

decimal value works? I.e., WHY does it work, mathematically speaking?

Algorithm is: subtract the mask's "interesting" (non-255) decimal

number from 256, which yields the "magic number". Then find the

largest multiple of the "magic number" that is less than the

"interesting" decimal value in question--this is the "interesting"

decimal number for the subnet address.

number" algorithm for finding a subnet number's "interesting" octet

decimal value works? I.e., WHY does it work, mathematically speaking?

Algorithm is: subtract the mask's "interesting" (non-255) decimal

number from 256, which yields the "magic number". Then find the

largest multiple of the "magic number" that is less than the

"interesting" decimal value in question--this is the "interesting"

decimal number for the subnet address.

#### Site Timeline

- » Making The Pirate Bay obsolete
- — Next thread in » Cisco Certification

- » Need technical reviewers for Sybex books
- — Previous thread in » Cisco Certification

- » Digital Printing Malaysia | Printing Company Malaysia| Dot2Dot
- — Newest thread in » Cisco Certification

- » You probably don't know the answer but what allows WiFi scanning anyway?
- — The site's Newest Thread. Posted in » Wireless Networking