Understanding IP Addressing and Subnetting
Posted on June 1, 2024 (Last modified on June 26, 2024) • 1 min read • 212 wordsLearn the fundamentals of IP addressing and subnetting, including IPv4, IPv6, and subnet mask calculations.
An IPv4 address is a 32-bit number that identifies a device on a network. It is divided into four octets, separated by periods.
# Example: IPv4 address
192.168.1.1
IPv4 addresses are classified into five classes (A, B, C, D, E), each used for different purposes.
An IPv6 address is a 128-bit number designed to replace IPv4. It provides a significantly larger address space and improved routing efficiency.
# Example: IPv6 address
2001:0db8:85a3:0000:0000:8a2e:0370:7334
IPv6 addresses are written as eight groups of four hexadecimal digits, separated by colons.
A subnet mask divides an IP address into network and host parts. It is used to determine which portion of an IP address is the network address and which part is the host address.
# Example: Subnet mask
255.255.255.0
Use subnetting to create multiple sub-networks within a single network. This is done by borrowing bits from the host portion of the IP address to create additional network addresses.
# Example: Subnet calculation
192.168.1.0/24
Subnetting involves determining the number of subnets needed and the number of hosts per subnet. For example, a /24 subnet mask provides 256 IP addresses, of which 254 can be assigned to devices.