Linux ๐ Phase 5 : Networking & Internet for DevOps Beginners


๐ฏ Target Audience: Beginners in DevOps & DevSecOps
๐ง Key Concepts:ping
,traceroute
,ip
,ss
,netstat
,curl
,wget
โฑ Estimated Read Time: ~9 minutes
๐ Series: Yes โ Part of โLinux for DevOps Beginnersโ
๐ Real-World Focus: Practical networking commands for automation, debugging, and security
Why This Matters in DevOps?
Every application relies on networking and internet connectivity. As a DevOps or DevSecOps engineer, youโll constantly verify that servers, containers, and services are accessible and secure.
From troubleshooting failed deployments to auditing network exposure, mastering these commands is non-negotiable. Think of them as your first-response toolkit for diagnosing and securing modern infrastructure.
1๏ธโฃ Connectivity Checks โ> ping
& traceroute
๐
What they do:
ping
checks if a host is reachable.traceroute
maps the path packets take to reach a destination.
Examples:
# Test if google.com is reachable
ping google.com
# Trace the route packets take to reach google.com
traceroute google.com
Real-World DevOps Use Cases:
Debugging a failed CI/CD deployment when a service isnโt reachable.
Checking DNS or internet connectivity inside a container.
DevSecOps Angle:
Verify network isolation/security groups.
Detect unexpected routing or exposure.
2๏ธโฃ Network Interfaces โ> ip
& ifconfig
๐ป
What they do:
ip
(modern) andifconfig
(legacy) show and configure network interfaces.
Examples:
# Show IP addresses
ip a
# Assign IP address to an interface
sudo ip addr add 192.168.1.50/24 dev eth0
Real-World DevOps Use Cases:
Verifying if a server/container received the correct IP.
Debugging network misconfigurations in Kubernetes pods.
DevSecOps Angle:
Identify unauthorized interfaces.
Ensure only approved IPs are assigned to production servers.
3๏ธโฃ Open Ports & Connections โ> ss
& netstat
๐
What they do:
Show which ports are open and what connections exist.
ss
is the modern replacement fornetstat
.
Examples:
# Show listening ports
ss -tulnp
# Show all connections
netstat -tulnp
Real-World DevOps Use Cases:
Debugging why Nginx isnโt accepting connections.
Checking if a database is bound to
localhost
or0.0.0.0
.
DevSecOps Angle:
Spot unauthorized open ports.
Detect suspicious outbound connections.
4๏ธโฃ File Transfer & API Testing โ> curl
& wget
๐
What they do:
curl
โ interact with APIs, test endpoints, upload/download data.wget
โ download files from the internet.
Examples:
# Download a file with wget
wget https://example.com/file.tar.gz
# Send a POST request with curl
curl -X POST -H "Content-Type: application/json" \
-d '{"user":"alpha","role":"devops"}' \
https://api.example.com/users
Real-World DevOps Use Cases:
Fetching build artifacts in CI/CD pipelines.
Testing REST APIs in automation scripts.
DevSecOps Angle:
Simulate unauthorized API calls.
Check headers, redirects, and SSL/TLS configurations.
Common Mistakes to Avoid
Relying only on
ping
โ Firewalls may block ICMP; always validate withcurl
orss
.Using
ifconfig
only โ Legacy; preferip
for modern systems.Ignoring
ss
/netstat
output โ Open ports can expose production systems.Hardcoding
wget
/curl
in scripts without validation โ Risks downloading malicious files.
Quick Recap
ping
&traceroute
โ Test connectivity & network path.ip
&ifconfig
โ Inspect and configure interfaces.ss
&netstat
โ Monitor open ports and active connections.curl
&wget
โ Transfer files & interact with APIs.
Master these, and youโll handle networking like a pro ๐.
๐ Call to Action
If you found this useful, share it with a fellow DevOps beginner.
Next up: Phase 6 โ Linux Processes & Monitoring ๐ฅ๏ธ
Weโll dive into ps
, top
, htop
, and kill
to manage processes effectively.
๐จโ๐ป Written by: Abdulrahman A. Muhamad
๐ LinkedIn | GitHub | Portfolio
Subscribe to my newsletter
Read articles from Abdulrahman Ahmad directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Abdulrahman Ahmad
Abdulrahman Ahmad
๐ Code. Automate. Innovate. Hi, Iโm Abdulrahman, a passionate DevOps Engineer and Software Developer on a mission to bridge the gap between code and production. With a love for automation, cloud-native solutions, and cutting-edge tech, I turn complex problems into seamless, scalable systems. ๐ก What I Do: Build robust CI/CD pipelines that deliver software at the speed of thought. Architect cloud infrastructure that scales with a single command. Transform manual processes into automated workflows that just work. Break down silos and foster collaboration between teams. ๐ง Tech Stack I โค๏ธ: Containers (Docker), Orchestration (Kubernetes), Infrastructure as Code (Terraform), CI/CD (Jenkins, GitLab), Cloud (AWS/GCP/Azure), and scripting like itโs my superpower. ๐ Why This Blog? This is where I share my journey, lessons learned, and the latest trends in DevOps and software engineering. Whether you're a seasoned pro or just starting out, join me as we explore the tools, tricks, and best practices that make the tech world tick. ๐ Letโs Build the Future, One Pipeline at a Time. Connect with me, share your thoughts, and letโs automate the world together!