The ip Command v/s the ifconfig Command
The ip command replaces the ifconfig command. In earlier versions of Linux, the ifconfig command was the default utility for checking and verifying IP configuration. However, the ifconfig command does not support many modern features that were irrelevant earlier.
The ifconfig command is deprecated. Although some Linux distributions still include the ifconfig command for backward compatibility in their current version, they may consider gradually removing it from their upcoming versions. Because of this, even if the ifconfig command is still available on some Linux distributions, you should use the ip command for all IP validation and verification-related tasks. It meets the requirements of modern networks.
The following table lists how to perform some common tasks using both commands.
| ifconfig command | Task | ip command |
| ifconfig | Show ip configuration of all interfaces | ip address show |
| ifconfig [interface] | Show ip configuration of the specified interface | ip address [interface] |
| ifconfig [interface] down | Bring the specified interface down | ip link set [interface] down |
| ifconfig [interface] | up Bring the specified interface up | ip link set [interface] up |
| ifconfig [interface] [ip address] ifconfig [interface] [subnet mask] | Assign a temporary IP address to the specified interface | ip address add [ip address/subnet mask] dev [interface] |
The following image shows how to list the IP configuration of all interfaces using both commands.

The following image shows how to change the link state information of an interface using both commands.

The following image shows how to assign a temporary IP configuration on an interface using both commands.

This tutorial is part of the tutorial series Managing Basic Networking (RHCSA / RHCE) Study Guide. Other parts of this series are the following.
Chapter 01 Managing Basic Networking RHCSA Exam
Chapter 02 Predictable Consistent Network Device Naming
Chapter 03 Linux ip Address Command Usages and Examples
Chapter 04 Linux ip Command Cheat Sheet
Chapter 05 The ip Command v/s the ifconfig Command
Chapter 06 Understanding Linux Network Manager Fundamental
Chapter 07 Managing Linux NetworkManager
Chapter 08 Linux NetworkManager Tools and Utilities
Chapter 09 The nmcli Command on Linux Examples and Usages
Chapter 10 The nmtui Command and Utility on Linux
Chapter 11 The nm-connection-editor Command on Linux
Chapter 12 How to Configure IP Address in Linux
Chapter 13 How to Configure Multiple IP Addresses on Linux
Chapter 14 How to Configure IPv6 on Linux
Chapter 15 Basic Linux Commands for Network Testing
Chapter 16 Network Configuration Files in Linux Explained
Chapter 17 The /etc/hosts, /etc/resolv.conf, and /etc/nsswitch.conf Files
Chapter 18 How to Change the Hostname on Linux
Conclusion
The ifconfig command is deprecated. Some Linux distributions have removed it, while others still include it to provide backward compatibility. Regardless of whether the ifconfig command is available, you should always use the ip command.
By ComputerNetworkingNotes Updated on 2025-11-05