DEV Community

Luckshvadhan B
Luckshvadhan B

Posted on

IP address and Subnet

What is an IP Address?
It is a unique identifier given to each device in a network
It helps devices communicate with each other
Example
192.168.1.1
It is divided into two parts such as
1.Network part
2.Host part

What is a Subnet?
It is a smaller division of a network
Instead of one large network we split it into multiple smaller networks
This helps in better organization and control

What is a Subnet Mask?
A subnet mask is used to separate the network part and host part of an IP address
Example
IP Address 192.168.1.10
Subnet Mask 255.255.255.0

Here
255 represents the network portion
0 represents the host portion

Approach
Step 1
Take the IP address
Step 2
Apply the subnet mask
Step 3
Identify network and host parts
Step 4
Group devices based on network

Why this works???
Because dividing a large network into smaller subnets reduces traffic
and improves communication efficiency
Each subnet works independently making management easier

Limitation
Requires proper planning
Incorrect subnetting can lead to communication issues
Basic understanding of binary is needed for deeper concepts

Top comments (0)