VM ~ VM Linux does not connect to the Internet.

Source: Internet
Author: User

VM ~ VM Linux does not connect to the Internet.

Using the Bridge Connection method, centos6.4 is configured with a static IP address, which can ping the gateway, but appears when you ping the Internet

"Network is unreachable"

For example, ping www.baidu.com.

It turns out to be a routing configuration problem. Try directly modifying the system file/etc/sysconfig/network-scripts/route-eth0 to add 'defult via 192.168.0.1 '(192.168.0.1 is the IP address of my vro and can be modified as needed ).

I ran to the/etc/sysconfig/network-scripts/directory and found that the root node didn't have the route-eth0 file, so I created a file and added 'defult via 192.168.0.1 'to the file.
Run '/etc/init. d/network restart' to restart the network. Everything is OK!

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.