The IP address of the virtual machine and the host are different; for the internal network, the local IP addresses of the virtual machine and the host are different; for the external network, the local IP addresses of the virtual machine and the host are the same. ;The IP of the local machine is real, the IP in the virtual machine is virtual, and the virtual machine can be different from the real IP.
The operating environment of this tutorial: Windows 10 system, DELL G3 computer
Is the IP address of the virtual machine the same as the host computer?
The local IP addresses of the virtual machine and the host are different, which is for the intranet (LAN). For the external network, the local IP address of the virtual machine and the host are the same.
The IP of the local machine is real, and the IP in the virtual machine is virtual. The virtual machine can be different from the real IP. Virtual machine technology is a new technology developed to solve the problem of insufficient host usage. It allows multiple virtual systems to be installed on a real PC and can be switched between each other. It is convenient and practical. In practical applications, it is mainly used for multi-user operation or testing. On the PC, it is actually an image file similar to the GHSOT package.
The virtual machine is like another computer bridged to the computer, so the two systems are unrelated, just like two computers. You can also set the virtual machine to bridge mode, and then change the virtual machine's system IP to the same network segment as the actual machine. Then the virtual machine's operating system will provide services as if it were a machine in the LAN.
Advantages of virtual machines:
1. Flexibility:
Virtual machines will provide maximum deployment flexibility. Virtual machines can be deployed almost anywhere, regardless of their operating system or host configuration. Windows systems can host Linux-based virtual machines and vice versa.
2. Security and isolation:
As the container platform continues to mature and more security tools are fully supported, these concerns may be alleviated. However, from the simple fact that containerized applications can never achieve the same degree of isolation as virtual machines, it is impossible for containers to fully match virtual machines from a security perspective. Virtual machines do not share each other's kernel or other basic system resources like containers.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of Is the IP address of the virtual machine the same as the host machine?. For more information, please follow other related articles on the PHP Chinese website!