Page 357 of 378
ITG Trunk 2.0 ISDN Signaling Link (ISL) Description, Installation and Operation
358
Appendix C: Subnet mask conversionfrom CIDR to dotted decimal format
Subnet masks can be expressed in Classless Inter Domain Routing (CIDR )
format, appended to the IP address (for example, 10.1.1.1/20). The subnet
mask must be converted from CIDR format to dotted decimal format to
configure ITG IP addresses.
CIDR format expresses the subnet mask as the number of bits counting from
the most significant bit of the first IP address field. A complete IP address
consists of 32 bits. A typical CIDR format subnet mask is in the range from
/9 to /30. Each decimal number field in the dotted decimal format can have a
value from 0 to 255, where 255 represents binary 1111 1111.
To convert a subnet mask from CIDR format to dotted decimal format:
1Divide the CIDR format value by 8. The result is equal to the number
of dotted decimal fields containing 255.
In the example above, (10.1.1.1/20), the subnet mask is /20. 20 divided
by 8 is equal to 2, with a remainder of 4. The f irst 2 fie lds of the subne t
mask in dotted decimal format are 255.255.
2If there is a remainder, refer to Tab le70, “CIDR format remainders,” on
page 358 to get the dotted decimal value for the f iel d fo llowing t he last
field containing “255”.
In the example of /20 above, the remainder is 4. In Table70, “CIDR
format remainders,” on page358, a remainder of 4 is equal to a binary
value of 1111 0000 and the dotted decimal format value of the next and
last field is 240. The first 3 fields of the subnet mask are 255.255.240.