Centos 7 cannot be networked under VBox

Source: Internet
Author: User

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

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.