Windows 7 XP模式下的网络通信
为了测试 UDP 设备发现功能而不需要在我的办公桌上放置单独的计算机,我想通过让它找到在我的 Windows 7 计算机上的“XP 模式”虚拟 PC 窗口中运行的应用程序来测试它。
但是,我很难让两者相互可见。默认情况下,当我的Windows 7和XP的网络适配器属性都设置为“自动获取IP地址”时,它们分配的IP地址分别为192.168.2.2和192.168.131.65,子网掩码均为255.255.255.0。由于它们位于不同的子网中,因此它们无法看到对方,并且我无法从一个子网 ping 到另一个子网。
但是,即使我将两者更改为同一子网上的静态 IP 地址(例如 10.0.0.1 和 10.0.0.2),它们似乎仍然无法看到对方,而且我仍然无法 ping 通。当然,我已确保在这两种情况下都关闭防火墙。
有没有办法让这个工作成功,或者我在这里什么都躲起来了?
谢谢, 史蒂芬.
To test a UDP device discovery function without needing a separate computer on my desk, I'd like to test it by making it find an application running in the 'XP mode' virtual PC window on my Windows 7 machine.
However, I'm having difficulty getting the two to be visible to one another. By default, when both my Windows 7 and XP properties for the network adapter are set to "Obtain an IP address automatically", their assigned IP addresses are respectively 192.168.2.2 and 192.168.131.65, both with subnet masks of 255.255.255.0. As they're on different subnets, they can't see each other and I can't ping from one to the other.
However, even if I change both to static IP addresses on the same subnet (e.g. 10.0.0.1 and 10.0.0.2), they still can't seem to see each other and I still can't ping. I have of course ensured that the firewalls are turned off in both contexts.
Is there a way of making this work, or am I on a hiding to nothing here?
Thanks,
Stephen.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通过更改 XP 模式网络选项解决了这个问题,如所述 此处,从“共享网络 (NAT)”到计算机的物理适配器。这让我在 Windows 7 和 XP 中的 IP 地址分别为 192.168.1.70 和 192.168.1.71,并且它们之间的 ping 不受限制(只要我检查防火墙)。
I solved it by changing the XP mode networking options, as described here, from "Shared networking (NAT)" to the machine's physical adapter. This gave me IP addresses in Windows 7 and XP of 192.168.1.70 and 192.168.1.71 respectively, and uninhibited pinging between them (so long as I kept the firewalls in check).
按照以下步骤为 Windows XP 虚拟机配置特定 NIC 卡的使用。
步骤 1
要将 Windows XP 模式 VM 配置为使用特定 NIC 卡而不是默认 NAT,请右键单击您的 WinXP VM 以显示弹出菜单。选择设置。
第 2 步
在左栏中选择“网络”。在此示例中,我们从下拉列表中选择 NIC 卡。点击“确定”。
现在,启动您的 WinXP 虚拟机。通过控制面板中的网络设置配置特定的 IP 设置。
Follow these steps to configure the use of a specific NIC card for your Windows XP Virtual Machine.
Step 1
To configure the Windows XP Mode VM to use a specific NIC card rather than the default NAT, right-click your WinXP VM to display the pop up menu. Choose Settings.
Step 2
Select Networking in the left column. In this example, we select the NIC card from the drop down list. Hit OK.
Now, start up your WinXP VM. Configure it's IP settings that is specific through the Network Settings found in Control Panel.