ifconfig: command not found

环境openSUSE Leap 15.1
问题:
-bash: ifconfig: command not found

网上查到的都是让下载net-tools包,但是我下载了依然没有ifconfig等命令

zypper install net-tools
解决办法

查看官网才知道 这些命令在高版本的openSUSE已经被deprecated了,而是直接改iproute2包,当然你也可以下载net-tools-deprecated包,这样有ifconfig了。

zypper install iproute2

或者用老包

zypper install net-tools-deprecated

https://software.opensuse.org/ymp/openSUSE:Leap:15.1/standard/net-tools-deprecated.ymp?base=openSUSE%3ALeap%3A15.1&query=net-tools-deprecated

This package contains the deprecated network utilities arp, ifconfig, netstat and route,
which have been replaced by tools from the iproute2 package:
  * arp -> ip [-r] neigh
  * ifconfig -> ip a
  * netstat -> ss [-r]
  * route -&gt; ip r<
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。