Virtual Box Linux VMS FAQ--ping:unknown host

Source: Internet
Author: User

Issue:ping:unknown Host


Root Cause:linux cannot resolve DNS


Action:

1. Check the network card settings

command:root user under ifconfig-a

Root user under vi/etc/sysconfig/network-scripts/ifcfg-eth0

2. Ping the gateway to confirm that it can ping the

3. Check the system default gateway

command:vi/etc/sysconfig/network

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/54/wKiom1W2QffRoTtsAAC5ue4YuyM225.jpg "style=" float: none; "title=" image010.jpg "alt=" Wkiom1w2qffrottsaac5ue4yuym225.jpg "/>

4. Ping a public IP address to confirm that you can Ping the

5. Check DNS settings to set up a correct DNS server

command:vi/etc/resolv.conf

DNS server addresses can be found through the ipconfig-all of windows

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/51/wKioL1W2Q-PSVfVfAAKaA0PitE8900.jpg "style=" float: none; "title=" image012.jpg "alt=" Wkiol1w2q-psvfvfaakaa0pite8900.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/54/wKiom1W2Qfijuvf_AACb-DZX6-c157.jpg "style=" float: none; "title=" image014.jpg "alt=" Wkiom1w2qfijuvf_aacb-dzx6-c157.jpg "/>

6. Restart the Network Service

command:service network restart

7. View Effects

command:ping www.baidu.com or any public network address



This article is from the "7ntxx-13" blog, make sure to keep this source http://chiliming.blog.51cto.com/4285688/1678926

Virtual Box Linux VMS FAQ--ping:unknown host

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.