在虚拟机下安装的centos7使用的网络是NAT模式,安装成功后ping主机地址显示 Network is unreachable

解决方案:

1)使用ifconfig命令查看网卡信息

NAT 模式下虚拟机安装的centos7 ping主机显示connect: Network is unreachable

2)进入/etc/sysconfig/network-scripts/ 查看这下面的文件

NAT 模式下虚拟机安装的centos7 ping主机显示connect: Network is unreachable

3)vi ifcfg-ens33 修改其中的ONBOOT=no 改成ONBOOT= yes

4)重启服务

systemctl restart network.service

相关文章:

  • 2021-12-15
  • 2022-12-23
  • 2021-07-16
  • 2021-08-25
  • 2021-08-19
  • 2021-06-20
  • 2021-07-08
  • 2021-12-15
猜你喜欢
  • 2021-05-25
  • 2021-07-06
  • 2021-06-27
  • 2021-07-10
  • 2021-11-28
  • 2021-10-31
相关资源
相似解决方案