VMware and VirtualBox installation CENTOS7 Connection Network unreachable Issue resolution notes (network connection)

Source: Internet
Author: User

I initially installed VMware encountered not access to the network, according to the online configuration method can not be resolved. And then I felt like it might have something to do with the system, I installed CentOS, and then I tried to install it on the VirtualBox to see what was wrong.

After installing CentOS with VirtualBox, the network setup is also configured, but can not connect the network, ping host IP display network unreachable. Same as the problems encountered with VMware. I think 80% is related to the system because I did not encounter this problem before installing other systems. Then I refer to the Baidu experience address. http://jingyan.baidu.com/article/456c463b4a98460a5931444c.html, changes the file

/etc/sysconfig/network-scripts/ifcfg-eth0

Change Onboot=no to Onboot=yes

Then the service network restart, may be prompted to use Systemctl, after restarting the network is OK

Go back to solving the same problem on VMware. After modifying the file, the network is unreachable, not resolved.

Now look at the IP is like this

When I re-viewed the file, I suddenly found that I was just copying it when I edited it, and I saved it without modification (crying

After the modification, I look at the IP, at this time the IP again to see there is

Correct modified content of the file

At this point, the configuration is basically the default

VMware and VirtualBox installation CENTOS7 Connection Network unreachable Issue resolution notes (network connection)

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.