LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RH 9 Internet Connx Problem (https://www.linuxquestions.org/questions/linux-newbie-8/rh-9-internet-connx-problem-218847/)

GuruGeek2003 08-17-2004 01:15 PM

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

Notyou 08-17-2004 01:17 PM

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

GuruGeek2003 08-17-2004 01:30 PM

Thank you for your reply.

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

Thanks,
Roger

david_ross 08-17-2004 02:29 PM

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

GuruGeek2003 08-17-2004 07:04 PM

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....

GuruGeek2003 08-17-2004 07:18 PM

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

2damncommon 08-17-2004 10:49 PM

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

GuruGeek2003 08-18-2004 07:17 AM

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

GuruGeek2003 08-18-2004 09:17 AM

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

GuruGeek2003 08-20-2004 07:15 AM

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


All times are GMT -5. The time now is 06:10 AM.