Tutorials
IP (Internet Protocol) addressing is fundamental to computer networking. It is the mechanism by which devices on a network identify and communicate with each other. An IP address is a numerical label assigned to each device connected to a network that uses the IP for communication.
There are two versions of IP addresses:
IPv4: A 32-bit address, written in decimal format (e.g., 192.168.1.1).
IPv6: A 128-bit address, written in hexadecimal and separated by colons (e.g., 2001:0db8:85a3::8a2e:0370:7334).
IPv4 addresses are divided into four octets (e.g., 192.168.0.1). Each octet is 8 bits, making a total of 32 bits. The structure divides the address into two parts:
Network ID: Identifies the network.
Host ID: Identifies the specific device on the network.
IPv4 addresses are categorized into five classes:
| Class | Starting Bits | Address Range | Number of Hosts |
|---|---|---|---|
| A | 0 | 1.0.0.0 – 126.255.255.255 | ~16 million |
| B | 10 | 128.0.0.0 – 191.255.255.255 | ~65,000 |
| C | 110 | 192.0.0.0 – 223.255.255.255 | 254 |
| D | 1110 | 224.0.0.0 – 239.255.255.255 | Multicast |
| E | 1111 | 240.0.0.0 – 255.255.255.255 | Reserved |
Public IP: Globally routable and unique.
Private IP: Used in local networks and not routable on the internet. Reserved ranges:
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
Static IP: Manually assigned, remains constant.
Dynamic IP: Automatically assigned by a DHCP server and can change over time.
Loopback Address: 127.0.0.1 is used for testing and diagnostics.
APIPA (Automatic Private IP Addressing): 169.254.x.x is self-assigned when a DHCP server is unreachable.
Broadcast Address: 255.255.255.255, used to send data to all devices in a network.
Network Address: The first address in a subnet; used to identify the network itself.
Due to the exhaustion of IPv4 addresses, IPv6 was introduced.
Format: 128-bit, expressed in hexadecimal, e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
Features:
Larger address space.
Simplified header.
Better security features.
No need for NAT (Network Address Translation).
Unicast: One-to-one communication.
Multicast: One-to-many communication.
Anycast: One-to-nearest communication based on routing distance.
Manual Configuration
Stateless Address Autoconfiguration (SLAAC)
DHCPv6
Used in IPv4 to map IP addresses to MAC addresses. In IPv6, Neighbor Discovery Protocol (NDP) serves the same purpose.
Proper IP address planning helps in:
Efficient use of address space.
Reducing broadcast domains.
Easier management and troubleshooting.
Understanding IP addressing is crucial for network design, troubleshooting, and day-to-day administration. With the transition to IPv6, network professionals must be well-versed in both protocols to manage hybrid environments effectively.
Anand Software and Training Pvt. Ltd. is not associated with Cisco® organization or any other company. CCNA™ is a trademarks of Cisco® organization. All trademarks are duly acknowledged. All practice tests and study material provided here is the copyright of Anand Software and Training Pvt. Ltd. All rights reserved.