yum search ifconfig
By this command yum search we found ifconfig This command is net-tools.x86_64 this package, then we install the package on the line
Run yum install net-tools on OK
Reproduced in: https: //www.cnblogs.com/httpssl/p/11055037.html