zoukankan      html  css  js  c++  java
  • VM 与主机不通的解决方法



    [root@localhost network-scripts]# ping 192.168.1.222
    PING 192.168.1.222 (192.168.1.222) 56(84) bytes of data.
    From 192.168.1.101 icmp_seq=1 Destination Host Unreachable
    From 192.168.1.101 icmp_seq=2 Destination Host Unreachable
    From 192.168.1.101 icmp_seq=3 Destination Host Unreachable
    From 192.168.1.101 icmp_seq=5 Destination Host Unreachable
    From 192.168.1.101 icmp_seq=6 Destination Host Unreachable
    From 192.168.1.101 icmp_seq=7 Destination Host Unreachable


    [root@localhost network-scripts]# service network restart
    关闭环回接口:                                             [确定]
    SIOCGIFFLAGS: No such device
    弹出环回接口:                                             [确定]
    弹出界面 eth0: 
    正在决定 eth0 的 IP 信息...失败;无链接。检查电缆吗?
                                                               [失败]

    ===================================================================

    windows主机的两个服务必须开启:VMware DHCP Service 和VMware NATService. 

    具体操作如下:

    开始——设置——控制面板——管理工具——服务,

    确保 VMwareDHCP Service和VMware NAT Service服务已经启动。


    [root@localhost network-scripts]# service network restart
    正在关闭接口 eth0:                                        [确定]
    关闭环回接口:                                             [确定]
    SIOCGIFFLAGS: No such device
    弹出环回接口:                                             [确定]
    弹出界面 eth0: 
    正在决定 eth0 的 IP 信息...完成。
                                                               [确定]
    [root@localhost network-scripts]# ping 192.168.1.222
    PING 192.168.1.222 (192.168.1.222) 56(84) bytes of data.
    64 bytes from 192.168.1.222: icmp_seq=1 ttl=128 time=1.23 ms
    64 bytes from 192.168.1.222: icmp_seq=2 ttl=128 time=2.23 ms
    64 bytes from 192.168.1.222: icmp_seq=3 ttl=128 time=1.47 ms
    64 bytes from 192.168.1.222: icmp_seq=4 ttl=128 time=1.88 ms
    64 bytes from 192.168.1.222: icmp_seq=5 ttl=128 time=0.706 ms





  • 相关阅读:
    codeforces570D Tree Requests
    codeforces600E Lomsat gelral
    BZOJ2001 [Hnoi2010]City 城市建设
    BZOJ2565 最长双回文串
    BZOJ4031 [HEOI2015]小Z的房间
    BZOJ2467 [中山市选2010]生成树
    SPOJ104 HIGH
    爆零系列—补题A
    DP一直是自己的弱势 开始练滚动数组——HDOJ4502
    HDOJ4550 卡片游戏 随便销毁内存的代价就是wa//string类的一些用法
  • 原文地址:https://www.cnblogs.com/roger0212/p/4436688.html
Copyright © 2011-2022 走看看