Resolve CENTOS7 cannot be networked and ifconfig command not found

Source: Internet
Author: User

The CENTOS7 is installed in the virtual machine in a minimized manner, and the Internet is not available because the CENTOS7 default NIC is not activated.
And in the Sbin directory there is no Ifconfig file, this is because CENTOS7 has not used the Ifconfig command, has been replaced with IP command;
and the network card name is not eth0, but changed into eno16777736.
Resolve Ifconfig is not available: IP addr that is to view the distribution of network adapter.
To activate the NIC: in File/etc/sysconfig/network-scripts/ifcfg-enp0s3
Enter edit mode, change Onboot=no to Onboot=yes, OK


Restart NIC after saving: Service network restart
The Internet is available at this time. (If you do not know how to determine whether the Internet, ping the URL can be, it is so simple, such as command: Ping www.baidu.com)

So yum,wget and so on can be used.

This article from "Xiao Mary" blog, reproduced please be sure to keep here http://blog.csdn.net/qq_31382921/article/details/52174626

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.