问题
从debian stretch版本开始,默认情况下,默认情况下缺少了ifconfig
命令。
# ifconfig -bash: ifconfig: command not found
用于检查Debian Linux上的网络配置命令换成了 “IP”命令。
例如,使用ip
命令来显示网络配置:
# ip address
上面的ip
命令可以缩写为:
# ip a
如果我们还是想用ifconfig,那么需要安装“Net-Tools”包。
安装ifconfig命令
使用apt-get
命令安装net-tools
包:
# apt-get install net-tools
日期:2020-07-07 20:56:05 来源:oir作者:oir