Summary:
In virtual box under the choice of Bridge adaptor mode, install CentOS 7, network connection has been no problem, later did not know what reason suddenly can not network, is a worry, query a lot of network configuration information, also did a lot of attempts, has not been resolved, Finally, the command line executes the DHCLIENT-V command, and everything is fine again.
Solve:
1. First use the command IP addr to view the IP information, we can see that the IP is not successfully assigned to
2. Execute the dhclient-v command with root to get an IP through the DHCP protocol, and on the last line you can see that the IP has been assigned successfully
The dhclient command can be used to release the IP address of your computer and obtain a new one from the DHCP server, which requires root permission to execute
3. Perform IP addr again to assign IP information
4. Perform the ping www.google.com.sg command to discover that the network is connected successfully
Summarize:
During the search for a solution, a number of network-related configuration files were viewed such as:/etc/sysconfig/network,/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-ENP0S3,/etc/ Resolv.conf, and made some changes, has not been able to solve the problem. Although finally resolved through the DHCLIENT-V command, but in the process let me know some network configuration files, parameters and Dhclient command. Dhclient has a number of parameters, temporarily only to understand the role of several parameters, the role of other parameters will be reviewed in detail and experiment.
Centos 7 cannot be networked under VBox