CTI 2572-B / 2500C-2572-B Installation and Operation Manual 105
For example, where the IP address is 126.18.40.3 with a subnet mask of 255.255.0.0, the Network ID is 126.18
and the Host ID is 40.3.
However, if you are using a subnet mask that does not align with the octet boundaries, this is more difficult.
You will need to perform a bitwise “and” calculation to arrive at the Network address. See the following
illustration.
Assuming an IP address of 127.18.40.3 and a Subnet Mask of 255.255.240.0, the following table illustrates the
bitwise “and” operation. In essence, wherever the subnet mask bit is one, the corresponding IP address bit is
part of the Network ID.
Item
Decimal
An easier way to determine this is to compare only non-aligned subnet mask octet with the corresponding
octet of the IP address. For example, since the subnet mask of the first two octets is 255.255, the first two
octets of the Network ID are the same as the dotted decimal values (127.18) of the IP address.
However, since the third octet of the subnet mask is not 255 or 0, you must perform a bitwise calculation
using the third octet of the IP address and network mask. The can be accomplished this is to use the windows
calculator (Scientific View in Windows XP or Programmer view in Windows 7). Using this example, you would
enter the value of the third octet (40), click on the “and” button, enter the subnet mask (240), and then click
on the “=” button. The result, in this case, is 32. Thus the Network address is 127.18.32.0.
NOTE
The binary representation of a Network Mask must be a single continuous block 1’s followed by a
contiguous block of zeroes. When entering the Network Mask in dotted decimal notation, you must
ensure that this requirement is maintained. For example, a network mask of 255.247.0.0 is not valid
because the binary equivalent (11111111111101110000000000000000) violates this rule.
The Network Mask must allow at least two bits of host address. In addition, a network mask which causes the
derived host ID to be 0 or a broadcast address (all Host ID bits set to 1) should not be used.