CentOS7最小化安装解决不能使用ifconfig命令

在最小化安装的CentOS7中,ifconfig是不能使用的,查看网卡信息的命令是ip addr

 

其中“ens33”为网卡名称,修改IP地址等信息  

vi /etc/sysconfig/network-scripts/ifcfg-ens33

 修改好后保存退出,并重启网络,测试网络是否连接正常:

 

 安装ifconfig命令

yum provides ifconfig 或 yum whatprovides ifconfig

ifconfig命令依赖于net-tools的,安装 yum install -y net-tools

 

详情链接  https://blog.csdn.net/hellboy0621/article/details/80392273

 

 
posted @ 2019-12-19 22:22  红尘年少  阅读(767)  评论(0)    收藏  举报