LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-20-2004, 08:05 AM   #1
rubbercash
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: redhat
Posts: 15

Rep: Reputation: 0
Internet Not Working!


I have 2 web servers, a Linux one, and a Windows one, only one of which serves at a time. On the windows one, I can access the internet fine through the Gateway: 192.168.2.1. When I have exactly the same settings for the Linux machine, it can serve pages ok, but it can't access the internet.
Does anyone have any ideas as to what the problem could be?

Thanks, Michael.
 
Old 07-20-2004, 08:23 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Does the /etc/resolv.conf file contain any nameserver info?

Is the route correct on the linux PC and does it show the gateway is configured correctly? Look at the output of the route command
 
Old 07-20-2004, 08:42 AM   #3
rubbercash
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: redhat
Posts: 15

Original Poster
Rep: Reputation: 0
/etc/resolv.conf is blank.

The output from the route command is:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0


What does this table mean?

Last edited by rubbercash; 07-20-2004 at 09:00 AM.
 
Old 07-20-2004, 09:09 AM   #4
lynos
Member
 
Registered: Mar 2004
Distribution: RedHat, Centos, Ubuntu
Posts: 52

Rep: Reputation: 15
The resolv.conf file must be like this:

domain my-site.com

search my-site.com net my-site.net my-site.org

nameserver 192.168.2.1 (anything else) (1. DNS)

nameserver 192.168.2.2 (anything else) (2. DNS)





---------
lynOS
 
Old 07-20-2004, 12:27 PM   #5
rubbercash
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: redhat
Posts: 15

Original Poster
Rep: Reputation: 0
Thank You for your help, it was very useful.
I found that the problem was in the /etc/host.conf file.
Before it was:
order hosts,bind

But it needed to be:
order bind,hosts

It is now working.
 
  


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
Internet not working suckerr70 Linux - Networking 3 04-18-2005 08:34 PM
Internet not working! WWMPCDD Linux - Wireless Networking 2 10-27-2004 01:43 PM
internet not working marlor Slackware 5 06-20-2004 06:13 AM
Internet is not working NEED HELP!! Vectrox Slackware 8 04-20-2004 07:43 AM
Internet working, network not working... phoenix07 Fedora 1 04-11-2004 02:30 AM

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

All times are GMT -5. The time now is 12:59 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