Many people will encounter a problem when they start to access linux or embedded development, that is, how to ping the same windows in linux, and many books will not introduce this as a previously certain knowledge, as a result, many people are depressed. Here is a brief introduction to the method. First, I will introduce my computer: www.2cto.com physical machine: Windows 7 Virtual Machine System: Linux (Red Hat Enterprise 5, that is, RHEL 5) Virtual Machine version: VM 8.0.1 (my English version)
Step 1: Set Your VMware instance: Select VM> setting> Hardware> Network Adapter to select NAT as the Network connection on the right, click OK. If you are using the Chinese version, you can compare it with www.2cto.com.
Step 2: Check the IP address of your VM8 virtual network card in windows by starting from attachment to running (if you are using an XP system, start from running ), enter cmd and enter a windows command line. Enter ipconfig and find the VM8 Nic. Remember the IPV4 address. Why is it VM8 instead of VM1? The reason is that we selected the NAT network connection method, which is the VM8 Nic by default. You can also press the windows logo key + R to display the interface. The following is a demo image: Enter cmd in this interface and then: view the commands in the image and follow the input instructions, the windows ip address information will be displayed. Now you will see the VM1 and VM8 information. Next, you should check the IP address information in Linux, it is a little different from windows. The following is how to set the Linux IP Address: The first red line is the setting command. How to set it: it is to set the IP address in Linux to a CIDR Block in windows. To put it bluntly, the last IP address is different (for you are a class c ip address), but it is best to be similar. Like mine, my Windows is 192.168.241.1, so I can set Linux to 192.168.241.2.
The second red line is the ping command: by default, the ping status is always running. If you want to finish the operation, press ctrl + c. Under what circumstances does it mean Unicom? If you see icmp_seq =, ttl = 128, time =, if you see the same result as me, you are right.
Next, ping Linux in Windows: the end is also ctrl + c so far. You should know how to ping Windows in Linux, you can also ping Linux in Windows.