虚拟机的桥接模式上网。
There are three network modes for virtual machines, namely, bridge mode, NTA mode and golden host mode. In the three modes, the NTA mode and the bridge mode can access the Internet, and the bridge mode can also directly link to other physical machines or virtual machines on the physical machine.
Preparation: 1. Turn off the firewall of the physical machine and virtual machine
2. Set the virtual network card IP address
3. Set the first three digits of the virtual machine's IP address
Steps:
Enter the virtual machine's network and sharing center,
open the local link,
open the properties,
open IPv4,
select manual IP, and
enter the first three digits of the physical machine's IP address. Note: The last digit cannot be the same as the physical machine the same.
When the icon becomes like this, it means that the network is connected.
Next, on the virtual machine, we ping the physical machine and Baidu
win+R to open the command prompt, enter ping 192.168.43.100, and the following character appears to indicate
ping baidu.com