Networking - Subnetting - Discussion

Discussion :: Subnetting - Subnetting (Q.No.16)


If a host on a network has the address, what is the subnetwork this host belongs to?


Answer: Option D


A /30, regardless of the class of address, has a 252 in the fourth octet. This means we have a block size of 4 and our subnets are 0, 4, 8, 12, 16, etc. Address 14 is obviously in the 12 subnet.

Chandra said: (Mar 25, 2015)  
Explain clearly.

Knownstranger said: (Sep 3, 2015)  

It is has a CIDR value=30 and also class C subnet in B. For class C CIDR will be 24, so 30-24=6 and the mask will be. (1111 1100 (6 1's is from 30-24=6 so 6 1's)).

So the change in fourth octet and the increment will be 256-252=4. So 0 4 8 12 16.

So the range will be, Goes on.

Now see the question it is so it falls in to subnet.

Manu Ratheesh said: (Nov 22, 2015)  
Given IP address is => NID is 30 bits and HID is last 2 bits.

Subnet mask = (Subnet Mask is obtained by replacing all NID bits by 1 and all HID bits by 0).

In order to get the subnetwork address or network address or subnet id, you just perform the bit wise AND between the subnet mask and the IP address, i.e, ( AND ( = Option (D).

Haseeb said: (Oct 10, 2018)  
If I have /30 pool of ip address in that total 4 IP's are present. Then, 1 IP for wan, 2nd for gateway, 3rd and 4th for use.

It's right or wrong? Please explain this.

Hina Ayoub said: (Aug 26, 2020)  
First to convert network address and given CIDR into binary.

Network address :

CIDR:30 = = 11111111.11111111.11111111.1100.

Now perform bit wise AND operation ( 1+1=1,1+0 or 0+1=0,0+0=0).


So, option (D) is correct.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.