Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a weird problem. Here is my configuration.

I installed VirtualBox on Windows 7 PC.

I installed Ubuntu 10.04 on VirtualBox.

I installed many programs via terminal and I can still install. My browser can connect to internet.

But I cannot ping any website e.g. google.com. I cannot download anything from git.I can only ping 192.168.1.1 that is all.

What would be the reason guys?

UPDATE

I can ping with another internet connection which I use in office.

share|improve this question

migrated from stackoverflow.com Nov 18 '11 at 4:09

This question came from our site for professional and enthusiast programmers.

1  
I assume your firewall on Windows is not blocking outgoing connections? –  Septagram Nov 17 '11 at 6:34
    
misleading title, probably better to ask this in virtualbox forum. can you switch to a bridged network in virtualbox? –  marinara Nov 17 '11 at 8:17
    
this question should be moved to somewhere like SuperUser –  DallaRosa Nov 17 '11 at 9:08
    
As I said above I can connect internet through web browser, even apt-get install works on terminal. But I cannot ping any website. –  HamdiKavak Nov 17 '11 at 14:33

2 Answers 2

You haven't specified a valid nameserver. Check your network configuration and /etc/resolv.conf.

share|improve this answer
up vote 0 down vote accepted

I figured out that my router was preventing it. I reset it and now using WEP instead of WPA2.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.