What is the broadcast address for 145.50.23.1/22?

Classification

145.50.23.1/22 is a “Class A” IPv4 address. It is “classless” address as it does not use the default subnet for “Class A” addresses (255.0.0.0 or /8).

Host Bits

Host bits = (32 – 22) = 10
210 = 1024 addresses (minus 2 for the network id and broadcast address)
Screenshot_2018-10-28_08-49-15.png

Network Bits

Network bits = 22
Each subnet contains 8 bits, so 22 = 8 + 8 + 6 + 0 = 255.255.x.0
x = (255 – 2 left bits) = (255 – (20+ 21)) = 255 – 3 = 252
/22 = 255.255.252.0

Broadcast Address

Here is the network mask in binary:
Screenshot_2018-10-28_08-56-42.png
Lets take the 3r octet:
11111100
Taken from the right to the left the highest significant bit is 22 (3rd bit from the right).
Screenshot_2018-10-28_08-49-32
This means each subnet is a multiple of four. Here are the network ranges:

145.50.0.0 - 145.50.3.255
145.50.4.0 - 145.50.7.255
145.50.8.0 - 145.50.15.255
145.50.16.0 - 145.50.19.255
145.50.20.0 - 145.50.23.255
145.50.24.0 - 145.50.27.255

As you can see the broadcast for this address is 145.50.23.255

Leave a comment

Your email address will not be published. Required fields are marked *