Since a subnet mask is used to separate the network id from the host id, any 1 bits indicate the network portion and the 0 bits indicate host portion. As an example, in the subnet mask:
255.255.0.0
This indicates the first two octets are used for the network, and the last two octets (ipV4) are used for host portion of an address.
255.0.0.0
You must extract the first 8 bits of the host address (since the subnet mask has the first 8 bits equal to 1), and set all others to zero. The answer in this case is 86.0.0.0.You must extract the first 8 bits of the host address (since the subnet mask has the first 8 bits equal to 1), and set all others to zero. The answer in this case is 86.0.0.0.You must extract the first 8 bits of the host address (since the subnet mask has the first 8 bits equal to 1), and set all others to zero. The answer in this case is 86.0.0.0.You must extract the first 8 bits of the host address (since the subnet mask has the first 8 bits equal to 1), and set all others to zero. The answer in this case is 86.0.0.0.
Subnet Mask
Subnet mask.
N - network bitsH - host bitsIf you are following the first octet rule, this is a class B network with a subnet mask of 255.255.0.0 (N.N.H.H). We can subnet this by "borrowing" some bits from the host portion. There are 16 network bits and 16 host bits. There is a simple formula to calculate the proper subnet mask.2 to the power of what equals at least 510(2^X)? We have a total of 16 host bits to borrow from. 2^1...2^2...2^3...Etc2^9= 512 - 2 = 510 host addressesWe subtract two because the network and broadcast address are not usable addresses. As we can see we need at least 9 host bits to get 510 hosts per subnet.Take 32 and subtract it from the host bits you need. So 32-9=23. Your subnet mask now has 23 network bits instead of 16.In binary the original subnet mask would be 11111111.11111111.00000000.00000000.In binary the new subnet mask is 11111111.11111111.11111110.00000000.If you convert this into dotted decimal form you get 255.255.254.0.TLDR: 172.30.0.0 - 172.30.1.255255.255.254.0
By default Class C subnet mask is 255.255.255.0 = 24 bits for network id and 8 bits for host id. in Binary 1111 1111. 1111 1111. 1111 1111. 0000 0000 Here all 1s are Network bits and all 0s are host bits. For this subnet mask you can have 256 hosts. And you can use 254 host and asign IP address to them. By Saurabh
The subnet mask itself is an IP Address so it is also 32 bits
32 Bits
151.242.16.49 would be class B in a classful environment with a network mask of 16 bits. An additional 7 bit subnet mask puts the total mask at 23 (i.e.: 255.255.254). Subnet ID would be: 151.242.16.0 Host address range: 151.242.16.1 through 151.242.17.254 Subnet Broadcast address would be: 151.242.17.255
The default mask class B is 255.255.0.0 and this makes 16 bits available for hosts
If you are borrowing 2 bits, then the subnet masks will look like: 255.192.0.0 Class A 255.255.192.0 Class B 255.255.255.192 Class C
The correct term is subnet mask instead of subnet mass. A subnet mask separates an IP address into the host address and the network address. It is a 32-bit number that can mask an IP address.