There are 16 bits available; it is up to you how many of those bits you reserve for the subnet, and how many for the individual hosts within each subnet.
2 subnets and 128 host
255.255.252.0
255.255.252.0
254
that gives you 16 subnets with 14 usable IPs for hosts that is because one is for subnet and one for broadcas in that subnet for example: 192.168.1.0/28 - subnet number 192.168.1.15 -broadcast number usable IPs for hosts - IPs between them that is 14
Given a Class C network: 200.1.1.0 We want 5 subnets, each with 30 hosts on it. How many bits to borrow ? How many bits to leave? What is the subnet mask? ( in dot notation and in CIDR notation)
If you need to divide it up into the maximum number of subnets containing at least 500 hosts each, you should use a /23 subnet mask. This will provide you with 128 networks of 510 hosts each. If you used a /24 mask, you would be limited to 254 hosts. Similarly, a /22 mask would be wasteful, allowing you 1022 hosts.
Subnet Mask provides Network & Class Identificationfor an IP Address.
A, B and D are subnets. C is not. IP addresses A and D are both Class B subnets. Class B addresses normally have a subnet mask of 255.255.0.0. The first two bits of a class B network are always 10 which leaves 14 bits for the network prefix, thus allowing up to 16,384 separate Class B networks (including 139.233.0.0 and 190.233.0.0). The last 16 bits denote the host number thus there can be up to 65,536 hosts per network. By specifying a subnet mask of 255.255.255.0 the network can be divided into as many as 256 separate subnets each with 256 hosts. IP address B is a Class A subnet. Class A addresses normally have a subnet mask of 255.0.0.0. The first bit of a class A network is always 0, which leaves 7 bits for the network prefix, thus allowing up to 127 Class A networks (including 10.0.0.0). The last 24 bits denote the host number thus there can be up to 16,777,216 hosts per network. By specifying a subnet mask of 255.255.255.0, the hosts can be divided into as many as 65,536 separate subnets each with up to 256 hosts. IP address C is a Class C address, but is not a subnet. Class C addresses normally have a subnet mask of 255.255.255.0. The first three bits in a Class C network are always 110, leaving 21 bits for the network prefix, thus allowing up to 2,097,152 Class C networks (including 192.168.0.0). The last 8 bits denote the host number thus there can be up 256 hosts per network. To make a subnet out of a Class C address you must have a subnet mask of 255.255.255.X, where X may be 192, 224, 240, 248 or 252. That is, 2, 3, 4, 5 or 6 bits to denote the subnet and the remaining bits to denote the hosts. Thus a subnet mask of 255.255.255.192 would allow as many as 4 subnets each with up to 64 hosts, while a subnet mask of 255.255.255.240 would allow as many as 16 subnets each with up to 16 hosts. It should be noted that the maximum number of hosts is actually 2 less than the figures shown above. This is because the host address with all 0 bits is reserved for network address while the host address with all 1 bits is reserved for broadcasting.
255.255.252.0 is true
A class A would give you the most flexibility in terms of subnets and hosts per subnet. You could use up to 23 bits of information for subnets.
You can keep it as a single network, or divide it into separate subnet (sub-networks), depending on your needs.You can keep it as a single network, or divide it into separate subnet (sub-networks), depending on your needs.You can keep it as a single network, or divide it into separate subnet (sub-networks), depending on your needs.You can keep it as a single network, or divide it into separate subnet (sub-networks), depending on your needs.
Variable Length Subnet Mask (VLSM) is the new and efficient way to create Networks as compared to the old Fixed Length subnet mask. In Fixed length subnet masks networks there are 2 categories - the basic is A,B & C subnets and the second is fixed subnets that are created from these basic subnets. But in either of the methods there is lots of IP wastage, as different sections of the network will vary in the number of hosts connected to that network. Wastage is more in the first classic way of networks. It is minimized with the help of subnetting, but the problem still exists as some network segments may contain very less hosts but has to use the same subnet masks as the entire network and thus waste IPs. While when we use VLSM different network segments may contain different subnets as per there requirement and while even doing so they will still be able to interact with each other using routers. The 2 main benefits of VLSM are - 1) Because of different subnet masks the broadcast from one subnet is not transmitted to other subnets. Thus saves lots of bandwidth. 2) It saves lots of IP,which is wasted instead. Hope This helps Happy Networking -- By MyNarutoAnime