Powerful Linux command for managing network interfaces, routes, and tunnels
Updated at: March 16, 2025
IP Address Configuration
The ip address command manages IPv4 and IPv6 addresses on network interfaces. It allows displaying, adding, deleting, and configuring IP addresses with various parameters like CIDR notation, broadcast addresses, and more.
Interface Management
Interface management involves listing, configuring, and monitoring network interfaces. The 'ip link' command provides powerful tools to manipulate network interface properties including status, naming, MTU size, and MAC address settings.
Routing Operations
Routing operations manage how packets traverse networks by configuring routing tables, static routes, default gateways, and policy-based routing. The `ip route` command provides comprehensive control over Linux routing functionality.
Link Management
Link management involves configuring and monitoring network interface link layer properties. This includes setting link states, speed, duplex mode, and other physical and data link layer parameters.
Neighbor Discovery
Neighbor discovery protocols map network layer addresses to link layer addresses. ARP (Address Resolution Protocol) handles this for IPv4, while NDP (Neighbor Discovery Protocol) manages it for IPv6. Both are essential for local network communication.
Network Namespaces
Network namespaces provide isolation of network resources, allowing for separate network stacks (interfaces, routing tables, firewall rules) within a single Linux system. They're essential for containerization, network virtualization, and creating complex network topologies.
Tunneling and VPN
Network tunneling encapsulates one protocol within another, allowing data to traverse incompatible networks or create secure connections between networks. The 'ip' command provides robust tools for creating and managing various tunnel types.
Network Statistics
Network statistics provide insights into system performance, traffic patterns, and potential issues. Linux offers various tools to monitor network interfaces, connections, protocols, and packets at different levels of the network stack.
Related Cheatsheets