I need help understanding how to determine the ranges for each subnet for a class B IP address. I followed a particular method from a textbook which has shown example for a class C IP address.
I have a public IP address of 192.168.89.50/20 and want 4 subnets. The subnet mask is 255.255.240.0/20. So the network ID is 192.168.80.0/20. So far I determined the number of bits needed to be borrowed from the host portion to create 4 subnets, I used the formula 2^n = Y ( Y represents the number of subnets and n represents the number of bits to borrow) so 2^2=4. Now the modified subnet mask is 255.255.254.0/22. Im not sure if i would need to modify my network ID after having borrowed 2 bits from the host portion. but for now I will keep it at 192.168.80.0
I then needed to determine the network ID for each of the 4 subnets, and to do that I used what is called the magic number. I would subtract 256 - 254 ( the unusual octet from the modified subnet mask) = 2. I would use this number to add to the base Network ID to create the 2nd subnet network ID and so forth.
so..
Subnet 1 Network ID: 192.168.80.0
Subnet 2 Network ID: 192.168.80.2 +2
Subnet 3 Network ID: 192.168.80.4 +2
Subnet 4 Network ID: 192.168.80.6 +2
(I am not sure If calculating the network ID for each of the subnets were done correctly).
From here I am trying to determine the IP address range for each of the subnets above. I used the formula 2^h-2 = Z ( h represents the number oh host bits remaining) to determine the number of hosts available for each subnet. I have 10 bits remaining in the host portion since I borrowed 2 for the Network portion. This leaves me with 2 bits from octet 3 and 8 from octet 4. so 2^10-2 = 1022. Therefore the number of hosts available for each subnet is 1022. But how do I use this number to create the IP address ranges for each of the 4 subnets?
I have a public IP address of 192.168.89.50/20 and want 4 subnets. The subnet mask is 255.255.240.0/20. So the network ID is 192.168.80.0/20. So far I determined the number of bits needed to be borrowed from the host portion to create 4 subnets, I used the formula 2^n = Y ( Y represents the number of subnets and n represents the number of bits to borrow) so 2^2=4. Now the modified subnet mask is 255.255.254.0/22. Im not sure if i would need to modify my network ID after having borrowed 2 bits from the host portion. but for now I will keep it at 192.168.80.0
I then needed to determine the network ID for each of the 4 subnets, and to do that I used what is called the magic number. I would subtract 256 - 254 ( the unusual octet from the modified subnet mask) = 2. I would use this number to add to the base Network ID to create the 2nd subnet network ID and so forth.
so..
Subnet 1 Network ID: 192.168.80.0
Subnet 2 Network ID: 192.168.80.2 +2
Subnet 3 Network ID: 192.168.80.4 +2
Subnet 4 Network ID: 192.168.80.6 +2
(I am not sure If calculating the network ID for each of the subnets were done correctly).
From here I am trying to determine the IP address range for each of the subnets above. I used the formula 2^h-2 = Z ( h represents the number oh host bits remaining) to determine the number of hosts available for each subnet. I have 10 bits remaining in the host portion since I borrowed 2 for the Network portion. This leaves me with 2 bits from octet 3 and 8 from octet 4. so 2^10-2 = 1022. Therefore the number of hosts available for each subnet is 1022. But how do I use this number to create the IP address ranges for each of the 4 subnets?