VMware + Linux + Putty environment Configuration

Source: Internet
Author: User

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.

  • 1
  • 2
  • Next Page

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.