Linux comes with a number of networking tools for managing both large-scale and small-scale network infrastructure. For a long time, net-tools has been the default networking tool of choice, but has now been replaced by iproute2 tools.
This guide will look at some important networking tools that are meant to replace the obsolete net-tools. Most modern versions of Linux come with the new iproute2 tool by default.
Here are some of the new iproute2 networking tools that have replaced the old and obsolete net-tools on Linux.
The ss tool, short for “socket statistics”, is a set of networking tools that are part of iproute2.
ss replaces most netstat tools. It receives socket information directly from kernel space and is faster than its predecessor in most cases. It is also capable of displaying more TCP and state information than net-tools.
ss commands are very short and precise. For example, to display TCP information, you need to run the following command.
To learn more about the ss command options and usage, you can either check out our detailed guide on ss or get command-line help using ss –help or man ss .
2. IP A
Obtaining information about your Internet Protocol (IP) is one of the most common networking tasks performed by both system administrators and PC users. The IP set of commands shows and manipulates networking or routing devices, interfaces, and tunnels.
Traditionally, this is done by the ifconfig command, which is responsible for displaying details on all network interfaces. ifconfig is now replaced with ip a or ip addr .
3. IP Number
IP Neighbor, IP Neighbor, IP Neighbor, or simply IP N is a powerful networking tool used to manipulate Address Resolution Protocol (ARP), or NDISC cache entries. It works by finding the media access control (MAC) address of a network neighbor for a given IP address.
The ip n command replaces the old arp command. It is mostly used when working with routing equipment and tunnels. Unlike its predecessor which tries to do everything, IP N is more concise and easier to use and learn.
The iw command is used to display and configure wireless devices. It replaces the iwconfig command. iw uses the NetLink Public Interface header and supports all recent drivers added to the Linux kernel.
To get information about your wireless devices and their capabilities, for example, network bands, Wi-Fi standards, etc., you can run commands.
5. IP Link
ip link replaces nemif command. It is mainly used to display and modify network interfaces. Keep in mind that you will need elevated sudo privileges to make changes to the configuration.
In addition to the ip link command, Linux also provides another option called ifrename. You can learn more about ip link and its options from the manual pages using the man ip link command.
6. IP routing
You can use the ip route command to display and configure table routes, network interfaces, and tunnels. The ip root command or simply ip r replaces the route command on Linux.
7. IP Tunnel
As the name suggests, you can use the ip tunnel command for tunnel configuration. For example, to configure IPv4 or IPv6 tunnels for the transmission of packets.
ip tunnel replaces the iptunnel command from the net-tools package. To show the tunnel, run the following command.
Take advantage of the new iproute2 command
This guide has shown you new networking tools that are meant to replace the obsolete net-tools package. Although you can still use net-tools on Linux, they have not been maintained for long and pose some security risks. The new iproute2 networking tools are robust and, in most cases, faster than their predecessors.
You can use these commands to fix network issues and troubleshoot your Internet on Linux-based operating systems.