- Consist of 32 bits.
- Are broken into four octets (8 bits each).
- Use dotted-decimal format; an example is 172.16.122.204.
- Minimum value (per octet) is 0, and the maximum value is 255.
- 0.0.0.0 is a network ID.
- 255.255.255.255 is a broadcast IP.
IPv4 Address Classes
|TABLE FF.13||IPv4 Address Classes|
|First Octet||Second Octet||Third Octet||Fourth Octet|
TCP/IP defines two additional address classes:
- Class D: Used for multicast addresses.
- Class E: Used for research purposes.
TABLE FF.14 Address Class Ranges
Class First Octet Decimal Range
A 1 to 126
B 128 to 191
C 192 to 223
D 224 to 239
E 240 to 255
The 127.x.x.x address range is reserved for loopback addresses.
Default subnet masks:
- Class A: 255.0.0.0
- Class B: 255.255.0.0
- Class C: 255.255.255.0
Classless Interdomain Routing (CIDR) notation might also be used to identify the subnet mask. The CIDR notation for each network class can be dvcermined by counting the 1s in binary or the number of bits that make up the network portion of the address.
The mask is written in slash notation as follows:
- Class A: /8
- Class B: /16
- Class C: /24
IANA private address space allocations:
- Class A: 10.0.0.0 to 10.255.255.255
- Class B: 172.16.0.0 to 172.31.255.255
- Class C: 192.168.0.0 to 192.168.255.255
TABLE FF.15 Decimal to Binary Conversions
|Class||First Octet Decimal Range|
To calculate the hosts in a subnet, we can use the formula 2H – 2. The exponent H represents the number of host bits in a network.
To calculate the networks in a subnet, we can use the formula 2N – 2. The exponent N represents the number of subnet bits in a network.
The range of valid IP addresses in a subnet is the first IP address after the Network ID and the last IP address before the broadcast IP address.
The following represents IP subnetting: IP address = 18.104.22.168
Subnet mask = 255.255.254.0
Network ID = 22.214.171.124
Broadcast IP = 126.96.36.199
Valid IP range = 188.8.131.52 to 184.108.40.206
IPv6 is a workable IP version that was created in the event that the IP space from IPv4 is exhausted.
IPv6 address format summary:
- Defined by RFC 2373 and RFC 237.
- Consists of 128 bits, with a 64-bit network prefix and a 64-bit local identifier.
- Represented by 32 hexadecimal digits broken into eight smaller groups of four.
- Utilizes CIDR notation (slash notation) to discern a subnet range, so you might see the same IP address subnetted and written out as
2001 :0BD2:0200:08F1 :0000:0000:0000: 16AB/16.
The same IPv6 IP address can be written out in all of the following ways: 2001 :0BD2 :0200:08F1 :0000:0000:0000: 16AB
200 1:BD2 :200:8F1 :0:0:0:16AB
200 1:BD2 :200:8F1 ::16AB
Types of IPv6 Addresses
1. Link-local addresses: Addresses that have the shortest reach of the IP address types. They can only go as far as the Layer 2 domain. These addresses are autogenerated with or without the use of a DHCP server. So, when an IPv6 node goes online, this address is assigned automatically.
2. Unique/site-local addresses: Addresses that have a broader scope than link-local addresses. They can expand to the size of an organization and are used to describe the boundary of the organizational network. These are the private addresses for IPv6.
3. Global addresses: Addresses that have the broadest scope of all. As the name indicates, these addresses are for global use—that is, for Internet communications.
4. Multicast: Addresses that are extremely important because of their use in group communications and broadcast messaging.
Integrating IPv4 and IPv6
There are several ways to integrate IPv4 and IPv6 addressing. You can implement dual-stack,tunneling, or translation techniques to help IPv4 and IPv6 addresses exist together on the net-work simultaneously.