### Discussion :: Subnetting - Subnetting (Q.No.4)

Nikhil said: (Feb 8, 2014) | |

255.255.255.224 i.e Binary of 255 is 11111111 and Binary number of 224 is 11100000. Here 1 Represent On bit and 0 represents Off bit. Then how to calculate Host Id. See Here, Formula Host Id = 2^off bit - 2 i.e 2^5 = 32 - 2 = 30. And Net Id is = 2^on bit = 2^3 = 8. That's why Answer is 30. |

Rahul said: (Mar 11, 2015) | |

Simple. = 256-224 = 32. And here first add is network add and last one is broadcast so we are supposed to subtract these two add from 32. So max host we will connect = 30. |

Pratik said: (Jul 8, 2015) | |

Thanks @Nikhil but can you explain that binary conversions till 255? |

Narsing said: (Jun 16, 2016) | |

Decimal to binary conversion: 255.255.255.255 128 64 32 16 8 4 2 1 2 to the power of 7 = 128. 2 to the power of 6 = 64 . 1 1 1 1 1 1 1 1 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255. 11111111.11111111.11111111.11111111 255 255 255 255 Eg: 192.168.10.10 192-- 128 64 32 16 8 4 2 1 ------> 1 1 0 0 0 0 0 0 168 --> 1 0 1 0 1 0 0 0 10 ---> 0 0 0 0 1 0 1 0 10 ---> 0 0 0 0 1 0 1 0 That means where is the 1 is there will add those numbes, so will get decimal number. |

#### Post your comments here:

Name *:

Email : (optional)

» Your comments will be displayed only after manual approval.