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 to use virtual machine located at https://crypto.stanford.edu/cs155/hw_and_proj/pp1/boxes-2.3.tar.bz2. It is a Debian without any GUI. I run it with default configuration. I am able to make ssh from host machine to this virtual machine. Also I can ping from virtual machine to host machine but I can't ping any adress from internet. I have to connect this machine to internet. Is there any solution? Thanks.

cat /proc/version

outputs

Linux version 2.6.32-5-686 (Debian 2.6.32-41squeeze2) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Mar 26 05:20:33 UTC 2012

share|improve this question
1  
Can you ping 8.8.8.8? –  ponsfonze Dec 20 '12 at 14:29
    
I can ping 8.8.8.8 but can't ping any website. –  serdar Dec 20 '12 at 14:54

4 Answers 4

up vote 3 down vote accepted

I first made sure that both host and guest can ping each other. Once that's done, I configured resolv.conf using the following command:

# sudo nano /etc/resolv.conf

and added two lines:

nameserver 8.8.8.8
nameserver 8.8.4.4

Save the file.

share|improve this answer

Make sure the VMware client network card is set to NAT. NAT

share|improve this answer
    
It is set to NAT at default configuration. –  serdar Dec 20 '12 at 14:52
    
Then it has the same access as the host. Does your host machine have internet access? –  BroScience Dec 20 '12 at 19:56
1  
Yes. Virtual machine can ping IP adresses not URLs. –  serdar Dec 20 '12 at 20:21
    
OHHHHH, then you have a DNS issue –  BroScience Dec 21 '12 at 13:46
    
Is there any solutions for this. I am unexperienced to Linux without any GUI and console commands. –  serdar Dec 21 '12 at 16:58

Networking is running since you can ping a public ip address. Your DNS is not working correctly or is being blocked.

Verify you have a working DNS.

less > /etc/resolv.conf

Find any problems with traceroute

traceroute www.google.com

share|improve this answer
    
It prints out a lot of ~ symbols there is not ip adresses. –  serdar Dec 20 '12 at 15:20

This virtual machine is configured to use Stanford's DNS servers. I edited etc/resolv.conf and changed DNS servers to GoogleDNS. Now virtual machine can connect through URL.

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.