ifconfig: command not found

2019-12-11  本文已影响0人  CitizenA_
环境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<
上一篇 下一篇

猜你喜欢

热点阅读