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) and ifconfig (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 for netstat.

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 or 0.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 with curl or ss.

  • Using ifconfig only โ†’ Legacy; prefer ip 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

0
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!