在CentOS Linux上默认弃用了ifconfig
命令
# ifconfig bash: /usr/sbin/ifconfig: No such file or directory
在CentOS Linux上检查网络配置使用的是新的IP
命令。
例如要使用ip
命令来显示网络配置运行以下内容:
# ip address
上面的ip
命令可以缩写为:
# ip a
如果还想使用ifconfig命令,使用yum
命令安装net-tools
包:
# yum install net-tools
日期:2020-07-07 20:56:22 来源:oir作者:oir