host主机无法ping通 vmware虚拟机的地址

发布时间 2023-08-23 14:56:46作者: ChuckLu
  1. Open the Windows Firewall with Advanced Security.
  2. In the left pane, click on Inbound Rules.
  3. In the right pane, click on New Rule.
  4. In the Rule Type dialog box, select Custom rule.
  5. In the Program dialog box, select This program path and enter the full path to the VMware Client executable file.
  6. In the Profile dialog box, select the profiles that you want the rule to apply to.
  7. In the Action dialog box, select Allow the connection.
  8. In the Conditions dialog box, you can specify additional conditions that the rule must meet.
  9. Click on the Next button.
  10. In the Name dialog box, enter a name for the rule.
  11. Click on the Finish button.

 

上面漏掉了设置协议和端口的步骤

To set the protocols and ports for the rule, you need to go to the Protocol and Ports dialog box. In this dialog box, you can select the protocols and ports that you want the rule to apply to.

For ping requests, you need to select the ICMPv4 protocol and the Any port.

Once you have selected the protocols and ports, click on the Next button.

The next dialog box will allow you to specify the scope of the rule. The scope determines which computers and IP addresses the rule will apply to.

For this rule, you can leave the scope as Any.

Click on the Next button to proceed.

The next dialog box will allow you to specify the action that the firewall should take when a connection matches the rule. For this rule, you should select Allow the connection.

Click on the Next button to proceed.

The next dialog box will allow you to specify a name for the rule. You can enter any name that you want.

Click on the Finish button to create the rule.

The new rule will be added to the Windows Firewall. This rule will allow ping requests to the VMware Client.