Open In App

Deprecated Linux Networking Commands and Their Replacements

Last Updated : 09 May, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

In this article, let us have a close look at some networking commands that are deprecated. That means they are not provided by default and replaced by other commands that serve the same purpose.

But please note that these commands can still be executed by first downloading the net-tools package onto the machine.

sudo apt-get install net-tools
  • These commands(except iwconfig) are included in the net-tools package and that is the reason why you can see the output of these commands in this article, as we installed the net-tools package on our Linux machine, but if you try these commands on your machine without executing the above-mentioned, command you will receive “Command: not found” error.
  • We will show outputs of both depreciated and their respective replacements in order to get you better insights about their use.
  • So let us understand for what purpose each depreciated command is used and also see what their existing versions are, we can use on behalf of these depreciated commands.

Depreciated Commands and their replaced commands

Depreciated Command  Replaced Command
arp ip n
ipconfig ip a, ip link, 
iwconfig iw
nameif ip link
netstat  ss
route ip r 
iptunnel ip tunnel 

Let’s have a brief description of the deprecated commands and their replacements.

1. arp: arp command is used mainly for altering the system’s ARP cache. The full-form for ARP is Address Resolution Protocol and its job is to resolve the IP address of a system to its mac address.

Command:

$ arp

Output:

Replacement command for arp

ip n (ip neighbour): This Command is the depreciated version of arp command. Here, generally, IP stands for internet protocol. This command is mainly used for routing devices and tunnels.

Command :

$ ip n

Output :

2. ifconfig: The main job of this command is to check the configuration of kernel-resident network interfaces. At boot time, its main use is to set up interfaces as required.

Command :

$ ifconfig  

Output : 

Replacement Commands for ifconfig

  • ip a(ip addr): This command is used for looking at the IP configuration of the machine.

Command:

$ ip a 

Output:

  • ip link: This command assists users in viewing and modifying network interfaces.

Command :

$ip link

Output :

3. iwconfig: This command functions similarly to ifconfig but is solely dedicated to wireless interfaces and is used to configure parameters for network interfaces that work specifically for wireless operations.

Command :

$ iwconfig 

Output :

Replacement Command for iwconfig

iw: This is a newer command which performs the same operations executed by iwconfig.

Command:

$ iw 

Output:

4. nameif: This command is used for renaming interfaces based on mac addresses when no arguments given, /etc/mactab is read.

Command:

$ nameif 

Output:

Replaced Command for nameif

ip link: This Command has replaced the version of nameif which is used to display and modify network interfaces.

Command:

$ ip link  

Output:

5. netstat: This Command is used for printing out the Linux networking subsystem. By default, it prints out the list of open sockets.

Command :

$ netstat 

Output:

Replaced Command for netstat

ss: This command is used to dump socket statistics, it allows showing information similar to netstat command.

Command:

$ ss 

Output: 

6. route: The main job of this command is to match packets based on routing table entries. This filter centers around the possibility of assigning a realm around routing table entries.  

Command:

$ route 

Output:

Replaced Command for route

ip r: This command is a replaced version of the route command which shows table routes.

Command :

$ ip r 

Output:

7. iptunnel: This command is used for the creation of configured tunnels for transmission of IPV6 or IPV4 packets (both sending and receiving), which are encapsulated in the form of a payload for an IPV4 diagram. 

Command:

$ iptunnel 

Output:

Replaced Command for iptunnel 

ip tunnel: This command is the replaced version of the iptunnel command, which performs the same operations i.e configuring tunnels to allow seamless transportation of IPV6 or IPV4 packets. 

Command : 

$ip tunnel add  

Output:


Previous Article
Next Article

Similar Reads

Basic CentOS Linux Commands in linux
CentOS is a free and open-source operating system that aims to provide a stable reliable, and community-supported platform for servers and other enterprise applications. In this article, we will be covering CentOS Linux basics commands and functions of CentOS and also we will look into the advanced commands. These CentOS commands allow you to manag
4 min read
Linux Networking Tools
One can use a variety of network tools to perform tasks such as obtaining information about other systems on your network, accessing other systems, and communicating directly with other users. Network information can be obtained using utilities such as ping, finger, traceroute, host, dig, nslookup etc. These are useful for smaller networks and enab
3 min read
Configuring IP Networking with nmtui in linux
In Linux, the configuration of IP networking is important for maintaining unique IP addresses for each system. We configure our IP for data exchange and serving purposes. nmtui is a user-friendly tool that simplifies the configuration of IP addresses. It is a text-based interface for configuring IP addresses. While commands can be used to configure
6 min read
Internal and External Commands in Linux
The UNIX system is command-based i.e things happen because of the commands that you key in. All UNIX commands are seldom more than four characters long. They are grouped into two categories: Internal Commands : Commands which are built into the shell. For all the shell built-in commands, execution of the same is fast in the sense that the shell doe
4 min read
Useful and time saving bash commands in Linux
There are many useful bash scripts that can make things easier. Many things can be done just using the terminal. Here is a list of some of such useful bash scripts through which we can do things that cannot be done manually. 1. Counting the number of files(or directory) in a given directory: Go to the directory in which you want to count the number
3 min read
halt, poweroff and reboot Commands in Linux
Below are typical uses of halt, poweroff and reboot. halt : Instructs hardware to stop CPU functions. poweroff : Instructs the system to power down. reboot : Restarts or reboots the system. The above mentioned commands can only be run by super user as these involve the actions to stop the system hardware. If the user is not logged in as super user
2 min read
Python | Execute and parse Linux commands
Prerequisite: Introduction to Linux Shell and Shell Scripting Linux is one of the most popular operating systems and is a common choice for developers. It is popular because it is open source, it's free and customizable, it is very robust and adaptable. An operating system mainly consists of two parts: The kernel and the Shell. The kernel basically
6 min read
List All Available Commands and Aliases in Linux
There might be sometimes a need to list all the commands and aliases supported by the current system. As we already know, an alias is a custom shortcut that references a command. It can be very useful to replace long commands with a small alternative command. While a command is a program that we can run in the terminal to produce some output or cha
3 min read
Important Linux Commands (leave, diff, cal, ncal, locate and ln)
Linux provides some important tricks. Here are a few and important one's: leave — remind you when you have to leave Syntax: leave +hhmm leave waits until the specified time (within the next 12 hours), then reminds you that you have to leave by writing to the TTY that you executed leave on. You are reminded 5 minutes and 1 minute before the actual t
2 min read
Linux System Monitoring Commands and Tools
Monitoring the performance and health of a Linux system is essential for maintaining its stability and optimizing resource utilization. Linux provides a variety of commands and tools to facilitate system monitoring, enabling administrators to track key metrics, identify potential issues, and ensure efficient operation. Linux offers a robust set of
6 min read
Article Tags :