First of all, why use NET to share the host on the outside network, because the notebook often carry, and the company or the home network is the way of DHCP, the use of bridge is not very convenient, each need to change the address, not conducive to environmental configuration, and the service behind the building ...
1. In the first step, we need to configure VMware to set the net mode for the virtual machines you need to surf the Internet.
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/87/24/wKioL1fVljmDKpBaAADXllhm8vg288.png-wh_500x0-wm_3 -wmp_4-s_3488574179.png "title=" 1.png "alt=" Wkiol1fvljmdkpbaaadxllhm8vg288.png-wh_50 "/>
2. The second step is to share the current network with the VMNET8 virtual network card and configure the NIC.
Locate the network card that is currently active on the host computer via properties--shared
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/87/24/wKioL1fVmJmS-nzuAACARYZBBrU508.png-wh_500x0-wm_3 -wmp_4-s_3959540835.png "style=" Float:none; "title=" 2.png "alt=" Wkiol1fvmjms-nzuaacaryzbbru508.png-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/87/24/wKioL1fVmJnDpvGRAACFimIhCZM001.png-wh_500x0-wm_3 -wmp_4-s_2546047467.png "style=" Float:none; "title=" 3.png "alt=" Wkiol1fvmjndpvgraacfimihczm001.png-wh_50 "/>
3. The third step, you need to set the Vmwavre virtual Network editor configuration, menu editor, and Virtual network editor, set the subnet.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/87/24/wKioL1fVm7Sxug0PAADmP2VEDVo751.png-wh_500x0-wm_3 -wmp_4-s_1775015639.png "title=" 4.png "alt=" Wkiol1fvm7sxug0paadmp2vedvo751.png-wh_50 "/>
4. The fourth step opens the Virtual machine configuration network card, here I use the CentOS6 series.
Edit Network card: Vim/etc/sysconfig/network-scripts/ifcfg-eth0
Configure the network card to restart the network card, or restart the virtual machine
Command: Service Network restart
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/87/26/wKiom1fVoJ-giJNuAADMCg3bTyg461.png-wh_500x0-wm_3 -wmp_4-s_3776045545.png "style=" Float:none; "title=" 6.png "alt=" Wkiom1fvoj-gijnuaadmcg3btyg461.png-wh_50 "/>
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/87/24/wKioL1fVoKCg58EfAACWM_l2wc0376.png-wh_500x0-wm_3 -wmp_4-s_1592160813.png "style=" Float:none; "title=" 7.png "alt=" Wkiol1fvokcg58efaacwm_l2wc0376.png-wh_50 "/>
Configure the virtual machine we use the host ping virtual machine
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/87/24/wKioL1fVoKHwr4aMAADRcKZUlA0190.png-wh_500x0-wm_3 -wmp_4-s_3559087648.png "style=" Float:none; "title=" 9.png "alt=" Wkiol1fvokhwr4amaadrckzula0190.png-wh_50 "/>
The ping www.baidu.com test on our virtual machines can be flat-pass instructions for configuration success.
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/87/24/wKioL1fVoReBrA_iAACYojdcg84445.png-wh_500x0-wm_3 -wmp_4-s_296553830.png "title=" 8.png "alt=" Wkiol1fvorebra_iaacyojdcg84445.png-wh_50 "/>
Summary: Here is the configuration. I also refer to the other forum post configuration, but some configuration instructions will also mislead some do not understand VMware or virtual machine this piece of small white, (PS landlord is also small white). This configuration used to always be forgotten, so write down and hope to help some people.
Problem: Some Internet users in accordance with some of the network configuration may appear, such as: The main machine and virtual machine or virtual machine can be opened in a browser Web page, but Ping does not pass the URL and other issues; These problems LZ have encountered, general troubleshooting needs to be configured from the NIC, and whether in a subnet, There is also a firewall with special restrictions (PS: It is recommended to switch off in the virtual machine), after all, it is used on its own host.
This article is from the "Ljohn" blog, make sure to keep this source http://ljohn.blog.51cto.com/11932290/1851811
Centos,rhel in VMware virtual machines. Linux NET mode configures static IP to let virtual machine on the outside network