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.