A firm is assigned the network part 128.171. It selects a 10-bit subnet part. a)Draw the bits for the four octets of the IP address of the first host on the first subnet. b)Convert this answer into dotted decimal notation. c)Draw the bits for the second host on the third subnet. d)Convert this into dotted decimal notation. e)draw the bits for the last host on the third subnet. f)convert this answer into dotted decimal notation.

To answer these questions, we need to understand how subnetting works and how to calculate the host addresses. Let's go step-by-step:

a) To find the bits for the four octets of the IP address of the first host on the first subnet, we need to break down the network part and the subnet part.

Given: Network part is 128.171 and 10-bit subnet part is selected.

Network part: 128.171 | Subnet part: [10 bits]

We need to allocate the first subnet, which means the subnet part should be all zeros except for the last bit. Therefore, the first host on the first subnet will have all host bits set to zero, except for the least significant bit.

IP address of the first host on the first subnet:
128.171.0.1 (Since the subnet portion is 10 bits, we set all the 10 bits to zero)

b) To convert the answer into dotted decimal notation, we have the IP address already in dotted decimal notation as 128.171.0.1.

c) To find the bits for the second host on the third subnet, we need to increment the subnet number by three and calculate the host address.

The third subnet will have a subnet number of 3 (binary: 00000011). So, we allocate the third subnet in the subnet part.

IP address of the second host on the third subnet:
128.171.0.3 (All bits are the same as the first host on the first subnet, but the last two bits are incremented by 1)

d) To convert the answer into dotted decimal notation, we have the IP address already in dotted decimal notation as 128.171.0.3.

e) To find the bits for the last host on the third subnet, we need to calculate the broadcast address of the third subnet and decrement the last host address by 1.

To calculate the broadcast address, we set all the host bits in the subnet part to 1.

IP address of the last host on the third subnet:
128.171.0.6 (All bits are the same as the second host on the third subnet, but the last bit is incremented by 3)

f) To convert the answer into dotted decimal notation, we have the IP address already in dotted decimal notation as 128.171.0.6.

Therefore, the answers to the questions are:
a) The bits for the four octets are 10000000.10101011.00000000.00000001.
b) The dotted decimal notation is 128.171.0.1.
c) The bits for the four octets are 10000000.10101011.00000000.00000011.
d) The dotted decimal notation is 128.171.0.3.
e) The bits for the four octets are 10000000.10101011.00000000.00000110.
f) The dotted decimal notation is 128.171.0.6.