vmware中安装了contes,可是查看ip时,运行 ifconfig 命令报错:

ifconfig command not found

一、先解决联网的问题,编辑vi  /etc/sysconfig/network-scripts/ifcfg-ens33文件;

二、 ONBOOT=no 改为 ONBOOT=yes,然后保存退出;

 vmware中安装了contes--解决ifconfig无法执行

 

三、重启网卡 service network restart

四、执行下ping  www.baidu.com查看是否能访问网络

五、执行以下命令

[root@localhost sbin]# sudo yum install net-tools

六、再次执行ifconfig,成功

相关文章:

  • 2022-02-09
  • 2021-12-23
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2021-08-10
  • 2021-12-26
  • 2022-12-23
猜你喜欢
  • 2021-11-14
  • 2021-07-12
  • 2022-12-23
  • 2021-05-29
  • 2022-01-07
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案