Appendix A - Network Addressing A-9
IP Addressing
Subnetting is required if the network is segmented.
Subnet Mask
The Subnet Mask is used by the host to determine if a destination IP address is
on the local or on a remote network segment. The table in Figure A-6 shows the
default subnet mask used for each class of IP address.
Figure A-6
Default Subnet Masks for IP Classes
The IP address and subnet mask work with each other to identify a network
element or device. The subnet mask, like an IP address, contains 4 octets sepa-
rated by a dot (.) and looks similar to an IP address.
The subnet mask determines what bits in the IP address are being used to deter-
mine the network ID by using the Boolean math operator and in a process
called anding. Anding compares each bit value in the IP address with the bit
value in the subnet mask. The result of the anding process determines which
subnet the IP address is on. The Boolean and operator works as follows:
0 and 0 = 0
1 and 0 = 0
1 and 1 = 1
The table shown in Figure A-7 shows the anding of two binary values and the
corresponding decimal equivalents for each of the values.
11111111.11111111.11111111.00000000255.255.255.0Class C
11111111.11111111.00000000.00000000255.255.0.0Class B
11111111.00000000.00000000.00000000255.0.0.0Class A
Mask Binary ValueMask Decimal ValueAddress Class
11111111.11111111.11111111.00000000255.255.255.0Class C
11111111.11111111.00000000.00000000255.255.0.0Class B
11111111.00000000.00000000.00000000255.0.0.0Class A
Mask Binary ValueMask Decimal ValueAddress Class
CLASS A
CLASS B
CLASS C