windows解除禁ping/icmp回显与vmware配置/查看仅主机模式网关
防火墙高级设置--入站规则--回显请求-icmp
或cmd命令行(待验证):
# 允许 ICMPv4 请求 netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow # 允许 ICMPv6 请求 netsh advfirewall firewall add rule name="ICMP Allow incoming V6 echo request" protocol=icmpv6:8,any dir=in action=allow
# 禁用 ICMPv4 请求 netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=block # 禁用 ICMPv6 请求 netsh advfirewall firewall add rule name="ICMP Allow incoming V6 echo request" protocol=icmpv6:8,any dir=in action=block
# 删除规则 netsh advfirewall firewall delete rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in
vmware配置仅主机网络:注意虚拟网络vmnet名称的一致性