Always use the ifconfig command to view network connections in CentOS, including IP addresses, MAC addresses, and network connection status. After upgrading to CentOS 7, ifconfig cannot be found. Previously, this command has been deprecated and switched to the ip address command. The same thing happened in RHEL 7, Oracle Linux 7, and Scientific Linux 7 minimal versions.
In CentOS 7 minimal system, you can use "ip addr" and "ip link" to view network connections and their statuses, and use "ip-s link" to view statistics.
If you still want to use ifconfig, you need to install it yourself. First, you must know which package provides the ifconfig command,
Yum provides ifconfig
Or,
Yum whatprovides ifconfig
You can find the corresponding software package net-tools and install it,
Yum install net-tools
After installation, you can use ifconfig-a to view the network status.
Of course, this method can also be used to query other installation packages that want to use but cannot find the corresponding commands.
After deploying Linode VPS to CentOS 7, we found that CentOS 7 on Linode has been customized and contains commonly used commands that have been discarded in version 7, such as ifconfig, netstat, and iptables.