To determine the address range, follow these steps:
1) Take the subnet mask (here 255.255.255.0) and convert it to a binary file:
11111111.11111111.11111111.00000000 ( 8 + 8 + 8 + 0 = 24 -> So you can write your ip adresse like this : 192.168.1.x/24 because you are in a /24 network)
2) You have 256-2 = 254 available IP addresses for the host on the / 24 network (one for the network address (the first in your range) and the other for the broadcast address (the last in your range)).
3) To get your range, just get your network address (the first ip address according to your subnet mask) and get the following 255 IP addresses, and you will have your own range.
Network address:
In binary, the last octet must be null:
xxxxxxxx.xxxxxxxx.xxxxxxxx.00000000
Your broadcast address:
In binary, the last octet must be 1:
xxxxxxxx.xxxxxxxx.xxxxxxxx.11111111
Here your IP address is 192.168.1.5. In binary expression we get:
11000000.10101000.00000000.00000101
I hope you enjoyed reading bad English. Tell me if you have a question, Loris
source share