Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Linux Networking CLI Tools Cheat Sheet

Linux Networking CLI Tools Cheat Sheet

Back to Operating Systems and CLI
Updated 2026-05-21
Next Topic: Linux Package Management Cheat Sheet

The iproute2 suite — centered on the ip command — has replaced the legacy net-tools package (ifconfig, route, arp) as the standard interface to the Linux kernel's network stack. Modern Linux networking is built around a handful of powerful tools: ip for interface and route management, ss for socket inspection, nmcli for NetworkManager profiles, and a rich set of diagnostic utilities spanning DNS, path analysis, packet capture, and throughput testing. The mental model that matters most: ip commands affect running kernel state only — changes are lost on reboot unless persisted through NetworkManager, systemd-networkd, or distro-specific config files.

What This Cheat Sheet Covers

This topic spans 18 focused tables and 165 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: ip addr — Interface Address ManagementTable 2: ip link — Interface State and PropertiesTable 3: ip route — Routing Table ManagementTable 4: ip rule — Policy-Based RoutingTable 5: ip neigh — ARP / Neighbor TableTable 6: ss — Socket Statistics (netstat Replacement)Table 7: dig / nslookup / host — DNS LookupsTable 8: ping / ping6 — Connectivity TestingTable 9: traceroute / mtr — Path AnalysisTable 10: tcpdump — Packet Capture and AnalysisTable 11: ethtool — NIC Settings and StatisticsTable 12: nmcli — NetworkManager CLITable 13: nc (netcat) — Ad Hoc TCP/UDPTable 14: socat — Advanced Socket RelayTable 15: iperf3 — Network Throughput TestingTable 16: bmon / nload / iftop — Live Bandwidth MonitoringTable 17: ip tunnel / ip xfrm — Tunnels and IPsecTable 18: Common Troubleshooting Workflows

Table 1: ip addr — Interface Address Management

The ip addr subcommand manages IP addresses assigned to network interfaces and replaces the older ifconfig command. Understanding the difference between a temporary runtime change and a persistent configuration is critical: every ip addr command modifies only the live kernel state.

CommandExampleDescription
ip addr show
ip addr show
• Display all interfaces and their IPv4/IPv6 addresses
• abbreviate as ip a.
ip addr show dev
ip addr show dev eth0
Show addresses and state for a single interface only.
ip -4 / -6 addr
ip -4 addr show
ip -6 addr show
Filter output to IPv4 only or IPv6 only addresses.
ip addr add
ip addr add 192.168.1.10/24 dev eth0
• Assign an IP address with prefix length to an interface
• changes are not persistent across reboots
ip addr del
ip addr del 192.168.1.10/24 dev eth0
Remove a specific IP address from an interface.

More in Operating Systems and CLI

  • Linux LVM Logical Volume Management Cheat Sheet
  • Linux Package Management Cheat Sheet
  • AWS CLI Cheat Sheet
  • GCP CLI Cheat Sheet
  • macOS Usage Cheat Sheet
  • systemd and Linux Service Management Cheat Sheet
View all 48 topics in Operating Systems and CLI