I have checked out this forum, in it's content there is a calculation part
An example using an IP address of 18.104.22.168 used with a network mask of 255.255.255.240 follows:
IP Address: 10011100.10011010.01010001.00111000
Subnet mask: 11111111.11111111.11111111.11110000
What does the Result refers to? I know how they count how many hosts can there be in a subnet but I dun understand why need to get the Result.
In it there's this too
You must also subtract two from the result because one address is reserved for broadcast and network addresses.
what is the broadcast for?
Last question: host=user right?
can anyone explain to me please, I appreciate your help:wink:
Sry for the late reply, erm the function of the subnet mask is to hide the internal network of the company
Wrong - you're thinking of NAT (Network Address Translation).
Maybe you should look at some articles about IP addressing and subnet masks. You'll receive lots of help here (I certainly have) but I doubt if anyone will spoonfeed you. It helps to have a basic understanding and then explain in detail the part(s) that you don't understand and I'm sure that someone will walk you through the bits that don't fall into place.
Hi Fishnbone, the Bitwise "AND" operation is used to determine what subnet a given IP address lives within. In your case, the IP address (or host) is 22.214.171.124. By converting that IP address and the subnet mask into binary numbers and "AND-ing" them together you get the result of 126.96.36.199, which is the actual subnet address. The subnet mask of 255.255.255.240 allows for subnets with 14 usable host addresses. In your case, the range of usable IP addresses is 188.8.131.52 to 184.108.40.206. You cannot use the subnet address of 220.127.116.11 or the broadcast address of 18.104.22.168. The broadcast address is typically used when a host needs to communicate with another host and does not have that hosts IP address / MAC address in its ARP cache. For example, if your host 22.214.171.124 wants to communicate with host 126.96.36.199, it first needs to know what MAC Address to forward that request to so it floods the entire subnet with a broadcast asking who has 188.8.131.52 and what is your MAC address. Once it receives a reply, it caches that information in its ARP cache and begins communication. The switch then forwards the packets to the appropriate switch port based on the MAC address in the header.