Centos7 network configuration

Source: Internet
Author: User
I. view network address: centos7 cancels the ifconfig command and uses the ipaddr command to view IP address 2. configure CentOS7 installed in VirtualBox for the network. after the installation is complete, you will find that you cannot access the internet. go to the Internet and check the following steps to access the Internet. 1. find the ifcfg-enp ** File of the NIC configuration file. the preceding numbers appear to be randomly generated. 2. Enable

1. view the network address:

 

Centos7 cancels the ifconfig command and uses the ip addr command to view the ip address

2. configure the network
After using CentOS7 installed in VirtualBox, I found that I could not access the internet. so I checked it online and went through the following steps to access the Internet.
1. find the ifcfg-enp ** File of the NIC configuration file. the preceding numbers appear to be randomly generated.
2. use Root to open and edit some files, change "no" of onboot to "yes", and then restart the network. 

Finally, enter: wq to save and exit, and then restart the network:

3. restart the network Command

# Service network restart

In this way, the network is automatically started when the system is started again.

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.