Error: /usr/sbin/ifconfig: No such file or directory [SOLVED]

2020-09-01 11:34:18  阅读 923 次 评论 0 条

Reading Time: < 1 minute

Pre-Flight Check
  • These instructions are intended specifically for solving the error: /usr/sbin/ifconfig: No such file or directory

  • I’ll be working from a Liquid Web Self Managed CentOS 7 server, and I’ll be logged in as root.

There are several commonly used, but deprecated, Linux networking commands, including: arp, ifconfig, iptunnel, iwconfig, nameif, netstat, and route. Here, we deal with what to do if you run across the error specific to ifconfig: /usr/sbin/ifconfig: No such file or directory.

Option #1: Use the Command ‘ip’

ip a

or

ip addr

Both display details on all network interfaces, just as ifconfig would.

Option #2: Install net-tools

As a matter of best practice we’ll update our packages:

yum -y update

Then let’s install ifconfig, which is apart of the package net-tools, and any other required packages:

yum -y install net-tools


本文地址:https://175.es/blog/post/644.html
免责声明:本文为原创文章,版权归 人潮中惊鸿一瞥 所有,欢迎分享本文,转载请保留出处!

发表评论


表情

还没有留言,还不快点抢沙发?