Solve the problem that centos7 cannot be connected to the Internet when it is installed in VMware.

Source: Internet
Author: User

Solve the problem that centos7 cannot be connected to the Internet when it is installed in VMware.

When building a k8s environment, you cannot connect to the Internet after using VMware to install centos, and pinghttp: // www.baidu.com cannot be connected.

Solution:
1. Go to the/etc/sysconfig/network-scripts/directory.
2. Run the ls command to view the NIC configuration file.

A file with a string of numbers is the NIC configuration file.
Here I correspond to ifcfg-ens33.
3. Use vi to edit the file, change ONBOOT = no in the last line to ONBOOT = yes, and save and exit.
Vi ifcfg-ens33

4. restart the NIC service network restart

5 Test

OK

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.