Personal experience teaches you how to achieve virtual machine access (VM shared host IP)
Love smoke 2021-02-23 07:38:33

summary


pc There is one IP The address is accessible to the network , So how to make VM Can share my IP Address , You can also surf the Internet . Today, in the process of groping, we have realized , Detailed configuration, such as the following :


1, First of all, will VM Network card of net8 Enable :

 Personal experience teaches you how to achieve virtual machine access to the Internet (VM Shared host IP)


2, And then VM The network card of is set to VMnet8(NAT):

 Personal experience teaches you how to achieve virtual machine access to the Internet (VM Shared host IP)


3, take PC Can be online network card sharing :

 Personal experience teaches you how to achieve virtual machine access to the Internet (VM Shared host IP)


To allow other network users to use this computer intenet Connect to connect , And select VMnet8.

4, Set up VMnet8 The default gateway of NIC is local PC Can access the Internet network card IP Address :

 Personal experience teaches you how to achieve virtual machine access to the Internet (VM Shared host IP)


I can access the Internet through the network card IP The address is 172.18.216.77,VMnet8 The address for 192.168.0.1

5, Set up VM The address of the network card is 192.168.0.* Network segment , The default gateway is 192.168.0.1, And configured DNS.

 Personal experience teaches you how to achieve virtual machine access to the Internet (VM Shared host IP)


So that's it , stay VM When accessing the network in , Start with the default gateway 192.168.0.1, eureka VMnet8 network card , Then according to VMnet8 The default gateway of network card 172.18.216.77 Found a network card that can access the Internet , And the network card has been shared online , So that's what happened VM Shared host IP The address is online .


The above configuration is based on my network , You can configure it according to the actual situation !

I'll share more common things in my work later , Interested friends can pay attention to !!

 Personal experience teaches you how to achieve virtual machine access to the Internet (VM Shared host IP)

版权声明
本文为[Love smoke]所创,转载请带上原文链接,感谢
https://fheadline.com/2021/02/20210223073759993U.html
相似文章

2021-08-09