it ip command The guide is a follow-up to my previous 90 Linux Commands Often Used by Linux Sysadmins article. Every week, or as time permits, I will publish articles on ~90 commands geared to Linux sysadmins and Linux power users. let’s continue this series
For Linux sysadmins, it is important to have a basic understanding of networking tools when managing and troubleshooting Linux servers. While we’ve covered some devices built primarily for monitoring, iproute2 and specifically
IP The command is used to configure, view and modify network settings.
iproute2 is a Linux networking toolkit that has been replaced by net-tools (Including
routeInstead of using a separate tool for every aspect of network management, with IProute2, sysadmins now have a unified interface.
Iproute2 has the following command-line utilities:
tipc, Most networking functionality is integrated into
ip Permission. there too
tc for managing traffic policies (QoS), and
ss who was replaced
ip command with example
ip The command is a part of the iproute2 package which is installed on all modern Linux distributions. This suite of networking commands allows system administrators to manage addresses, link-state, neighbor objects, routing tables, and other network components.
ip The command also provides access to VRFs, network namespaces, policy-based routing, etc. It provides a similar syntax.
ip command example:
To list interfaces with detailed information, use:
To list interfaces with brief network layer information, use:
ip -brief address
To list interfaces with concise link layer information, use:
ip -brief link
To display the routing table, use:
To show neighbors (arp table), use:
To move the interface up/down, use:
ip link set interface up/down
To add/remove an IP address in an interface, use:
ip addr add/del ip/mask dev interface
To add a default route, use:
ip route add default via ip dev interface
ip command and iproute2 useful read:
The iProute2 and IP commands are essential for Linux network management. We should know how to use commands to aid in network and system administration.