LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Able to browse net but ping does not work in console (http://www.linuxquestions.org/questions/linux-networking-3/able-to-browse-net-but-ping-does-not-work-in-console-715421/)

f1l3t0f1sh 03-30-2009 02:55 AM

Able to browse net but ping does not work in console
 
Hi all,

I recently installed Fedora 10 on VirtualBox (host OS is XP) for evaluation purpose and encounter connectivity issue.

In virtualized Fedora, eth0 is running on DHCP. I configure Firefox to use proxy (because I am in office), and it has no issue browsing.

But, in console (I use gnome-terminal), I am unable to ping google.com or yahoo.com.

Example, ping www.yahoo.com
Code:

[root@localhost etc]# ping yahoo.com
PING yahoo.com (206.190.60.37) 56(84) bytes of data.
^C
--- yahoo.com ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2848ms

The ping just halts there until Control+C issue to break.

And if we do a nslookup on www.google.com
Code:

[root@localhost etc]# nslookup www.google.com
Server:        10.0.2.3
Address:    10.0.2.3#53

Non-authoritative answer:
www.google.com    canonical name = www.l.google.com.
Name:    www.l.google.com
Address: 72.14.203.99
Name:    www.l.google.com
Address: 72.14.203.103
Name:    www.l.google.com
Address: 72.14.203.104
Name:    www.l.google.com
Address: 72.14.203.147

It works.

In this config I manage to ping the proxy and it responses. So I presume the network config should be fine. I personally reckon the DNS setting is not properly set (limited understanding). Anyone please help?

Thank you.

Regards,
f1l3t0f1sh

blackhole54 03-30-2009 05:27 AM

Quote:

Originally Posted by f1l3t0f1sh (Post 3492237)
I personally reckon the DNS setting is not properly set (limited understanding)

I see no evidence that you are having DNS problems. Both ping and nslookup are resolving the names supplied. (ping resolved yahoo.com to 206.190.60.37.) I note (unsurprisingly) that your DNS server is local (10.0.2.3). Since you say you have to go through a proxy to get to the web and your pings fail, I am guessing that direct access to the Internet is blocked. (I can't rule out that your problem has something to do with virutalization. I have no experieince with that.)

linuxlover.chaitanya 03-30-2009 07:51 AM

Yeah the main issue seems to be that you have to configure your browser to get through to surf the web. This means that the proxy is not configured to work in transparent mode and direct connection to internet is protected and thats why most probably you are not able to ping.


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