Many times when we operate on VMS, we need to have the virtual machines networked for experimentation. The problem of virtual machine networking is also more important than the basis of comparison. The online search is not very comprehensive, I have encountered such problems, tangled for a period of time. Now I got it. So write a note to share.
In fact, it is very simple, note that three o'clock is OK:
1th: Wireless network or cable Connection
2nd: VMware adapters are consistent
3rd: Whether the virtual machine is automatically acquired by DHCP
4th: Authentication method [Ping baidu.com]
This article takes the wireless network connection as an example.
Here are the procedures and experiments:
Computer Operation: Determine whether the computer is a wireless connection or a network cable connection, and check the adapter used to connect the computer.
1. Click to open the Network Sharing Center
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8B/F7/wKioL1hd3lihU44JAACRPP943Y4071.png-wh_500x0-wm_3 -wmp_4-s_3520311170.png "title=" Open the Network Sharing Center "alt=" Wkiol1hd3lihu44jaacrpp943y4071.png-wh_50 "/>
2. On the Network Sharing Center page that opens, click Change adapter settings
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8B/F7/wKioL1hd3yChnNAcAAEo4v3ub8g992.png-wh_500x0-wm_3 -wmp_4-s_1799140679.png "style=" Float:none; "title=" Network Sharing center alt= "Wkiol1hd3ychnnacaaeo4v3ub8g992.png-wh_50"/>
3. View the adapter used by the current wireless network-->> part of the ring
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8B/FA/wKiom1hd3yGAA1pxAAAtxriW2gM795.png-wh_500x0-wm_3 -wmp_4-s_353253326.png "style=" Float:none; "title=" View wireless network adapter "alt=" Wkiom1hd3ygaa1pxaaatxriw2gm795.png-wh_50 "/>
The operation of the computer is finished.
To summarize: For your own computer you just need to understand the two points, one, the network connection adapter is what, second, can be networked, the normal Internet.
Operation of virtual machine : 1. The Mware adapter is consistent with the computer adapter; 2. Select bridging mode; 3. Network adapter uses DHCP to obtain IP automatically
set the adapter used by VMware to match the computer adapter :
Click Edit in the toolbar--->>> Virtual Network editor
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8B/F7/wKioL1hd5HCC3zfOAABcR6mSpXg312.png-wh_500x0-wm_3 -wmp_4-s_321632656.png "style=" Float:none; "title=" 2016-12-24_104943.png "alt=" Wkiol1hd5hcc3zfoaabcr6mspxg312.png-wh_50 "/>
The popup window is set as follows: Select bridging mode-->> "inverted triangle"-->> Select a network adapter that is consistent with your computer--->> apply-->> OK. Completing the configuration of the VMware network adapter
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8B/FA/wKiom1hd5HGCP9iuAADz9KJN3KY669.png-wh_500x0-wm_3 -wmp_4-s_998853064.png "style=" Float:none; "title=" 2016-12-24_105119.png "alt=" Wkiom1hd5hgcp9iuaadz9kjn3ky669.png-wh_50 "/>
2. To edit the virtual Machine connection mode is bridged
Right-click Virtual machine-->> Select settings
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8B/F7/wKioL1hd5HLhuNNPAABqhJ5g3Ds988.png-wh_500x0-wm_3 -wmp_4-s_222530833.png "style=" Float:none; "title=" 2016-12-24_105415.png "alt=" Wkiol1hd5hlhunnpaabqhj5g3ds988.png-wh_50 "/>
Pop-up the following window, select the corresponding network card, and set the following: OK to complete the setup.
[I have a dual NIC here, so I have a network adapter 2]
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8B/F7/wKioL1hd5HPh4BvXAADim0Xe4u0215.png-wh_500x0-wm_3 -wmp_4-s_3029983692.png "style=" Float:none; "title=" 2016-12-24_105547.png "alt=" Wkiol1hd5hph4bvxaadim0xe4u0215.png-wh_50 "/>
3. Open the terminal, set the network card protocol for DHCP dynamic acquisition
Vim/etc/sysconfig/network-scripts/ifcfg-eth0
set as follows: (The simplest notation, three lines is enough, the other missing information, will be automatically complete) Device=eth0
Onboot=yes
Bootproto=dhcp
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8B/FA/wKiom1hd5HTh34BwAACDtpUO3Ps049.png-wh_500x0-wm_3 -wmp_4-s_2195650345.png "style=" Float:none; "title=" 2016-12-24_105743.png "alt=" Wkiom1hd5hth34bwaacdtpuo3ps049.png-wh_50 "/>
4. Restart the network card to view the IP information obtained
Restart the NIC command: Service network restart
View acquired IP information: IP address Show
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8B/FA/wKiom1hd6IWxmA0ZAADi4E8aI_8724.png-wh_500x0-wm_3 -wmp_4-s_876453783.png "title=" To view the IP information obtained "alt=" Wkiom1hd6iwxma0zaadi4e8ai_8724.png-wh_50 "/>
5. Test Access extranet: Ping baidu.com
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8B/FA/wKiom1hd6PihUznqAAAzHXkiS_o423.png-wh_500x0-wm_3 -wmp_4-s_490092494.png "title=" Test Connection Extranet "alt=" Wkiom1hd6pihuznqaaazhxkis_o423.png-wh_50 "/>
Have succeeded. Now we can open the browser to the Internet ~ ~
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8B/F7/wKioL1hd6cqhSK4SAACCYR6QekI380.png-wh_500x0-wm_3 -wmp_4-s_1346829393.png "title=" 2016-12-24_112129.png "alt=" Wkiol1hd6cqhsk4saaccyr6qeki380.png-wh_50 "/>
The first time you write a blog post, there will be time to continue to write more. I hope you will advise us.
If you encounter any problems can contact me, we learn from each other and progress together.
VMware Virtual Machine Networking problem Combat