Urgent.News

What's breaking now, across thousands of outlets.

Tech

Using the Linux IP Command to Manage Server Network Interfaces

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…

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).

To 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.

**Viewing Network Interface Information**

1. 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.

2. 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.

3. 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.

**Inspecting IP Addresses**

To 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`.

**Interface Configuration and MTU Management**

To 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.

**Monitoring Interface Statistics**

To 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.

**Summary**

The `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.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Scanning for Open Ports and Vulnerabilities with Nmap

Nmap (Network Mapper) is an open-source network discovery tool that identifies hosts, services, and potential security issues.

  • Nmap is open-source tool for network discovery and vulnerability assessment
  • Install Nmap on Linux server with sudo privileges using package manager
  • Use Nmap's Scripting Engine to detect specific vulnerabilities like FTP anonymous login

Using Curl

Curl is a command-line utility and underlying library (libcurl) used to transfer data across a wide range of network protocols, including HTTP, HTTPS, FTP, FTPS, SCP, SFTP, LDAP, MQTT, and more.

Playwright Email Tests Need a Cleanup Contract

Email-based end-to-end tests often look flaky for the wrong reason. A signup test creates a user, waits for a verification message, and sometimes finds an email that belongs to a previous run.

  • Email-based fixtures cause flakiness in end-to-end email tests.
  • Implement ownership contract for test mailboxes to improve reliability.
  • Clear contract includes ownership, readability, lifespan, and cleanup responsibilities.

Third VeloCloud Orchestrator Flaw Exploited in 2026: CVE-2026-114625 in a Pattern

Third VeloCloud Orchestrator Flaw Exploited in 2026: CVE-2026-114625 in a Pattern CVE-2026-114625 is the third VeloCloud Orchestrator vulnerability that Arista has reported as exploited since late…

  • Third critical vulnerability CVE-2026-114625 exploited in VeloCloud Orchestrator
  • SQL injection flaw allows low-level users to escalate to superuser operator
  • Arista patched hosted and dedicated orchestrators, but on-premises customers must apply fixes

More from Thursday 22 October →