Network Configuration of vmvm

Source: Internet
Author: User
Network Configuration of vmmachine-general Linux technology-Linux technology and application information. The following is a detailed description. Author: forl
Host-host xp with virtual software installed
Vmvm-(RH linux 9 text interface)
S3C2410 (embedded ARM920T)

Virtual Devices after the virtual machine is installed:
After a virtual system is installed, VMware provides two virtual NICs: vmnet1 and vmnet8 (you can check whether the two NICs are added to the host network connection, the IP address is automatically allocated when the virtual system is installed.) There is also a virtual network Adapter "amd pcnet Family PCI Ethernet Adapter" on the virtual system"

Vmnet1 and vmnet8 are virtual devices on the master system. You can use the command ipconfig/all in DOS to view details, the "amd pcnet Family PCI Ethernet Adapter" is a virtual device on the virtual system. After the virtual system is installed, you can run the command lspci to view it in linux. The first two are affiliated to the real system. They are virtual devices in your real computer, and the last one is affiliated to the virtual system. Do not confuse them.

The VM network configuration has the following options:
(1) Bridged mode (we mainly choose the mode, which is also the default mode for configuring virtual machines)

In this way, you only need to know the IP address of the host. For example, if your IP address is 192.168.1.104, you only need to configure the linux IP address in the virtual system to be interconnected between the host and the virtual machine in the same network segment. For Linux text interface, you can run the command ifconfig eth0 192.168.1.*(0 ~ 255 remove the IP address already in use in the network segment ). There is also a method for configuring IP addresses to miss the xp ip Address Configuration. Enter the command setup on the linux interface to enter a selection interface, as shown in figure

  

(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blog.chinaunix.net/photo/58203_080309230236.jpg'); ">

Select Network configuration to go to the IP configuration page.

Note: At this time, the host and VM cannot communicate with each other.

Run commands in linux
# Servise network restart; the connection is completed after the command is run

Test:
# Ping 192.168.1.104; the result is as follows:

  

(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blog.chinaunix.net/photo/58203_080309231144.jpg'); ">

Successful. Similarly, different computers in one CIDR block can achieve interconnection and communication between two virtual machines (on two separately loaded hosts), which has been tested and feasible.

After completing this step, you can configure LINUX vsftpd under the Virtual Machine and use FTP software in the window to upload and download files.

(2) NAT (the same IP address segment as vmnet8 can interconnect the two)
This method can also achieve two-way access between the local system and the virtual system. However, other machines in the network cannot access the virtual system. The virtual system can use the NAT protocol to access other machines in the network. Nat ip Address Configuration method: the virtual system uses DHCP to automatically obtain the IP address. VMware services in the local system will assign an IP address to the virtual system. If you want to use a fixed IP Address at each start, set this IP address directly in the virtual system.

(3) host-only (the same IP address segment as vmnet1 can achieve interconnection between the two)
As the name suggests, this method only supports Network Communication between virtual machines and hosts. Other machines in the network cannot access the virtual system or other machines.

(4) not use method
The Virtual System is a single machine. In general, the Bridged method is the most convenient and easy to use. However, if the local system is win2000 and the network cable is not plugged in (or there is no nic at all), the Network is likely to be unavailable (most of the machines with PCI Nic ), in this case, you can only use the NAT mode or host-only. The two virtual NICs mentioned previously are prepared to adapt to the two network types.

Network Communication Between the s3c2410 board and virtual machines:
Connect the host with a twisted pair Cable (network cable) and start the S3C2410 system. Under the terminal, set the network IP address in the same way as that in LINUX.

Ifconfig eth0 192.168.1.154

The difference is that you are not allowed to restart the network service, because there is no. The other difference is that the IP address needs to be configured once each time the S3C2410 is started.

Then you can PING the host and PASS the test.
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.