Note: The ip of vmnet8 must be in the same network segment as the gateway IP of the virtual machine
Remember the gateway IP
Note: The address here as long as the first three segments are the same as the gateway IP, and the last segment is set by yourself, but it cannot be repeated with the gateway IP
Centos command line input command: service network restart
Let me say a bit more here. After setting up the virtual network card, the virtual network card cannot access the external network. If it is a NAT internal cluster, it is not necessary to connect to the external network. But if your machine needs to go online, you need to put the virtual network card into the shared network list.
Open your network card configuration. If you have a wired or broadband direct connection, please share the network card you use to surf the Internet with the virtual network card. Wireless, choose wireless network card
Recommended Posts