CENTOS7 cannot surf the internet on VMware

Source: Internet
Author: User

CENTOS7 cannot surf the internet after setting up NAT in the virtual machine!

Activate the network card first!
Open the desktop right-click in the terminal:
cd/etc/sysconfig/network-scripts/
LS found to start with ifcfg, as Ifcfg-lo.
Check out the vi Ifcfg-lo
Edit below the red circle section, if you are the display "Onboot=no", you can not surf the Internet. Let's change it to "yes".
onboot= "Yes"  turns on automatically enabling network connections
: Wq Save Exit
Service Network restart Restart network
You should be able to see the wired network card!
The default CentOS is not to enable the wired network card, either manually open, or the installation is directly enabled!

However, the following conditions may also occur

You need to turn off the virtual machine, open the directory of the virtual machine storage, and open the VMX profile of the three computer icons with Notepad

Add one in.

Ethernet0.virtualdev = "e1000"

Save, and then open the virtual machine to see, you can!!!

CENTOS7 cannot surf the internet on VMware

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.