How to calculate broadcast address from IP and subnet mask? william 04-January-2008 05:13:28 PMComments stackoverflow.com/questions/777617/calculate-broadcast-address-from-ip-and-subnet-mask Posted by crouse 1. Subtract the given subnetmask from 255.255.255.255. For example given subnet is 255.255.255.252 then you value is 3 2. Convert the IP address to binary 3. Convert the given subnet mask to binary 4. Add step 2 + step 3 in binary 5. Convert step 4 back to (example) IP address format 172.20.102.100 6. In Step 1 you would have got a value like 3. Add 3 to Step 5 so the broadcast address will be 172.20.102.100 +3 So broadcast address (example) will be 172.20.102.103 Posted by clavton |
Posted: 04-January-2008 06:12:54 PM By: clavton 1. Subtract the given subnetmask from 255.255.255.255. For example given subnet is 255.255.255.252 then you value is 3 2. Convert the IP address to binary 3. Convert the given subnet mask to binary 4. Add step 2 + step 3 in binary 5. Convert step 4 back to (example) IP address format 172.20.102.100 6. In Step 1 you would have got a value like 3. Add 3 to Step 5 so the broadcast address will be 172.20.102.100 +3 So broadcast address (example) will be 172.20.102.103 | |
Posted: 29-May-2009 04:33:56 AM By: crouse stackoverflow.com/questions/777617/calculate-broadcast-address-from-ip-and-subnet-mask |