|
Main /
NetmaskNetmaskYour netmask, or subnet mask, tells you what IP addresses are local to your IP address. Local addresses share your subnet, like the 152.2.145 subnet. Although your IP address must be unique, your netmask certainly is not. To determine the range of addresses that are local, you mask your IP address with your netmask. In binary, a 1 means that the binary digit must match; a 0 means it can be either a 0 or a 1. So the lowest possible local address has all zeroes where possible, while the highest has all ones where the netmask allows a choice. That lowest possible address is reserved to represent this network. That highest possible address is also reserved, as the broadcast address for this network. No network node may use these addresses.
A one in the binary netmask means that the corresponding binary digit in your IP address must match the digit in that position in another address for the other address to be local. A netmask zero means the binary digit in that position doesn't have to match.
If you're the visual type, imagine the netmask is a stencil. Place the stencil over your IP address, and then push a paint roller over it. The zeroes let the paint block out binary digits, but the ones don't let enough paint through to obscure your address. Ones must match, zeroes free choice. o o o Simple Example
The range of local addresses is from 152.2.0.0 to 152.2.255.255. The address 152.2.0.0 represents this network; 152.2.0.0/16 represents the network and its netmask at the same time (/16 means 16 ones in the netmask in CIDR notation). Example
|