x.x.x.0 in a /24 network is the Network address it should NEVER be assigned to a host.
x.x.x.255 in a /24 network is the broadcast address, it should never be assigned to a host...
/24 means a 24 bit subnet mask or 255.255.255.0
/24 = 255.255.255.0 = 11111111.11111111.11111111.00000000
You would need to make the last portion of the IP address 255 ( eight 1's..) for it to be the broadcast..
so if the network is 192.168.1.0 /24 the broadcast address should be 192.168.1.255
if the network is 172.16.14.0 /24 the broadcast address would be 172.16.14.255
/16 = 255.255.0.0 = 11111111.11111111.00000000.00000000
For this one you need to replace the last 2 octets with 255..
if the network address is 172.16.0.0 /16 the broadcast address would be 172.16.255.255
do you see the patern here ? take the subnet mask replace the 0's with 1's and you have the broadcast address for the network..
/22 = 255.255.224.0 = 11111111.11111111.11111100.00000000
192.168.4.0 /22 boradcast address = 192.168.7.255 simple binary math..
do a bit of reading on subnetting and this should become really clear.. my explaination ermmm may not be so clear to you as it appears to me