1, view the host IP
Open the attachment in the start program and find the command prompt open. Input command: ipconfig, you can see this computer IP is 192.168.0.111, gateway is 192.168.0.1
2. View the IP of the system in the virtual machine
Open the terminal in the Ubuntu system, enter the command: ifconfig, note: And the Windows system under the ipconfig command is a letter. You can see that the IP address is: 192.168.0.101
3. Ping the IP in the virtual machine system in this machine
At the command prompt, enter the command: Ping 192.168.0.101 and see that you have ping and receive the packet normally.
4, in the virtual machine system ping native IP
Enter the command in the terminal: Ping 192.168.0.111, wait for a long time also did not ping pass.
5, in the virtual machine system Ping Gateway
Because the ping does not pass, see whether the gateway can ping pass. If the gateway can ping, the problem is that the settings on this computer may prevent someone from pinging it. In the terminal input command: Ping 192.168.0.1, see the normal ping pass gateway.
6, modify the firewall settings in this machine (Win7)
1. Open the Control Panel and click on the "System and security" option. Then, open Windows Firewall.
2. Click into "Advanced Settings" and select "Inbound rules".
3. Locate the File and Printer Sharing (Echo request-icmpv4-in) option in the Getting Started rule
Look, there are two items that are not enabled. Right-click on both items and select Enable rule.
7, in the virtual machine system ping native IP
After the modification is complete, go back to the virtual machine system and enter the command in the terminal: Ping 192.168.0.111, you can see that ping is ok.
Note: The command to view IP in the Linux system is ifconfig, and the command to view IP in the Windows system is ipconfig.