0Pricing
DevOps Bootcamp · Lesson

Basic Network Utilities (ping, ip, netstat)

Use fundamental commands to test network connectivity, configure network interfaces, and monitor network connections.

Basic Network Utilities (ping, ip, netstat) is a free DevOps Bootcamp lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the DevOps Bootcamp learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Network Utilities: The Basics

Ever wonder how your computer talks to other devices or the internet? Network utilities are command-line tools that help us understand, diagnose, and manage network connections.

In this lesson, you'll learn essential commands to check connectivity, view network settings, and monitor active connections on your Linux system.

Test Connectivity with `ping`

The ping command is your go-to for checking if a host is reachable on a network. It sends small data packets (ICMP echo requests) and waits for replies.

A successful ping means the host is online and reachable. Let's try to ping Google's servers.

ping google.com -c 4

`ping` Options: Limit & Timeout

ping can run indefinitely by default. You can limit the number of packets with -c (count) or set a timeout for each packet with -W (wait time).

This is useful for quick checks without waiting too long.

ping 8.8.8.8 -c 2 -W 1

Introducing the `ip` Command

The ip command is a powerful, modern utility for configuring and displaying network interfaces, routing tables, and more.

It's designed to replace older tools like ifconfig and route, offering a unified interface for network management.

View IP Addresses: `ip addr`

Want to know your computer's IP address or see all active network interfaces?

The ip addr show command (or just ip a) displays detailed information about all network adapters, including their IP addresses, MAC addresses, and status.

ip addr show

Check Routing Table: `ip route`

Your computer uses a "routing table" to decide where to send network traffic. For example, local traffic stays local, while internet traffic goes to your router (the "default gateway").

Use ip route show to see these rules.

ip route show

`netstat`: Network Statistics

netstat (network statistics) is an older but still very common command for displaying network connections, routing tables, interface statistics, and multicast memberships.

While ip and ss are often preferred on newer systems, netstat remains valuable, especially on legacy systems.

Active Connections: `netstat`

To see all active incoming and outgoing network connections (both TCP and UDP), use netstat with specific flags. This can help identify what your system is communicating with.

The -tuna flags show TCP, UDP, numeric addresses, and all connections (including listening).

netstat -tuna

Listening Ports: `netstat -l`

Services running on your computer "listen" on specific ports for incoming connections. For example, a web server listens on port 80 or 443.

Use netstat -tulpn to list all TCP and UDP listening ports, along with the program (-p) that opened them.

netstat -tulpn

Quick Check: Network Utilities

Time for a quick check on what you've learned!

Recap: Basic Network Utilities

Great job! You've explored fundamental Linux commands for basic network tasks:

  • ping: Tests network connectivity to a host.
  • ip: The modern tool for viewing and configuring network interfaces and routes.
  • netstat: Displays network connections, routing tables, and interface statistics (often used with -tuna or -tulpn).

These commands are crucial for diagnosing network issues and understanding your system's network setup.

Frequently asked questions

Is the “Basic Network Utilities (ping, ip, netstat)” lesson free?

Yes — the full text of “Basic Network Utilities (ping, ip, netstat)” is free to read here on the web, and the DevOps Bootcamp course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the DevOps Bootcamp course, upgrade to CoddyKit PRO.

What will I learn in “Basic Network Utilities (ping, ip, netstat)”?

Use fundamental commands to test network connectivity, configure network interfaces, and monitor network connections. You practise DevOps Bootcamp with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start DevOps Bootcamp?

No prior experience is required. DevOps Bootcamp on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Basic Network Utilities (ping, ip, netstat)” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this DevOps Bootcamp lesson?

Yes. Every DevOps Bootcamp lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Basic Network Utilities (ping, ip, netstat)
  2. Secure Shell (SSH) Fundamentals
  3. SCP and Rsync for File Transfers
  4. SSH Key Authentication & the Config File
← Back to DevOps Bootcamp