How to cancel the ban ping command in Win7 system?

  

When I ping the ip of the machine in the Linux system of the virtual machine, I found that the ping is unreachable, and the machine can ping the ip in the virtual machine. It should be for security reasons, Win7 is disabled by default in the firewall.

1. View host ip

Open “Start”"attachment" in the program, find “command prompt”open. Enter the command: ipconfig, you can see that the ip of the machine is 192.168.0.111, the gateway is 192.168.0.1

2, check the ip

of the system in the virtual machine in the ubuntu system Open the terminal, enter the command: ifconfig, note: the ipconfig command under windows system 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

Enter the command at the command prompt: ping 192.168.0.101 , see that the ping has been pinged, and the packet is received normally.

4. Ping the ip of the machine in the virtual machine system

Enter the command in the terminal: ping 192.168.0.111, and wait for a long time without pinging.

5. Ping the gateway in the virtual machine system

Because the ping fails, check if the gateway can ping. If the gateway can ping, the problem is that the settings on this machine may prevent others from pinging it. Enter the command at the terminal: ping 192.168.0.1, and you can see that the gateway can be pinged normally.

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 to enter “Advanced Settings", select “Inbound Rules”.


3). Find the "File and Printer Sharing (Echo Request - ICMPv4-In)" option in the Getting Started Rules.

See two items. Both are not enabled. Right click on the two items and select “Enable Rules”.


7. Ping the ip of the machine in the virtual machine system

After the modification is completed, return to the virtual machine system and enter the command in the terminal: ping 192.168 .0.111, you can see that it can be pinged normally.

Note: The command to view ip in linux system is ifconfig, and the command to view ip in windows system is ipconfig.

Related recommendation:

Resolve Win7 can not lock the program to the taskbar or attach to the start menu

win7 computer can not find the system administrator Administrator account solution

Copyright © Windows knowledge All Rights Reserved