惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
L
LangChain Blog
云风的 BLOG
云风的 BLOG
Jina AI
Jina AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
I
InfoQ
大猫的无限游戏
大猫的无限游戏
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
小众软件
小众软件
量子位
The GitHub Blog
The GitHub Blog
博客园 - 【当耐特】

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Linux Networking Basics for Beginners
Sreekanth Kuruba · 2026-06-23 · via DEV Community

Sreekanth Kuruba

Most Linux “server down” problems are not actually system failures.

They are network issues.

👉 The system is running fine
👉 But it cannot talk to the outside world

That’s why networking is one of the most critical skills in Linux, DevOps, and cloud environments.

Let’s simplify it.


Basic Networking Concepts (Must Know First)

What is an IP Address?

An IP address is a unique address assigned to a device in a network.

Example:

192.168.1.10

👉 Used for communication between systems.


What is localhost (127.0.0.1)?

localhost refers to your own computer.

127.0.0.1

👉 This means “your own computer”

Used for:

  • testing apps
  • local development
  • debugging services

What is DNS?

DNS (Domain Name System) converts domain names into IP addresses.

Example:

google.com → 142.x.x.x

👉 Without DNS, we would need to remember IPs manually.


What is a Port?

Ports are like “doors” for services.

Ports are communication endpoints used by applications.

Examples:

  • Port 80 → HTTP
  • Port 443 → HTTPS
  • Port 22 → SSH

👉 One server can run multiple services using different ports.


1. Check Internet Connectivity with ping

ping google.com

Limit requests:

ping -c 4 google.com

👉 First command used in troubleshooting.

Checks:

is host reachable?
is network working?


2. Test Web Requests with curl

curl google.com

Headers only:

curl -I google.com   # Show only HTTP headers

Verbose mode:

curl -v google.com   # Verbose (detailed output)

Used for:

API testing
checking web services
debugging HTTP issues


3. Check DNS Resolution

nslookup google.com

# More detailed DNS lookup
dig google.com

👉 If DNS fails:

website won’t open
even if internet is working


4. Check Your IP Address

ip a          # full network interface details
hostname -I   # Show only IP addresses

👉 Shows your system’s network identity


5. Check Routing path

ip route
ip route | grep default   # Show default gateway

👉 Shows how traffic leaves your system


6. Check Open Ports

ss -tuln               # Show listening ports
ss -tuln | grep :80    # Check specific port

Shows which services are listening on your system.

Modern replacement for netstat.


7. Trace Network Path with traceroute

traceroute google.com

Install if needed:

sudo apt install traceroute    # Ubuntu/Debian
sudo dnf install traceroute    # Fedora/RHEL

👉 Shows where delay or failure happens in network path


8. Enhanced Traceroute with mtr

mtr is a powerful combination of ping and traceroute. It continuously monitors the connection.

mtr google.com

Install if needed:

sudo apt install mtr

👉 Combines:

ping
traceroute

Real-time network diagnostics tool


Simple Troubleshooting Flow (VERY IMPORTANT)

  1. ping 8.8.8.8 → check internet
  2. ping google.com → check DNS
  3. ip a → check IP
  4. ip route → check routing
  5. curl -I site → check HTTP
  6. traceroute / mtr → find failure point

👉 This is real DevOps incident workflow


⚠️ Common Beginner Mistakes

  • assuming internet is down (when DNS is broken)
  • not checking IP address first
  • using old tools (ifconfig, netstat)
  • routing checks

Simple Mental Model

Think of networking like delivery:

IP → house address
DNS → contact name → address lookup
Port → door number
Routing → delivery path
ping → “are you there?”


Summary

You learned:

IP address basics
localhost (127.0.0.1)
DNS resolution
ports (80, 443, 22)
ping → connectivity
curl → web/API testing
nslookup, dig → DNS tools
ip a, ip route → network config
ss → open ports
traceroute, mtr → path debugging


Why This Matters

Networking is the backbone of:

cloud systems
DevOps pipelines
APIs
production servers

👉 If networking breaks, everything breaks


Next Post:
Linux Logs Explained Simply,(journalctl, /var/log)


Question for You

Have you ever faced a situation where:

internet was working
but website still didn’t load?

That’s usually DNS — I’ll show debugging in Part 8.