LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 02-15-2017, 10:21 PM   #1
z_haseeb
Member
 
Registered: Jun 2008
Posts: 65

Rep: Reputation: 0
Centos7 does not able to ping internet (google.com/hotmail.com/etc)


I have Centos7 core(openstack "fuel-community-10.0.iso") VM is installed. This VM is behind firewall. DNS is properly configured in /etc/resolv.conf. NSLOOKUP is properly resolving domain names. However when I ping any external domain name it is not happening. Even I disabled selinux from /etc/selinux/config and rebooted VM. The same permission is given to windows machines and ping response is fine.
 
Old 02-15-2017, 11:05 PM   #2
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 2,051

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
Which VM? Version? Are you using bridged networking or NAT (I'm guessing the latter)?

FWIW, here's a vbox bug report (which may or may not be relevant)...
https://www.virtualbox.org/ticket/15575
 
Old 02-15-2017, 11:20 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,379
Blog Entries: 16

Rep: Reputation: 3155Reputation: 3155Reputation: 3155Reputation: 3155Reputation: 3155Reputation: 3155Reputation: 3155Reputation: 3155Reputation: 3155Reputation: 3155Reputation: 3155
I have a CentOS 7 VM in VirtualBox on Slackware --Current using a bridged adapter. I can ping internet sites without issue.

I don't have a solution to offer, but I can say that, whatever your issue is, it's local to your configuration.
 
Old 02-15-2017, 11:29 PM   #4
z_haseeb
Member
 
Registered: Jun 2008
Posts: 65

Original Poster
Rep: Reputation: 0
NAT. I am using VMplayer12 on windows machine
 
Old 02-16-2017, 02:03 AM   #5
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 2,051

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
Quote:
DNS is properly configured in /etc/resolv.conf. NSLOOKUP is properly resolving domain names. However when I ping any external domain name it is not happening.
Hmmm... perhaps have a look at /etc/nsswitch.conf and make sure that the name resolution service order is not causing the problem
Code:
grep hosts /etc/nsswitch.conf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can ping & ping6 into Centos7 server from outside & can ping out, but can't ping6 out ftbseobrad Linux - Server 3 02-09-2017 08:43 PM
[SOLVED] can't ping cname in CentOS7 dns server with Unbound rhinolt Linux - Distributions 1 01-20-2017 03:32 PM
[SOLVED] ping www.google.co.in gives unknown host error ,ping to LAN address works fine aspiring_stellar Linux - Newbie 10 05-24-2011 03:26 PM
can ping network computer, cannot ping google.com (help needed) ben_build#2.1.0 Linux - Wireless Networking 23 11-07-2010 12:55 PM
I can ping google.com successfully,but ping client(in my intranet) failed.Why? whepin Linux - Newbie 4 12-30-2001 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration