In: Computer Science
Which subnet (network address) does host 25.17.102.51 255.255.248.0 belong to?
Given,
Host IP Address : 25.17.102.51
First octet value in Host IP address is 25 which indicates that host belongs to class A . Class A ranges from (1 - 127) in the first octet.
In class A, Network ID contains 8 bits and Host ID contains 24 bits. For subnetting biits from Host ID are used.
Subnet Mask : 255.255.248.0
In binary representation it is :11111111.11111111.11111 000.00000000
All 1's indicates Network ID part which is 21 bits. It means 13 bits are borrowed from Host ID. Therefor total number of subnets = 213 = 8192 subnets.
Host ID part is all 0's which is 11 bits. Therefore, number of hosts for subnet = 211 = 2048 hosts/ subnet
Total number of usable hosts = 2048 - 2 = 2046 hosts / subnet.
Address: 25.17.102.51 ===> 00011001.00010001.01100
110.00110011
Netmask: 255.255.248.0 = 21 ===> 11111111.11111111.11111
000.00000000
Subnet 0 :
Network: 25.17.96.0/21 ===> 00011001.00010001.01100
000.00000000 (Class A)
Broadcast: 25.17.103.255 ===> 00011001.00010001.01100
111.11111111
HostMin: 25.17.96.1 ===> 00011001.00010001.01100
000.00000001
HostMax: 25.17.103.254 ===> 00011001.00010001.01100
111.11111110
Therefore, Host 25.17.102.51 belongs to first subnet i.e, Subnet0. as it is in the range of (25.17.96.1 - 25.17.103.254 )