Communication between the local win7 System and the Linux System in the Virtual Machine

Source: Internet
Author: User
Communication between the 32-bit flagship edition of win7 and the Red Hat Linux system installed in the win7 Virtual Machine

See the following articles for Configuration:

Http://wenku.baidu.com/view/3c7fb2f8770bf78a6529545a.html

 

Http://wenku.baidu.com/view/7aebea0b581b6bd97f19ea06.html

 

 

 

The procedure is as follows:
1. Configure the Virtual Machine Network Connection Mode
Open the virtual machine, open the settings, and select the NAT mode for the network connection in the network adapter.

 

2. Open the network sharing center in win7, change the network adapter, and set the IP address of VMware network adapter vmnet8

 

Note: If the VMware network adapter vmnet1 and vmnet8 prompts that the network is not recognized, see

Http://wangxiaofei5o.blog.51cto.com/209546/637705this blog can be modified.

3. Configure the network of Red Hat Linux
Configure the network in Linux
First:
1) Go to the Linux system, click Red Hat, select system settings, and select Network.

2) after entering the network, double-click the eth0 Device

3) Go to the Ethernet device configuration box, select Dynamic IP Address Settings, enter the corresponding IP address and gateway, and click OK after the allocation.

4) active the device

Method 2: Use commands
1) Enter netconfig on the terminal. the pop-up dialog box appears,

2) Select Yes to enter the IP settings

3) Enter ipsettings
4) Reload the service: Service Network reload

4. Test whether communication can be performed. Open the command window in win and run Ping.
You can ping the Linux System in the VM as follows.

C: \ Users \ ThinkPad> Ping 192.168.141.123

Pinging 192.168.141.123 with 32 bytes of data:
Reply from 192.168.141.123: byte = 32 time = 4 Ms TTL = 64
Reply from 192.168.141.123: byte = 32 time <1 ms TTL = 64
Reply from 192.168.141.123: byte = 32 time <1 ms TTL = 64
Reply from 192.168.141.123: byte = 32 time <1 ms TTL = 64

Ping statistics for 192.168.141.123:
Packet: Sent = 4, received = 4, lost = 0 (0% lost ),
Estimated round-trip time (in milliseconds ):
Minimum = 0 ms, maximum = 4 ms, average = 1 ms

Of course, Ping can also be performed in Linux.

Note:
Differences between VMware network adapter vmnet1 and VMWare network adapter vmnet8
The vmnet1 Nic corresponds to the host-only service in the Virtual Machine network connection mode;
Vmnet8 corresponds to the NAT mode.
Because I use NAT for communication, I need to configure the VMware network adapter vmnet8 IP address.
If I do not configure VMware network adapter vmnet8, change it to automatically get the IP address, and configure the IP address of VMware network adapter vmnet1 to be within the same segment as the virtual machine. The ping operation is as follows:
At the beginning, I only configured VMware network adapter vmnet1, so I couldn't ping it.
C: \ Users \ ThinkPad> Ping 192.168.141.123

Pinging 192.168.141.123 with 32 bytes of data:
Request timeout.
Request timeout.
Request timeout.
Request timeout.

Ping statistics for 192.168.141.123:
Packet: Sent = 4, received = 0, lost = 4 (100% lost ),

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.