How does subnet mask works?
(I'm talking about IPv4. And this is not a school exercise... I take this example because I need to understand the point)
Hello.
(
Sorry for my poor english. If something in the following example is not clear what I want to understand is: HOW TO TRANSLATE AN ADDRESS WITH AN EQUIVALENT ONE (and related broadcast and network address) AFTER APPLYING SUBNET MASK
)
What I already know is: subnet mask is build of how many 1s as the network address is (example: 16 bit for class B) + as many 1s as many the bits of subnet identifier are
In particular (this is a example): 150.1.0.0 with subnet mask = 255.255.240.0 (240 = 1111000) then 14 subnets (16 subnets but 0000 and 1111 are reserved for network address and broadcast address) and 4094 host (2^12 bit of remainder = 4096 - 2 bits for network and broadcast address).
And up there... all fine..
The example follow con this information... but I can't understand it.. (already tried IP address AND subnet mask (logical operation) but I can't get to the point... ):
Subnets: from 150.1.16.0 to 150.1.32.0 [Tthird byte: from 00010000 to 00100000.. it is clear to me that 10000 = 16 and 100000 = 32 but not the link with subnet mask and network address witout applying the subnet mask)
Broadcast address: from 150.1.31.255 to 150.1.47.255 [Third byte: from 00011111 to 00101111.. is clear to me that 11111 = 31 and 101111 = 47 and 255 = 11111111 for broadcast address but not the link with subnet mask and network address witout applying the subnet mask]
Addresses pool: from 150.1.16.1 to 150.1.31.254 and from 150.1.32.1 to 150.1.47.254 [and this a logical consequence of the previous calculus]
Thanks