Find the subnet masks that create the following number of subnets (two cases each) in the defined class. Also, find the maximum number of hosts on each subnet.

a) 30 and 122 subnets in Class A
b) 30 and 122 subnets in Class B
c) 30 and 122 subnets in Class C

Answer :

a) To create 30 subnets in a Class A network, we need to borrow 5 bits from the host portion of the address. This means that the subnet mask would be 255.248.0.0, which provides a maximum of 2^(16-8-5) = 2,048 hosts per subnet.

To create 122 subnets in a Class A network, we need to borrow 7 bits from the host portion of the address. This means that the subnet mask would be 255.254.0.0, which provides a maximum of 2^(16-8-7) = 512 hosts per subnet.

b) To create 30 subnets in a Class B network, we need to borrow 4 bits from the host portion of the address. This means that the subnet mask would be 255.255.240.0, which provides a maximum of 2^(16-16-4) = 4,096 hosts per subnet.

To create 122 subnets in a Class B network, we need to borrow 6 bits from the host portion of the address. This means that the subnet mask would be 255.255.252.0, which provides a maximum of 2^(16-16-6) = 1,024 hosts per subnet.

c) To create 30 subnets in a Class C network, we need to borrow 3 bits from the host portion of the address. This means that the subnet mask would be 255.255.255.224, which provides a maximum of 2^(8-3) = 32 hosts per subnet.

To create 122 subnets in a Class C network, we need to borrow 4 bits from the host portion of the address. This means that the subnet mask would be 255.255.255.240, which provides a maximum of 2^(8-4) = 16 hosts per subnet.

learn more about host portion here:

https://brainly.com/question/24277772

#SPJ11