LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   No internet connection in Ubuntu, ADSL (http://www.linuxquestions.org/questions/linux-networking-3/no-internet-connection-in-ubuntu-adsl-552525/)

safapombo 05-09-2007 04:48 AM

No internet connection in Ubuntu, ADSL
 
Hello!

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 www.google.com (I'm assuming you can't)
Can you ping 72.14.207.99 (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 192.168.1.254 ;(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 google.com 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?

Thanks!

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 10.32.2.12, the server is 10.32.2.10.
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.

Thanks!

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

Okay.

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?

Thanks.

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.

Thanks.

safapombo 05-10-2007 04:12 AM

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

Thanks!

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 12:06 AM.