I am not sure if this is the right place to make this question but I thought this is one of the most appropriate SE's site to make a question on networking. Please move it to other more appropriate sites. Thanks.
So suppose I have a block of IPv4 addresses and one of the hosts address is 182.44.82.16/26. Is it possible for me to find the first and last address of this block of address?
I am thinking like:
182.44.82.16
is 182.44.82.(0001 0000)
where the (0001 0000)
is the binary for 16.
Since the mask is /26
, I thought I could do this:
IP: 182.44.82.(0001 0000)
Mask: 182.44.82.(1111 1000)
And then this means I left with only the last 3 bits for the IP addresses, which makes the first address going to be 182.44.82.16 and the last address 182.44.82.23. But this doesn't look quite right. How can I calculate the first and last addresses of this block of addresses?