1. Select the network Adapter and check whether NAT is selected on the right side.
(Recommended tutorial: centos Tutorial)
2. Open the Network and Sharing Center-->Change the adapter settings, whether VMnet8 and VMnet1 automatically obtain the IP, and automatically obtain the IP connection
3. Right-click the local connection, properties-->Advanced
4. Go to the Linux terminal and restart the network card service network restart to obtain the IP successfully. Open the browser and visit the following picture
Recommended related video tutorials: linux video tutorial
The above is the detailed content of Centos cannot access the external network under the virtual machine. For more information, please follow other related articles on the PHP Chinese website!