LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Red Hat 9.0 cant connect to internet (https://www.linuxquestions.org/questions/linux-hardware-18/red-hat-9-0-cant-connect-to-internet-256587/)

10221754 11-18-2004 04:56 PM

Red Hat 9.0 cant connect to internet
 
I have 2 HD in my PC, HD1 is Win2000, HD2 is installed with Red Hat 9.0,
the PC is connected to a LAN through a Router, have no problem browse the internet in Win2000. however, when switched to use RH9.0, it cant connect to the internet, error mesage shown:

'Can not find host website'

I think is the Realtek RTL8139 NIC card causing the problem, but not sure.I am linux newbie, and hope some one in this forum can help.
thanks.

LIN

halo14 11-19-2004 10:24 AM

you probably need to activate the NIC...

:::Trying to remember:::

It's been a while since i used RH9.. If you go into the menu... I under System tools... or something similar... there is a "network" or "network configuration" open that.. and then it will ask you what kind of connection.. you say "ethernet" and it will list the NIC card... (so long as it is supported, which i believe it is)... and then you will get a little box with the nic listed... if it says "inactive" then click the "activate" button.. not much too it.. but I remember I had some trouble... Red hat 9 was the first linux I ever tried..

Good Luck...

10221754 11-19-2004 12:52 PM

Thank for your time, I have already activated the NIC card and i can ping my router and laptop, but Mozilla still give mage
' An error occured while loading https://www.xxx.com, Unknown host www.xxx.com'

can you give more advice please

halo14 11-19-2004 01:06 PM

Maybe you should quit going to PORN AT XXX.COM!!! ;)

I'm joking.. I know what you are saying... That is strange... perhaps it is a DNS issue?? if www.google.com does not load... does 216.239.39.99 ???

Aside from that I don't know... Have you tried any other browsers, perhaps it's a problem with Mozilla??

Good Luck... let us know what you find..

10221754 11-21-2004 04:44 PM

As you can see I can no loger going to any PORN site xxx.com, I cant event connect to it, frustrated!!!.....

I''ve try your suggestion but no luck, do you think is the ADSL modem. I am going to try plug in to the Modem directly.

halo14 11-21-2004 09:05 PM

I assume that you power cycled everything... correct?

By the way... I never did ask.. do you get an IP address on your NIC after you activate it?? do
Code:

ifconfig -a
and you should have something for "eth0"

If you have an IP address than it's not your NIC... after activating the NIC... you also need to restart the network services.. Which is accessed from Main Menu > System Settings (or whatever it's called) > Services dialog box... Scroll down to "network" and restart it...

This is only necessary if you don't have an IP address after activating your NIC...

Anyways... let me know what you find out...

bones996 11-22-2004 01:16 AM

To setup an adsl connection you need the package rp-pppoe & then with the internet setup you need to select adsl. It then prompts you for your dsl username & password among several other things. After this try the command "/sbin/ifup ppp0". If that doesn't work then as root try "adsl-setup" to configure your connection.

10221754 11-22-2004 04:38 PM

Dear Halo14, I cant get the NIC IP, I have try your code, but it says bad command:

[myname@localhost myname]$ ifconfig -a
bash: ifconfig: command not found

what should i do?

10221754 11-22-2004 04:42 PM

Halo14, i have also plug in to the ADSL modem directly, it makes no difference.

michaelk 11-22-2004 06:23 PM

If you can ping the router and the laptop then the network should be working ok. ifconfig is located in /sbin which is not in a users environment path try:
/sbin/ifconfig

Did you configure the router as the gateway?
Look at the output of the route command.

Does /etc/resolv.conf file contain any nameserve IP address information?

halo14 11-22-2004 07:32 PM

under red hat sbin is in your path.. but you must run ifconfig as root.. else it won't work...

plugged into the modem directly via USB or Ethernet?? if it's via USB, you may not have the drivers and such for it...

try ifconfig as root and see what you get...

10221754 11-24-2004 05:16 PM

Dear Halo14, here is my NIC IP:

[lin@localhost /]$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:BD:27:A8:B2
inet addr:192.168.11.6 Bcast:192.168.11.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:510 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:34853 (34.0 Kb) TX bytes:480 (480.0 b)
Interrupt:10 Base address:0xaf00

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:39571 errors:0 dropped:0 overruns:0 frame:0
TX packets:39571 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2643709 (2.5 Mb) TX bytes:2643709 (2.5 Mb)

halo14 11-26-2004 11:24 AM

Okay.. well you have IP address... but I have a feeling there is a problem with your router/DHCP server... becuse it's kind of odd that you subnet is 192.168.11.x because generally it should 192.168.0.x I assume this IP address is when you are connected via the router??

But that may not be what's causeing your internet problems... I'm starting to come to a loss as to why you can't get online.. You are indeed getting an IP from the server.. so there really is not any reason you shouldn't be able to get online...

The only other thing I would do is tell you to set up your subnet for 192.168.0.255 rather than 192.168.11.255

You should be able to do this via the router administration panel.. which is text based and generally accessed through a web browser... It is generally 192.168.1.1 but since you have an oddball subnet.. if that doesn't work, try 192.168.11.1, else check your documentation for the router...


All times are GMT -5. The time now is 03:19 PM.