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!