LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-14-2006, 07:59 AM   #1
deejross
LQ Newbie
 
Registered: Jul 2005
Location: Hartford, CT
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
Question Cannot Connect to Internet with Static IP


We just got a linux box to use for a webserver. It runs Ubuntu Breezy. Got everything we needed installed on it, and when I assign it a static IP, it won't connect to the internet anymore, but I can connect to the machine from another machine on the network. I made sure that the DNS was set to the router's IP. I even added the external DNS servers that the router gets.

When I switch it back to DHCP, it works, but it's very slow. Reminds me of a 56K modem. I have been using Webmin to make all the changes. And obviously, I can't leave it on DHCP because then I wouldn't be able to use it as a server.

Any help would be greatly appreciated. Thank you.
 
Old 03-14-2006, 08:21 AM   #2
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
You need to set the gateway address in the network config to that of your router/proxy server/internet gateway.

This is probably being auto populated with DCHP but your missing it when you do it manualy.
 
Old 03-14-2006, 08:28 AM   #3
deejross
LQ Newbie
 
Registered: Jul 2005
Location: Hartford, CT
Distribution: Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
Well, when you look at the settings, it lets you change the IP Address, the Broadcast, and the Netmask. Is the broadcast the one that is supposed to be set to the router/gateway.

Further investigation has led me to believe that there is a DNS problem somewhere. When on DHCP, I said it was slow, but only when going from one domain name to the other. For example going to Google.com is slow, but doing a search on it is normal speed. Then going to Yahoo.com is slow because it's a different domain name.

Last edited by deejross; 03-14-2006 at 09:13 AM.
 
Old 03-14-2006, 09:32 AM   #4
deejross
LQ Newbie
 
Registered: Jul 2005
Location: Hartford, CT
Distribution: Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
The Solution

The solution has been found. I figured I would post my findings for others that have similar problems.

After plugging in a Windows box to the same network cable, I ruled out the possibility of bad cabling.

We have a Netopia modem/router for our DSL. The problem was that the DHCP was handing out the modem's address for DNS and for some reason, the modem was not forwarding the request out to the actual DNS servers from the ISP. You wouldn't think so, seeing as how DNS communication should be standard reguardless of OS. Anyways, it would time out waiting for a DNS request. So I replaced the entries on the Linux box to the actual external DNS servers, and took the modem's entry out completely. Also, I found that Webmin keeps the Gateway setting in a different module. That's what kept tricking me and why static addressing never worked. It kept setting the gateway to 0.0.0.0 instead of the modem's address.

Hope this helps out someone.
 
  


Reply



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
server will not connect using static ip, SMC8013WG-CCR. modem/router soulwatcher1974 Linux - Networking 1 02-13-2006 04:08 PM
Unable to connect to Internet when using static IP on SuSE 9.2 fyhuang Linux - Networking 2 01-26-2005 01:00 PM
static ip mapping:- connect: invalid argument katana Linux - General 1 10-09-2004 08:52 AM
Connect with static ip & but cpu goes crazy BroX Linux - Networking 2 02-20-2004 12:20 PM
Connect static and dynamic DHCP with VLANs FatMike Linux - Software 0 11-12-2003 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:30 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration