问题
I am putting together a SVN demonstration using a WinXP Virtual PC image, and am unable to see my host machine from within the VPC guest OS.
This demo will be performed while disconnected from our LAN, so I installed the Microsoft Loopback adapter on my laptop. In the TCP/IP settings I manually set the IP address to 192.168.3.1 to avoid conflicts with our internal network. In the VPC image settings I set the Network Type to Microsoft Loopback Adapter and set the IP address to 192.168.3.2.
I cannot ping my host machine from the guest OS and vice versa. I've followed through several different how-to pages on this subject but still cannot determine why this isn't working. What am I missing here?
回答1:
It might just be because by default Windows XP Firewall blocks ping requests.
To enable pings do the following:
- Open Windows Firewall in the Control Panel
- On the General tab check Windows Firewall is On. If it's Off you're probably using another firewall and will need to configure that.
- On the Advanced tab click the Settings button under ICMP.
- Tick the box next to Allow incoming echo request.
- Click OK on the ICMP dialog.
- Click OK on the Wndows Firewall dialog.
回答2:
So your host machine's loopback is set to 192.168.3.1 (subnet 255.255.255.0, gateway 192.168.3.1) and your VM's network adapter is set to 192.168.3.2 (subnet 255.255.255.0, gateway 192.168.3.1)? They should be able to see each other, there's not much else to this setup.
I'd shake things up:
- Install the VM additions, maybe the network driver that comes with the guest OS isn't cutting it.
- Try a different subnet, maybe 192.168.22.1.
- Disable your host machine's other network adapters for a bit, maybe packets are getting routed elsewhere.
回答3:
Just make sure that firewalls are off the only reason not able to ping Microsoft loop back adapter is some antivirus software is obsolete so make It updated or else just remove it from add/remove programs then go to control panel and select firewall just make sure firewall should be in off then only we can ping from virtual pc to host Microsoft loopback adapter.....just check it out
来源:https://stackoverflow.com/questions/197792/how-to-connect-to-host-machine-from-within-virtual-pc-image