WE CODE NOW
  • Home 
  • Blog 
  • Guides 
Guides
  1. Home
  2. Guides
  3. Networking
  4. Understanding IP Addressing and Subnetting

Understanding IP Addressing and Subnetting

Posted on June 1, 2024  (Last modified on June 26, 2024) • 1 min read • 212 words
Networking
 
IP Addressing
 
Subnetting
 
IPv4
 
IPv6
 
Networking
 
IP Addressing
 
Subnetting
 
IPv4
 
IPv6
 
Share via
WE CODE NOW
Link copied to clipboard

Learn the fundamentals of IP addressing and subnetting, including IPv4, IPv6, and subnet mask calculations.

On this page
  • IP Addressing
    • IPv4 Addressing
    • IPv6 Addressing
  • Subnetting
    • Subnet Mask
    • Calculating Subnets

Understanding IP Addressing and Subnetting  

IP Addressing  

IPv4 Addressing  

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.

IPv6 Addressing  

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.

Subnetting  

Subnet Mask  

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

Calculating Subnets  

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.

 Networking Fundamentals Terminology
Configuring Routers and Switches 
On this page:
  • IP Addressing
    • IPv4 Addressing
    • IPv6 Addressing
  • Subnetting
    • Subnet Mask
    • Calculating Subnets
Copyright © 2025 WE CODE NOW All rights reserved.
WE CODE NOW
Code copied to clipboard