Understanding CIDR Notation For IP Address Display On 2500 Series Processors
Understanding CIDR Notation For IP Address Display On 2500 Series Processors
2500 Series®
Programmable Automation Control System
2
The network address is obtained by performing a bitwise AND comparison between the IP address and the subnet mask. A bitwise
AND compares each bit in the IP address with the corresponding bit in the subnet mask. If both bits are 1, the corresponding
subnet address bit will be a 1. Else the corresponding subnet bit will be 0. Bits that are set to 1 identify the subnet and bits that are
set to 0 identify the host. In this example, the subnet address is 128.54.177 and the host ID is .97. To communicate directly with
this device, your PC IP address must be 128.54.177.n, where n is a number ranging from 1-254 (except 97, which would be a
duplicate of the destination device IP Host ID).
Alternately, you can use a calculator, such as the Windows calculator (Programmer View), to convert the binary value of the last
non-zero octet to a decimal value. For example: a CIDR of 20 will have 16 bits in the first two octets represented as 255.255. The
third octet has the remaining four network bits in the most significant bit positions (11110000 binary = 240 decimal). Thus the
dotted decimal equivalent is 255.255.240.0.