๐ Day 6 of My DevSecOps Journey

Networking, OSI Model, IP Addressing, Subnetting, DNS, ARP, Storage, Volume Mounting & NFS (Complete Guide)
Day 6 was a deep dive into Linux networking and Linux storage โ two pillars that every DevOps/Cloud/DevSecOps engineer must master.
From OSI layers to subnetting, and from disk partitioning to NFS sharing, todayโs learnings helped me understand how systems communicate and store data in real environments.
Letโs break it down ๐
๐ 1๏ธโฃ Understanding Networking in Linux
๐ Network Interface
A network interface is the point where a computer connects to a network โ physical or virtual.
Examples:
eth0,ens3,wlan0
Used for routing, communication, and network troubleshooting.
๐งฑ 2๏ธโฃ OSI Model โ The 7 Layers Explained Simply
The OSI model explains how data travels across a network.
I learned each layer one by one:
โซ Layer 1 โ Physical
Transmits raw bits through cables, signals, fiber.
Devices: NICs, cables, switches.
๐ฃ Layer 2 โ Data Link
Node-to-node communication.
Handles error detection & correction.
Contains MAC addresses.
๐ต Layer 3 โ Network Layer
Responsible for routing, choosing best path for data.
Contains IP addressing.
๐ข Layer 4 โ Transport Layer
Handles sequencing, reassembly, and flow control.
Two major protocols:
TCP โ Reliable, connection-oriented (mail, web apps)
UDP โ Fast, connectionless (gaming, streaming)
๐ก Layer 5 โ Session Layer
Manages sessions between applications.
Establishes โ Maintains โ Terminates.
๐ถ Layer 6 โ Presentation Layer
Formats data, encrypts and decrypts.
Ensures sender & receiver interpret data correctly.
๐ด Layer 7 โ Application Layer
Closest to users.
Common protocols:
HTTP/HTTPS โ Web
SMTP/POP3 โ Email
FTP โ File transfer
DNS โ Domain resolution
๐ก 3๏ธโฃ IP Addressing, Subnet Masks & Classes
๐ฉ IPv4 Format:
a.b.c.d โ Each part = 8 bits (0โ255)
๐ IP Classes
Class A โ
/8โ 1.0.0.0Class B โ
/16โ 128.0.0.0Class C โ
/24โ 192.0.0.0
๐งฎ 4๏ธโฃ CIDR Notation & Subnetting
Example: 192.168.1.0/24
Network Address: 192.168.1.0
Broadcast Address: 192.168.1.255
Usable Hosts: 192.168.1.1 โ 192.168.1.254
๐น Subnetting /24 into 4 subnets
Each block size = 256 / 4 = 64
a) 192.168.1.0 โ 192.168.1.63
b) 192.168.1.64 โ 192.168.1.127
c) 192.168.1.128 โ 192.168.1.191
d) 192.168.1.192 โ 192.168.1.255
Subnetting helps design secure, efficient VPC networks.
๐ 5๏ธโฃ DNS (Domain Name System)
DNS acts like the Internetโs phonebook:
๐ Converts domain names โ IP addresses
Example:www.google.com โ 142.250.x.x
Makes the internet usable without remembering IP numbers.
๐ 6๏ธโฃ ARP (Address Resolution Protocol)
ARP maps:
IP Address โ MAC Address
Used inside local networks so devices find each other.
Critical for routing, switching, and troubleshooting LAN issues.
๐พ 7๏ธโฃ Storage in Linux โ RAM, Disk & 3 Storage Layers
๐ง RAM
Temporary storage (clears after reboot).
๐ฝ HDD / SSD
Permanent storage for OS, logs, files, apps.
Linux storage works in 3 layers:
๐ฆ Layer 1 โ Raw Disk Partitioning
Splitting a disk into sections.
Example: 10GB โ 5GB + 5GB partitions.
๐ฉ Layer 2 โ File System
Formatting partitions using:
ext4xfsbtrfs
๐ง Layer 3 โ Mount Points
Connecting the formatted partition to a usable folder.
๐ ๏ธ 8๏ธโฃ Practical: Attaching a Volume to a VM & Mounting It
I practiced attaching a new volume to a Linux VM.
๐ Step 1 โ Create VM
Launch instance, configure security groups.
๐ Step 2 โ Create Volume
Choose size โ select same availability zone as VM.

๐ Step 3 โ Attach Volume
Inside VM, partition disk:
sudo fdisk /dev/nvme1n1


๐ Step 4 โ Format the Partition
sudo mkfs.ext4 /dev/nvme1n1p1

๐ Step 5 โ Mount the Disk
sudo mount /dev/nvme1n1p1 /mnt/data1

Now the new disk is active and usable.
๐ 9๏ธโฃ Practical: NFS (Network File System) Setup
I configured file sharing between two VMs:
nfs-server and nfs-client.
๐ฅ๏ธ Server Configuration
sudo mkdir -p /srv/nfs_server
sudo chown nobody:nogroup /srv/nfs_server
sudo chmod 777 /srv/nfs_server
sudo vi /etc/exports # added export rule for client
sudo systemctl restart nfs-kernel-server

๐ Important:
Open port 2049 in the security group.
๐ป Client Configuration
sudo mkdir -p /mnt/nfs_client
sudo mount <Server-IP>:/srv/nfs_server /mnt/nfs_client
Here the NFS server storage becomes accessible to the client VM.

๐ฏ Day 6 Takeaway
Todayโs learning helped me build deeper understanding of:
โ๏ธ OSI layers & network fundamentals
โ๏ธ Classes, CIDR, subnetting & broadcast concepts
โ๏ธ DNS & ARP โ how computers find each other
โ๏ธ Linux storage architecture
โ๏ธ Disk partitioning, formatting & mounting
โ๏ธ NFS server-client communication
These are foundational skills for cloud networking, DevOps automation, Kubernetes clusters, and secure infrastructure design.
Excited for Day 7! ๐




