OK.
Wilso wrote:I know that if you've got an IP address of 192.158.10.8 and a mask of 255.255.255.0 then
11000000.10011110.00001010.00001000
11111111.11111111.11111111.00000000
Looking at the subnet mask, you can see that the block of addresses to which your particular host belongs is 192.158.10.0 through 192.158.10.255. You've got 256 addresses, two of which are not usable, so you can have 254 devices. (The base network address, 192.158.10.0, and the broadcast address, 192.158.10.255, can't be assigned to devices.)
If you have several locations, you can break up the block of addresses into smaller subnets. You have more networks, but fewer addresses in each network.
If you needed four smaller networks, you could change your subnet mask to be 255.255.255.192. This divides your subnet into four blocks of 64 addresses (two unusable in each block).
The last octet of the subnet mask changes from 00000000 to 11000000. And the two highest-order bits in the IP address are now used to determine which subnet the address is in:
00xxxxxx (addresses 0-63)
01xxxxxx (addresses 64-127)
10xxxxxx (addresses 127-191)
11xxxxxx (addresses 192-255)
So those two bits that used to be part of the host portion of the address are now used for the network address. it
extends the number of bits that are used to determine the network portion of the address, thus extended network address.
And a block of addresses that would have gone mostly unused is now utilized across four locations, thus conserving IPv4 addresses.