2 votes 2 votes IP address is 129.57.104.143 subnet mask is 255.255.255.0 what is number of 1's in subnet id ? A_i_$_h asked Jan 16, 2018 A_i_$_h 444 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply gauravkc commented Jan 16, 2018 i edited by gauravkc Jan 16, 2018 reply Follow Share 3 ..? 0 votes 0 votes gauravkc commented Jan 16, 2018 reply Follow Share It's a class B network. so 255.255 are for network ID The next 255 is for subnet ID. The third octet is for determining subnet here. 104 -> 01101000 Number of 1s = 3 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Subnet ID = (IP Address)<AND Operation>(Subnet Mask) Subnet ID = 10000001.00111001.01101000.10001111 <AND> 11111111.11111111.11111111.00000000 Subnet ID= 10000001.00111001.01101000.00000000 So Numbers of 1's=9 ankit_thawal answered Jan 16, 2018 • edited Jan 16, 2018 by ankit_thawal ankit_thawal comment Share Follow See all 3 Comments See all 3 3 Comments reply joshi_nitish commented Jan 16, 2018 reply Follow Share it should be $9$, you have done mistake in writing binary of 57 2 votes 2 votes sourav. commented Jan 17, 2018 i edited by sourav. Jan 17, 2018 reply Follow Share @joshi I think it should be $3$ subnet id is different from network id . subnet id is $01101000$ while network id is 10000001.00111001.01101000.00000000 As it is class B address, 16 bit was expected to be network id but from subnet mask, we come to know that $8$ bit of host are borrowed for subnetting .hence here $3rd$ octet is the subnet part and number of $1$=3 0 votes 0 votes akash.dinkar12 commented Jan 17, 2018 reply Follow Share yes it should be 9.. 0 votes 0 votes Please log in or register to add a comment.