A firm is assigned the network part 128.171. It selects an 10-bit subnet part. a) Draw the bits for the four octets of the IP address of the first host on the first subnet.

a) Draw the bits for the four octets of the IP address of the first host on the first subnet.

10000000.10101011.00000000.00000001

b) Convert this answer into dotted decimal notation.
128.171.0.1

c) Draw the bits for the second host on the third subnet.
10000000.10101011.00000000.10000010

d) Convert this into dotted decimal notation.
128.171.0.130

e) Draw the bits for the last host on the third subnet.
10000000.10101011.00000000.10111110

f) Convert this answer into dotted decimal notation.
128.171.0.190

I am not an expert on networking, but I will try to give an answer to the best of my knowledge.

Since the network part is 128.171, it is a class B subnet. Using 10 bits for the subnet means that it will use a 10 bit subnet-mask, namely 255.255.255.192, or in bits,
11111111.11111111.11111111.11000000.

Since subnets with all zeroes (address of network) and all ones (broadcast address) are not allowed, the first subnet begins with
128.171.0.64
or
10000000.10101011.00000000.01------.
Thus there can be 210 = 1022 possible subnets, and each subnet can have 26-2 = 62 hosts.
The first host on the first subnet is therefore:
10000000.10101011.00000000.01000001.
or
128.171.0.65

Oops:

"Thus there can be 210-2 = 1022 possible subnets...."

To find the IP address of the first host on the first subnet, you need to combine the network part and the subnet part. Here's how you can do it step-by-step:

1. Start with the given network part: 128.171

2. Convert the last octet (171) into binary. 171 in binary is 10101011.

3. Since you have a 10-bit subnet part, you will use the first 10 bits of the subnet for the subnets. This means the remaining 6 bits (32 total bits - 26 network bits) will be used for the host addresses.

4. Combine the network part (128.171) and the subnet part (10 bits) to get the initial IP address for the first subnet: 128.171.00000000.

5. Convert the subnet part (10 bits) into decimal. In this case, the decimal equivalent of the subnet part is 0. Therefore, the first host on the first subnet will have an IP address of 128.171.0.1.

To summarize:
Network part: 128.171
Subnet part (binary): 0000000000
Subnet part (decimal): 0
First host IP address: 128.171.0.1

Is Programming your School Subject?