02-23-2005 02:34 AM - edited 03-02-2019 09:49 PM
What is the correct way to calculate the highest ip address? is it simply a case of adding up the octects or is there some sort of hierachy with the octets?
02-23-2005 03:45 AM
Don't add them up, just put them in numerical order according to normal conventions. The first octet is most significant, so compare those; if the first octet is the same, then compare the second, etc.
Kevin Dorrell
Luxembourg
02-24-2005 01:40 AM
Thanks, thats cleared things up a bit, just one thing, i'm guessing in this case the class is not important
02-24-2005 01:50 AM
That's right, the class is not important, nor is the mask. It is just a straight 32-bit number, expressed as 4 octets.
As a SID, it is not really an IP address any more. It is just a "random" number. OK, they derive that random number from the IP addresses because that way they have a fighting chance of being unique. But that's the only connection.
Kevin Dorrell
Luxembourg
02-24-2005 01:50 AM
Yes Andrew you are right class is not important in this case just need to compare octats to octats but if the situation is somewhat like 10.x.x.x and another 192.168.x.x it answers automatically.
Regards,
Ankur
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide