CCNA: IP Addressing
An IP address is a unique logical identifier for a node or host
connection on an IP network. An IP address is a 32 bit binary number, and
represented as 4 decimal values of 8 bits each. The decimal values range
from 0 to 255. This is known as "dotted decimal" notation. Example: 192.189.210.078 It is sometimes useful to view the values in their binary form. 192 .189 .210 .078 11000000.10111101.11010010.1001110 Every IP address consists of network identifier and node identifier. The IP network is divided based on Class of network. The class of network is determined by the leading bits of the IP address as shown below. |
Address Classes
There are 5 different address classes. You can determine which class any IPaddress is in by examining the first 4 bits of the IP address.
- Class A addresses begin with 0xxx, or 1 to 126
decimal.
- Class B addresses begin with 10xx, or 128 to 191
decimal.
- Class C addresses begin with 110x, or 192 to 223
decimal.
- Class D addresses begin with 1110, or 224 to 239
decimal.
- Class E addresses begin with 1111, or 240 to 254
decimal.
Now we can see how the Class determines, by default, which part of the IP address belongs to the network (N) and which part belongs to the Host/node (H).
- Class A: NNNNNNNN.HHHHHHHH.HHHHHHHH.HHHHHHHH
- Class B: NNNNNNNN.NNNNNNNN.HHHHHHHH.HHHHHHHH
- Class C: NNNNNNNN.NNNNNNNN.NNNNNNNN.HHHHHHHH
In order to specify the network address for a given IP address, the node section is set to all "0"s. In our example, 192.189.210.0 specifies the network address for 192.189.210.078. When the node section is set to all "1"s, it specifies a broadcast that is sent to all hosts on the network. 192.189.210.255 specifies the broadcast address.