LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2004, 02:15 PM   #1
GuruGeek2003
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
RH 9 Internet Connx Problem


I have just installed Red Hat 9 (Publishers Edition). I now have a dual boot win98/linux box. I also have a home network with a LinkSys router and one other win98 box. The router is connected to a cable modem. My ISP is adelphia cable. The only issue I'm having with Linux is the fact that I can not load web pages. Everything else is very cool so far!

Using the ping command, when I've booted into linux, I can ping my router, and I can ping my other win98 machine. With linux I can also load the router admin page. Using my win98 machine I can ping my linux box. So, my home network is working. When I ping anything outside of my home network it times out. I've tried cnn dot com and yahoo dot com. Should I have tried to ping IP's instead? Would that make a difference?

I've googled to try and find things that may be wrong. I looked at my resolv.conf file and the primary and secondary DNS IP's are correct. In my host.conf file I have order bind, host. When I type in ifconfig (inside the /sbin/ or outside of it) I get a "bad command or file not found" message. Same thing with arp. I've even tried ifconfig eth0 up and ifconfig eth0 down. I get the same error message. This morning I realized this may be because I was not logged in as root.?.?. When linux starts I have to enter a username and password. The password is not the same as my root password. I'm guessing, if I use my root password, I will be into linux as root?.?.?

Does anyone on the list have any other ideas or suggestions?

TIA,
Roger
 
Old 08-17-2004, 02:17 PM   #2
Notyou
LQ Newbie
 
Registered: Aug 2004
Location: Canada
Distribution: Linux Redhat 9
Posts: 18

Rep: Reputation: 0
look into firewall settings I had that problem for a bit to and my firewall settings that are built into linux were set to high so unless it had a cert it wouldn't load
 
Old 08-17-2004, 02:30 PM   #3
GuruGeek2003
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you for your reply.

Should I use the Kickstart window to adjust the firewall setting?

Thanks,
Roger
 
Old 08-17-2004, 03:29 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
It sounds like your you possibly don't have a default route (or the correct route) - can you post the output from:
/sbin/route -n

What is the address of your router?

To discount DNS problems you may want to try browsing by IP as well - can you get either of:
http://www.linuxquestions.org
http://64.179.4.149
 
Old 08-17-2004, 08:04 PM   #5
GuruGeek2003
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
I went into kickstart and changed the firewall settings.

I can now load web pages if type in the direct IP to the site. Of course none of the links work, they are words, not IP's....
 
Old 08-17-2004, 08:18 PM   #6
GuruGeek2003
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
I'm posting this from my linux box!!!! :-)

Believe me though, it's a pain trying to use IP numbers instead of names....

Here's what I get from route -n
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0        192.168.1.1      0.0.0.0         UG    0      0        0 eth0
Here's what I get from ifconfig
Code:
[root@localhost root]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0C:41:25:37:36
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:84 errors:0 dropped:0 overruns:0 frame:0
          TX packets:122 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:50952 (49.7 Kb)  TX bytes:18656 (18.2 Kb)
          Interrupt:11 Base address:0x6000
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1279 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1279 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:86607 (84.5 Kb)  TX bytes:86607 (84.5 Kb)
Hope that looks ok. Never posted tables and indented text.....

My router is 192.168.1.1

My computer is 192.168.1.100

I'm still unable to load pages by name. I have to do it by IP address.

Any other suggestions or can you tell anything from the above commands?

Thanks,
Roger

Last edited by GuruGeek2003; 08-17-2004 at 10:17 PM.
 
Old 08-17-2004, 11:49 PM   #7
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,872

Rep: Reputation: 88
If you can only retreive webpages by IP and not by name you have a DNS problem, as in you do not have one.
Usually you want to use your ISPs Domain Name Servers.
I don't know the Ret Hat specific method, but normally this information goes into "/etc/resolv.conf"
"man resolv.conf" should give you the idea.
Mine has a "domain" entry and two "nameserver" entries.
Good Luck
 
Old 08-18-2004, 08:17 AM   #8
GuruGeek2003
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Here's my resolv.conf file

SEARCH clvdoh.adelphia.net
PRIMARY 68.168.204.2
SECONDARY 68.168.204.5

I can't recall the IP numbers exactly, but that is what the file looks like.

Thanks,
Roger
 
Old 08-18-2004, 10:17 AM   #9
GuruGeek2003
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Here's the results when I run route -n

Code:
Kernel IP routing table

Destination     Gateway         Genmask       Flags MetricRef Use Iface

192.168.1.0     0.0.0.0         255.255.255.0   U     0      0   0eth0

169.254.0.0     0.0.0.0         255.255.0.0     U     0      0   0eth0

127.0.0.0       0.0.0.0         255.0.0.0       U     0      0    0lo

0.0.0.0        192.168.1.1      0.0.0.0         UG    0      0    eth0
I'm wondering about the 192.168.1.0 address on the first line under destination. From what I've read, that should be my network IP. My network IP is 192.168.1.100. Also, the third line, the 169.254.0.0 is an unfamiliar IP address. My router's IP is 192.168.1.1 and my other box is 192.168.1.101 so I don't know where 169.254.0.0 comes from.

When I look at my router's set up, via the web interface, the 192.168.1.0 is the starting number in the set of IP's that the router assigns. Should I change this on my router? Should I erase the 169 IP number?

Thanks,
Roger
 
Old 08-20-2004, 08:15 AM   #10
GuruGeek2003
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
I have solved all of my linux/internet problems.

I reinstalled Red Hat 9 publishers edition. This time I chose "desktop" instead of "server" for my install type. Works like a charm now!!!!

Thanks for all of the blood, sweat, and tears!

Roger
 
  


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
Problem with Internet jnicou Linux - Networking 1 08-14-2005 08:16 AM
internet problem...please help me... bruse Linux - Networking 18 03-25-2005 05:42 AM
Internet and LAN access is unstable-is this a hardware problem or a software problem? soren625 Linux - Networking 1 06-07-2004 07:43 AM
Internet Problem! ThE_DeaD Linux - Networking 2 07-28-2003 01:02 PM
Printer Problem AND internet problem Evolutio Linux - Software 0 04-08-2002 03:58 AM


All times are GMT -5. The time now is 12:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration