LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-09-2007, 04:48 AM   #1
safapombo
LQ Newbie
 
Registered: Apr 2007
Posts: 15

Rep: Reputation: 0
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!
 
Old 05-09-2007, 06:01 AM   #2
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 365

Rep: Reputation: 30
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....
 
Old 05-09-2007, 06:19 AM   #3
safapombo
LQ Newbie
 
Registered: Apr 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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!
 
Old 05-09-2007, 06:44 AM   #4
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 365

Rep: Reputation: 30
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.
 
Old 05-09-2007, 06:56 AM   #5
safapombo
LQ Newbie
 
Registered: Apr 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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!
 
Old 05-09-2007, 07:26 AM   #6
safapombo
LQ Newbie
 
Registered: Apr 2007
Posts: 15

Original Poster
Rep: Reputation: 0
I forgot.
Yes, i can ping other machines on the network.
 
Old 05-09-2007, 07:29 AM   #7
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 365

Rep: Reputation: 30
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?
 
Old 05-09-2007, 07:43 AM   #8
safapombo
LQ Newbie
 
Registered: Apr 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 05-09-2007, 08:11 AM   #9
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 365

Rep: Reputation: 30
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.
 
Old 05-09-2007, 08:41 AM   #10
safapombo
LQ Newbie
 
Registered: Apr 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 05-09-2007, 10:42 AM   #11
safapombo
LQ Newbie
 
Registered: Apr 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 05-10-2007, 04:12 AM   #12
safapombo
LQ Newbie
 
Registered: Apr 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Hey!
I fixed my problem, i had a network line error in the interfaces file.

Thanks!
 
Old 10-21-2007, 05:57 PM   #13
eXeCuTeR
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
What did you do? I have the same problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADSL RedHat 9 Internet connection sgarci Linux - Networking 9 03-13-2006 03:41 PM
need big help, on adsl internet connection godz Linux - Networking 5 09-04-2004 05:35 PM
HELP!! No adsl internet connection dvy834 Linux - Newbie 1 04-19-2004 06:38 PM
ADSL internet connection mrstirs Linux - Networking 0 02-20-2004 09:26 AM
please help me with my wireless adsl internet connection. wimva Linux - Newbie 1 11-20-2003 09:53 AM


All times are GMT -5. The time now is 11:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration