Avatar of Greg Alexander
Greg Alexander
Flag for United States of America asked on

Centos installed on Windows XP VirtualBox unable to connect to internet but can be reached from the world.

I am trying to setup a simple Linux machine on a Windows XP machine iwith Virtual Box. At this point I have it to where I can access the network and ping the router, I am able to even SSH from the world (I forwarded traffic on port 22 to it). The only thing I can't do is connect to the internet..

I am curious if it is actually the XP machine that is blocking access to the internet but not sure.. I am using a wireless connection, but I don't think that has anything to do with it since I can access the network. I have tried this several times unsuccessfully, but I am not backing down this time :)

Any ideas? When I run netstat -rt I get

Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface     *              U         0 0          0 eth0
link-local          *                  U         0 0          0 eth0
default                UG      0 0          0 eth0

Linux NetworkingWindows XPVMware

Avatar of undefined
Last Comment

8/22/2022 - Mon

maybe you have dont set DNS in linux box?
sudo echo "nameserver your_dns_server" >/etc/resolv.conf
and try again

Common issue is network setup and having no access to DNS.

Issue command

service network status

If it is not running

service network start

Then issue command

ping yahoo.com

Also try this


If you are running GUI, you should have network manager up and running to take care of your problems

service NetworkManager status
Greg Alexander

What would be my DNS server? my router
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Greg Alexander


When I run service network status I get:

Configured devices:
lo eth0
Currently active devices:
lo eth0

I get nothing when I ping yahoo.com but I can ping I don't have access to a GUI.. all command line :(

Try your gateway.

In windows, issue command
Greg Alexander

That did it... I added my router IP and it WORKS!
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

So it is surely a DNS issue.

Edit /etc/resolv.conf

Put this:


Try the ping command again.

Add google`s DNS as secondary
example, in /etc/resolv.conf: