virtual machine settings online
1, to ensure that the network can set up sharing, the local use of wireless network ( set up a network share select VMnet8, where VMnet8 need to be set in advance to obtain IP automatically )
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/8E/CC/wKiom1jLWNzBUiGnAABj8tB7zfg834.png-wh_500x0-wm_ 3-wmp_4-s_1696938944.png "title=" 111.png "alt=" Wkiom1jlwnzbuignaabj8tb7zfg834.png-wh_50 "/>
after the setting is successful The IP address of the VMnet8 will be set as follows:
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/8E/C9/wKioL1jLWROigSDRAAButobg53w393.png-wh_500x0-wm_ 3-wmp_4-s_180685311.png "title=" 1111.png "alt=" Wkiol1jlwroigsdraabutobg53w393.png-wh_50 "/>
Note: You may get an error when setting up a share ( An error occurred when Internet Connection Sharing access is enabled (null) ") , you need to start the service as shown in:
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/8E/C9/wKioL1jLWTnDfM_KAAHNuBpzjfI704.png-wh_500x0-wm_ 3-wmp_4-s_354492504.png "title=" 111.png "alt=" Wkiol1jlwtndfm_kaahnubpzjfi704.png-wh_50 "/>
2. Set the network configuration of VMnet8 in virtual machine after sharing settings :
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/8E/CC/wKiom1jLWWOwBp9EAAIvSthETeI215.png-wh_500x0-wm_ 3-wmp_4-s_2886804860.png "title=" 111.png "alt=" Wkiom1jlwwowbp9eaaivsthetei215.png-wh_50 "/>
Click NAT Setting, set as follows:
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/8E/CA/wKioL1jLWYehBiy3AABl34sF3N8037.png-wh_500x0-wm_ 3-wmp_4-s_1467974005.png "title=" 111.png "alt=" Wkiol1jlwyehbiy3aabl34sf3n8037.png-wh_50 "/>
3. Set the virtual machine Internal network address
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/8E/CA/wKioL1jLWbehyp58AADP4ZYMdAU905.png-wh_500x0-wm_ 3-wmp_4-s_3980611332.png "title=" 111.png "alt=" Wkiol1jlwbehyp58aadp4zymdau905.png-wh_50 "/>
where the internal network The IP address is the same as the VMnet8 , the gateway is set to the VMnet8 gateway address, andthe DNS server address is set to the IP address of VMnet8 .
This article is from the "rookie" blog, please be sure to keep this source http://2922055.blog.51cto.com/2912055/1907558
Linux virtual machines share internet with NAT