使用 Virtualbox 无法访问目标主机

使用 Virtualbox 无法访问目标主机

我只需要能够从主机调用客户端上的服务,反之亦然,不幸的是我无法让它工作。

主机:Windows 7 专业版

客户端:Windows 7 Professional,带有 Guest Additions 4.3

我已经设置了仅主机网络。

主机 ipconfig:

Ethernet adapter Ethernet:
Link-local IPv6 address . . . : fe80::2901:db57:33a3:d585%11
IPv4 Address: 192.168.1.150
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.250

Ethernet Virtualbox Host-only Network: 
Link-local IPv6 address . . . : fe80::c4f6:a7be:24ae:59e7%13
IPv4 Address . . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . . :

...

客户端 ipconfig:

IPv4 Address: 192.168.56.101
Subnet Mask: 255.255.255.0
Default Gateway:

...

客户端上的防火墙已关闭,并且没有防病毒软件。当我尝试从客户端 ping 主机时,它显示

ping 192.168.56.1
Reply from 192.168.56.101: Destination host unreachable

从主机 ping 客户端时出现类似消息。我想问一下问题可能出在哪里。如能提供任何建议我将不胜感激。

编辑:路线打印

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask         Gateway        Interface Metric
          0.0.0.0          0.0.0.0    192.168.1.250    192.168.1.150    266
        127.0.0.0        255.0.0.0       On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255       On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255       On-link         127.0.0.1    306
      192.168.1.0    255.255.255.0       On-link     192.168.1.150    266
    192.168.1.150  255.255.255.255       On-link     192.168.1.150    266
    192.168.1.255  255.255.255.255       On-link     192.168.1.150    266
     192.168.56.0    255.255.255.0       On-link      192.168.56.1    266
     192.168.56.1  255.255.255.255       On-link      192.168.56.1    266
   192.168.56.255  255.255.255.255       On-link      192.168.56.1    266
        224.0.0.0        240.0.0.0       On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0       On-link     192.168.1.150    266
        224.0.0.0        240.0.0.0       On-link      192.168.56.1    266
  255.255.255.255  255.255.255.255       On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255       On-link     192.168.1.150    266
  255.255.255.255  255.255.255.255       On-link      192.168.56.1    266
===========================================================================
Persistent Routes:
  Network Destination      Netmask          Gateway   Metric
          0.0.0.0          0.0.0.0    192.168.1.250  Default
===========================================================================

相关内容