When we express an IPv4 network address, we add a prefix length to the network address. The prefix length is the number of bits in the address that gives us the network portion. For example, in 172.16.4.0 /24, the /24 is the prefix length - it tells us that the first 24 bits are the network address. This leaves the remaining 8 bits, the last octet, as the host portion.
You need the subnet mask to tell you which portion is the network id and which portion is the host id.
In a class A network, the first 8 bits specify the network, the remaining 24 bits specify the host.
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.
Network Portion Host Portion
The number of bits used to identify the hosts is fixed by the class of the network. Up to 24 bits can make up the host portion of a Class C address.
The last 3 octets represent the host portion in a class A address.
Yes - the first bits specify the network, the remaining bits, a host within a network. There is no fixed number of bits for the network; this may vary.Yes - the first bits specify the network, the remaining bits, a host within a network. There is no fixed number of bits for the network; this may vary.Yes - the first bits specify the network, the remaining bits, a host within a network. There is no fixed number of bits for the network; this may vary.Yes - the first bits specify the network, the remaining bits, a host within a network. There is no fixed number of bits for the network; this may vary.
The host portion specifies the particular network interface's address. The network portion specifies the network address.
Write the subnet mask in binary. The zeroes at the end represent the host bits, and therefore, the size of the network. If (for example) you have ten zeroes at the end, you rais 210 = 1024. That's the number of addresses in the network. Of these, the first and the last are reserved for special purposes, and can't be used for host addresses, so the complete calculation (in this case) is 210 - 2.Write the subnet mask in binary. The zeroes at the end represent the host bits, and therefore, the size of the network. If (for example) you have ten zeroes at the end, you rais 210 = 1024. That's the number of addresses in the network. Of these, the first and the last are reserved for special purposes, and can't be used for host addresses, so the complete calculation (in this case) is 210 - 2.Write the subnet mask in binary. The zeroes at the end represent the host bits, and therefore, the size of the network. If (for example) you have ten zeroes at the end, you rais 210 = 1024. That's the number of addresses in the network. Of these, the first and the last are reserved for special purposes, and can't be used for host addresses, so the complete calculation (in this case) is 210 - 2.Write the subnet mask in binary. The zeroes at the end represent the host bits, and therefore, the size of the network. If (for example) you have ten zeroes at the end, you rais 210 = 1024. That's the number of addresses in the network. Of these, the first and the last are reserved for special purposes, and can't be used for host addresses, so the complete calculation (in this case) is 210 - 2.
The maximum number of host bits that can be borrowed from a class A address is 22 (technically you could borrow 23 but the resulting network would be useless). A class A address uses 8 bits for its network address and 24 bits for its host addresses. Class A uses a subnet mask of 255.0.0.0 You can only borrow 22 bits (instead of 24) because a valid network requires 4 addresses: A network address, two host addresses and a broadcast address. These networks would result in 30 bits used for the network address and 2 bits used for the host addresses. These networks use a subnet mask of 255.255.255.252
The network part of an IP address indicates the network to which the host belongs. The host bits or host part of an IP address points to the actual device that has an IP address on the network. It can be a computer, printer, router or any device with an IP address that has the same network part.
A class A network has more IP addresses - you can connect more hosts on it.A class C network has 256 IP addresses (of which you can use 254), a class B network about 65,000, a class A network about 17 million.More specifically, a Class A network can have 16,777,214 usable host addresses per network whereas a Class B network can have 65,6534 usable host addresses per network.Another advantage is the ridiculous amounts of subnetting you can do. For example, in a Class C network, you can't borrow the same number of bits as you can with a Class A because you only have the last octet to work with for the host portion. With a Class A network, the last three octets are the entire host portion, so you have 24 bits to work with for subnetting (technically 23 since you can't subnet down through all available bits and have no bits left for hosts =p). Due to the amount of subnets you can have and the 16+ million hosts you can potentially have on the same network, Class A networks are reserved for super big applications (ISPs and gigantic companies).
class A