Hyper-V vm 可以 ping 通主机,但是主机无法 ping 通 Hyper-V vm?

Hyper-V vm 可以 ping 通主机,但是主机无法 ping 通 Hyper-V vm?

当从 hyper-v VM ping 主机时,它可以同时使用 ipv4 和 ipv6。

Pinging MyHost [fe80::3549:ee49:a75c:619c%9] with 32 bytes of data:
Reply from fe80::3549:ee49:a75c:619c%9: time<1ms
Reply from fe80::3549:ee49:a75c:619c%9: time<1ms
Reply from fe80::3549:ee49:a75c:619c%9: time<1ms
Reply from fe80::3549:ee49:a75c:619c%9: time<1ms

Ping statistics for fe80::3549:ee49:a75c:619c%9:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

从主机 ping Hyper-V VM 时,ipv4 超时。

Pinging win-hyperv [192.168.1.126] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.1.126:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

并且 ipv6 得到了

Ping request could not find host win-hyperv. Please check the name and try again.

为什么主机使用 IPv4 而另一端使用 IPv6?

答案1

您是否检查过虚拟机上的基于主机的防火墙?它是否允许 ICMP 流量?这可以解释为什么虚拟机可以 ping 通主机,但反过来却不行

答案2

如果您检查了防火墙、子网、适配器,并且有单向 ping,请检查您的本地组策略。

开始>gpedit.msc>计算机管理>Windows 设置>安全设置>本地策略>用户权限分配>拒绝从网络访问此计算机双击,从此策略中删除您的帐户。

相关内容