How to set up virtual machine network?

Why do we need to set up a network? In the process of writing code, we often get the content on Linux from the Windows system, or get the content on the window from Linux, which makes us have to configure the network. The
previous article mentioned the use of vagrant. Quickly create your own virtual machine. After this method is successfully created, how to modify the network configuration?
Yes, don't be so troublesome, find the C:\User/your host name mentioned in the previous article, and generate it in this directory A vagrantfile file, we find it and open it
Insert picture description here

Check the IP address of our local VMware netword in the cmd command, replace the ip here and replace the ip address here!
The number after the last dot is not the same! Insert picture description here
Finally, restart the virtual machine and ping back and forth. can!

Guess you like

Origin blog.csdn.net/lq1759336950/article/details/112140654