Home >Operation and Maintenance >Linux Operation and Maintenance >What should I do if Linux cannot access the Internet in a virtual machine environment?

What should I do if Linux cannot access the Internet in a virtual machine environment?

王林
王林Original
2020-05-15 13:26:584248browse

What should I do if Linux cannot access the Internet in a virtual machine environment?

System environment:

centos6.5 system

Solution:

1. Open the virtual machine, if [network adapter 】The selected one is not NAT mode. We need to change it to NAT mode

What should I do if Linux cannot access the Internet in a virtual machine environment?

2. Open cmd and enter the command: services.msc. After pressing Enter, the services and applications page will pop up. , we need to find the two service processes of VMware DHCP Service and VMware NAT Service

What should I do if Linux cannot access the Internet in a virtual machine environment?

3. Start the service

What should I do if Linux cannot access the Internet in a virtual machine environment?

4. Open the centos terminal, enter the command: shutdown -r now, restart the centos system

What should I do if Linux cannot access the Internet in a virtual machine environment?

Recommended tutorial: linux tutorial

The above is the detailed content of What should I do if Linux cannot access the Internet in a virtual machine environment?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn