环境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
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 -> ip r<
网友评论