Here, we mainly solve the problem of communication between Linux and the host on the vmwarevm, and introduce the use of the putty tool.
When using Linux, we chose vmware + Linux + putty because we were not used to various Linux operations. Putty is much more comfortable than Linux Command lines.
VMware + linux
Ubuntu 12 is selected for Linux. Generally, install ubuntu and use a NAT network connection to connect to the Internet (if the host is already connected). I have tried it multiple times, at least. However, the host and Virtual Machine (Linux) may not be able to communicate yet. The author sets static IP addresses to solve the problem.
1. Edit-> edit VPC-> choose VMnet8-> NAT settings to view the subnet IP address, mask, and gateway IP address.
2. Set static IP addresses in Linux
Vim/etc/network/interfaces according to the information obtained in step 1, add the following at the end of the file:
Auto eth0
Iface eth0 inet static
Address 192.168.2.6 (subnet 192.168.2.0)
Gateway 192.168.2.2 (gateway 192.168.2.2)
Netmask mask 255.255.0 (mask)
Under reboot, make sure the above settings take effect
3. Set the Linux DNS address
Vim/etc/resolv. conf (specifying the dns address)
Nameserver 192.168.2.2 (Gateway found in step 1)
4. Set static IP addresses for local host connection
If your host is directly connected to a vro, the static IP address locally connected to the host can be in the same subnet as Linux. If not, you must set the IP address in the same subnet, in this way, communication between the host and Linux can be realized. In this case, the host and Linux can ping each other, and Linux can be connected to the Internet. The above environment is helpful for beginners who are not familiar with the Linux environment.