简体   繁体   English

在主机和来宾 VMWare 之间建立直接网络

[英]Set up a Direct Network between Host and Guest VMWare

I have a Soft PLC running inside a VMWare environment (Guest - Windows 8).我有一个在 VMWare 环境中运行的软 PLC(来宾 - Windows 8)。 I want to connect to it from the Host (Windows 10) using the internal connections without having to set up a physical network switch.我想使用内部连接从主机(Windows 10)连接到它,而无需设置物理网络交换机。 My understanding of the documentation states that this should be achieved by Host only networking https://docs.vmware.com/en/VMware-Workstation-Player-for-Windows/15.0/com.vmware.player.win.using.doc/GUID-93BDF7F1-D2E4-42CE-80EA-4E305337D2FC.html我对文档的理解表明,这应该通过仅主机网络https://docs.vmware.com/en/VMware-Workstation-Player-for-Windows/15.0/com.vmware.player.win.using.doc来实现/GUID-93BDF7F1-D2E4-42CE-80EA-4E305337D2FC.html

And I've my PC Set up as:我的电脑设置为:

VMWare 网络设置

The Network card in the Guest is set up as 192.168.0.244 On the Host, the network VMNet1 (Should be the DHCP Server) is Dynamic (DHCP) and resolved to 192.168.67.1 and VMNet8 (Should be the connection to the Guest) is also DHCP and has resolved to 192.169.73.1 All subnet masks are at 255.255.255.0 (DHCP defined?)来宾中的网卡设置为 192.168.0.244 在主机上,网络 VMNet1(应该是 DHCP 服务器)是动态(DHCP)并解析为 192.168.67.1 和 VMNet8(应该是到来宾的连接)是也 DHCP 并已解析为 192.169.73.1 所有子网掩码都在 255.255.255.0 (DHCP 定义?) 主机 IP

Even if I assign VMNet8 or VMNet1 to physical IP at 192.169.0.1 or 192.169.0.244 or 192.169.0.1 or even 192.168.0.12, I cannot ping the network card inside the host.即使我将 VMNet8 或 VMNet1 分配给位于 192.169.0.1 或 192.169.0.244 或 192.169.0.1 甚至 192.168.0.12 的物理 IP,我也无法 ping 主机内的网卡。

Am I missing something here with my setup?我的设置是否遗漏了什么? What am i doing wrong or has anyone got a step by step process for setting up a direct network connection between the Guest and host for testing communications without an external switch?我做错了什么,或者有人有一步一步的过程来建立访客和主机之间的直接网络连接,以便在没有外部交换机的情况下测试通信?

(I've disabled teh network connections between each setting change) (我已禁用每次设置更改之间的网络连接)

Found the issue.发现问题。 The VM should have been set to NAT虚拟机应已设置为 NAT 虚拟机网络设置 The Network address of the adapter Inside the Guest set to the IP address I'm looking for客户内部适配器的网络地址设置为我正在寻找的 IP 地址客户机操作系统上适配器的 IP V4 设置 On my Host - VMNet 1 left alone as this is the DHCP Server在我的主机上 - 单独留下 VMNet 1,因为这是 DHCP 服务器来自主机的 VMNet1 And set the VMNet 8 (Bridged connection between Guest and Host) to an IP address within a range of the subnet并将 VMNet 8(Guest 和 Host 之间的桥接)设置为子网范围内的 IP 地址来自主机的 VMNet 8 And after disabling and re-enabling the connections, I can ping the PLC (192.168.0.1) running in simulation on the Guest from outside in the Host.在禁用和重新启用连接后,我可以从主机外部 ping 在客户机上模拟运行的 PLC(192.168.0.1)。 (Allows me to test node-red on the host connecting via OPC to PLCSim Advanced running on the Guest). (允许我在通过 OPC 连接到客户机上运行的 PLCSim Advanced 的主机上测试 node-red)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM