-   Linux - Networking (
-   -   No internet connection in Ubuntu, ADSL (

safapombo 05-09-2007 04:48 AM

No internet connection in Ubuntu, ADSL

I have Ubuntu 6.10 server ed. + Windows in dual boot.
I have been having trouble with DHCP server but thanks to people in this forum i managed to make it working.
Now, the problem i've got is that i can't connect to the internet from Ubuntu. I have a network set up, and all the computers get the IP address from the Ubuntu computer via DHCP, they all browse the internet and access files on the server with no problem, the Ubuntu PC (i call it server) has a static IP address, but it can't access the internet. I've got ADSL, with a Cisco router and my card is an Intel 82540EM Gigabit Ethernet Card.

Is there anything else i need to do?

Thanks for your help!

cov 05-09-2007 06:01 AM

Can you ping (I'm assuming you can't)
Can you ping (I'm assuming you can... this is google's ip)

If that is the case, I would guess that the problem lies with /etc/resolv.conf

Try putting your router's IP into /etc/resolv.conf:
nameserver ;(or whatever)

If that fails, check the working PCs for clues on what the nameserver that they use is. Check the router as well using the web access interface.

If you still can't get it to work, try renaming the file:
mv /etc/resolv.conf /etc/resolv.conf.crap

and see how you go....

safapombo 05-09-2007 06:19 AM

Hey! Thanks for your answer.

I cant ping either or its IP address, when i try says: Network unreachable.
I forgot to say the clients that are accessing the internet with no problem are on Windows, in case it matters.

In my resolv.conf i have my dns servers ip addresses... should i change that to my router ip address? external or internal?


cov 05-09-2007 06:44 AM

No, if you can't ping the google IP, then I don't think it's the DNS.

Can you ping the other machines on the network?

If it says 'Network Unreachable' that would indicate that the Ubuntu server is offline. In which case the other machines have probably got their IP addresses from the router.

Check the IPs they are using:
Type 'ifconfig' (for linux)
Type 'ipconfig' (for windows)

Check that both sets of machines are on the same network.

safapombo 05-09-2007 06:56 AM

My computer, for example, has, the server is
The router is a Cisco router with no DHCP server, so the only place they can be getting the IP's is from the server.
Server is online at least in the internal network, because i have shared files and we all (7 ppl) can access to it.

Also, when i boot it in Windows, i access the internet with no problem.


safapombo 05-09-2007 07:26 AM

I forgot.
Yes, i can ping other machines on the network.

cov 05-09-2007 07:29 AM


So your network is visible from your Ubuntu box. And your Ubuntu box is visible from your network.

But you can't see the Internet from the Ubuntu box.

Have you looked at your firewall?

safapombo 05-09-2007 07:43 AM

I dont have one on the network, i have Windows firewall ON in the clients, but the server doesnt have one, it would have the windows one if booted in Windows.
Does Ubuntu have a built-in firewall?

cov 05-09-2007 08:11 AM

I'm not sure about Ubuntu's firewall, but it sounds to me that is where your problem lies.

Try googling for 'Ubuntu firwall' and see what you get.

safapombo 05-09-2007 08:41 AM

I googled Ubuntu firewall and as far as i undersand, having a firewall is recommended, Ubuntu does have a firewall technically speaking, but has no GUI.
I try to install one GUI for it, such as Firestarter, Lokkit, but i cant because i need the internet for that.

Any ideas, anyone?


safapombo 05-09-2007 10:42 AM

I've been around and discover something else.
If i set the server to get a dynami IP address, then it does access the Internet. However, i want to have a static ip address because i want to be able to access it from outside my network also.

Does it help to figure out what's going on? I'll keep posting.


safapombo 05-10-2007 04:12 AM

I fixed my problem, i had a network line error in the interfaces file.


eXeCuTeR 10-21-2007 05:57 PM

What did you do? I have the same problem.

All times are GMT -5. The time now is 07:29 PM.