{
  "id": 16122438,
  "title": "Using the Linux IP Command to Manage Server Network Interfaces",
  "url": "https://urgent.news/2026/10/22/using-the-linux-ip-command-to-manage-server-network-interfaces",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-22T23:22:30.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/vultr/using-the-linux-ip-command-to-manage-server-network-interfaces-4ngk"
  },
  "original_language": "en",
  "account": "The `ip` command is a powerful Linux network management tool that consolidates the functions of older commands like `ifconfig`, `arp`, and `route`. It allows users to manage, monitor, and troubleshoot server network interfaces in one place. This guide walks through using the `ip` command to handle various aspects of network interfaces, including configuration, static routing, enabling/disabling, and managing the Maximum Transmission Unit (MTU).\n\nTo use the `ip` command, the basic syntax is `ip [OPTIONS] OBJECT COMMAND [ARGUMENTS]`. Here, `OPTIONS` set the operation mode, `OBJECT` specifies the type of network object (e.g., link, address, route), `COMMAND` defines the action to perform on the object (e.g., add, del, show), and `ARGUMENTS` are additional options for the command.\n\n**Viewing Network Interface Information**\n\n1. To see all network interfaces on the server, use `ip link show`. This command provides details such as the interface name, state, MTU, and MAC address. For example, interfaces with the state `UP` are active and capable of sending or receiving network traffic, while those with `DOWN` state are inactive.\n\n2. To filter and show only active interfaces, use `ip link show up`. This command displays interfaces currently in the `UP` state, ready for network operations.\n\n3. The `-br` option provides a concise summary of interface information. For instance, `ip -br link show` shows the interface name, state, and MAC address in a simplified format.\n\n**Inspecting IP Addresses**\n\nTo view IP addresses assigned to interfaces, use the `ip a` command. This outputs all interfaces with their IP addresses, subnet masks, scope, and valid/preferred lifetimes. For static IP assignment, the `ip addr show` command can be used on a specific interface, like `ip addr show enp8s0`.\n\n**Interface Configuration and MTU Management**\n\nTo configure an IP address manually, you can use the `ip addr add` command. For example, `ip addr add 192.0.2.100/24 dev enp1s0` adds the IP address 192.0.2.100 with a subnet mask of 24 bits to the `enp1s0` interface. Setting the MTU involves using `ip link set`. For instance, `ip link set enp8s0 mtu 1400` adjusts the MTU of `enp8s0` to 1400 bytes.\n\n**Monitoring Interface Statistics**\n\nTo gather detailed statistics about interface performance, use `ip -s link show` followed by specifying the interface, e.g., `ip -s link show enp8s0`. This provides insights into received and transmitted bytes, packets, errors, and other metrics, helping troubleshoot network performance issues.\n\n**Summary**\n\nThe `ip` command is a versatile tool that simplifies network interface management on Linux servers. By understanding its syntax and options, administrators can effectively view interface details, configure IP addresses, manage MTU settings, and monitor network performance, ensuring robust server operations.",
  "summary": "The ip command is a built-in Linux network management utility that offers a wide range of features and tools for managing network interfaces. It's an improved utility that combines the functionality of legacy commands such as ifconfig , arp , and route into a single tool for managing, monitoring, and troubleshooting your server's network interfaces. This guide covers using the ip command to…",
  "key_points": [
    "ip command consolidates functions of older Linux network tools.",
    "Use ip link show to view all network interfaces and their states.",
    "Configure IP addresses with ip addr add and manage MTU with ip link set."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}