Linux-ping the vroping but cannot access the network

Source: Internet
Author: User
Linux-ping the router but cannot access the network-Linux Enterprise Application-Linux server application information. The following is a detailed description. Sometimes, when debugging network devices on the embedded Linux platform, your machine can ping the vroping, but it cannot access the network, or ping websites such as sohu and sina, at this time, please check whether your dns settings are correct. on Linux, DNS is placed in/etc/resolv. conf or/etc/config/resolv. in conf, check whether the DNS server address is set correctly. When gethostbyname is used for domain name resolution, you need to find the dns server address in the two files.

If the router cannot be pinged, first check whether your IP address is set. Then run the following command to set the Gateway: route add default gw gateway address eth0 (based on your actual Nic name ).

Original Author: pengcheng Wanli

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.