LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-18-2004, 04:56 PM   #1
10221754
LQ Newbie
 
Registered: Nov 2004
Location: London
Posts: 10

Rep: Reputation: 0
Angry 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
 
Old 11-19-2004, 10:24 AM   #2
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
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...
 
Old 11-19-2004, 12:52 PM   #3
10221754
LQ Newbie
 
Registered: Nov 2004
Location: London
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 11-19-2004, 01:06 PM   #4
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
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..
 
Old 11-21-2004, 04:44 PM   #5
10221754
LQ Newbie
 
Registered: Nov 2004
Location: London
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
Old 11-21-2004, 09:05 PM   #6
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
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...
 
Old 11-22-2004, 01:16 AM   #7
bones996
Member
 
Registered: Sep 2003
Location: Pennsylvania
Distribution: Debian Squeeze
Posts: 106

Rep: Reputation: 15
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.
 
Old 11-22-2004, 04:38 PM   #8
10221754
LQ Newbie
 
Registered: Nov 2004
Location: London
Posts: 10

Original Poster
Rep: Reputation: 0
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?
 
Old 11-22-2004, 04:42 PM   #9
10221754
LQ Newbie
 
Registered: Nov 2004
Location: London
Posts: 10

Original Poster
Rep: Reputation: 0
Halo14, i have also plug in to the ADSL modem directly, it makes no difference.
 
Old 11-22-2004, 06:23 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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?
 
Old 11-22-2004, 07:32 PM   #11
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
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...
 
Old 11-24-2004, 05:16 PM   #12
10221754
LQ Newbie
 
Registered: Nov 2004
Location: London
Posts: 10

Original Poster
Rep: Reputation: 0
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)
 
Old 11-26-2004, 11:24 AM   #13
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
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...
 
  


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
Can't connect to the net after Red hat 9.0 installtion with internet config wizard Linux2excel Linux - Hardware 5 04-11-2005 04:44 PM
How to Connect to Remote Red Hat 9 Machine Via Internet? shelldinesh Linux - General 3 10-06-2004 12:13 PM
Cant connect to the internet through Red HAT Linux 7.1 shradha Linux - Networking 4 07-06-2004 06:37 PM
cant connect to internet in red hat BigHeadDog Linux - Networking 7 11-23-2003 11:11 PM
Red Hat 7.2 won't connect when... Spoox Linux - Networking 1 01-13-2002 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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