Vmware-linux Virtual Machine internet configuration, vmware-linux Virtual Machine

Source: Internet
Author: User

Vmware-linux Virtual Machine internet configuration, vmware-linux Virtual Machine

I have read a lot about other methods for configuring virtual machine access. I previously found a lot of information on the Internet, and it took a long time to solve the Internet problem. Now I want to write something and share my quick linux internet configuration method:

Note: In CentOS6.5, SecureCRT is used for connection. Do not use dhcp to automatically assign an ip address. Otherwise, you must check the specific ip address each time you use SecureCRT. I think many linux releases are not much different.

Step 1: first ensure that the window host can access the Internet.

Step 2: Select settings for the VMware Virtual Machine> network adapter> select NAT mode.

Step 3: configure the Virtual Machine ip address.

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

You need to set

ONBOOT = yes (this is for Automatic startup)

BOOTPROTO must be set to none (dhcp is used by default)

The ip address is set later (it can be any segment of this network, and it should not conflict with the previous one)

Subnet Mask

The gateway is ready.








Step 4: Go to the network control center of the window. The specific steps are: Control Panel-> network and Internet-> network connection, and then find VMnet8.

After viewing VMnet8 properties-> click the TCP/IP protocol, the IP inside as long as it is 192.168.13 the network segment, but do not conflict with the previous ip, the gateway must be written here and the gateway of the ifcfg-eth0, otherwise, you cannot access the Internet.

Step 5: Go to vmware-> edit-> Virtual Network configurator, select VMnet8 and click NAT mode. You must remove the check box before using local DHCP.

Step 6: you only need to restart the Virtual Machine network service. Enter the virtual machine to execute

Service network restart


Hand-written by yourself. I hope it will help you!

If you have any questions, you can leave a message and fix them at any time!

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.