LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-05-2011, 01:23 PM   #1
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 78

Rep: Reputation: 1
Internet not working in RHEL 5 even after configuring


I installed RHEL 5 today and set my network. Did it as follows:
Eth0 connection
Primary DNS 192.168.1.1

When I click on Activate, it says:
8139too device eth0 does not seem to be present, delaying initialization.
This message shows no matter how many times I log out or restart.

I don't know what the heck is the problem. I've done the essentials but still it's not working. I looked up on the net but people were saying things like ifconfig and lspci, and at the end still weren't able to solve it. I don't know all this since I'm new to Linux. Another important thing...after facing this same problem some time ago, I installed Centos which asked for internet settings right at the time of installation. And after logging in for the first time, I was able to use internet without any problem. How come internet works on Centos (which is a copy of RHEL) without any problems, but not working on RHEL itself??

Quick help needed..please..
 
Old 04-05-2011, 07:56 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
could be a driver issue.
You need to check exactly which versions of Centos & RHEL you are trying eg

Centos 5.5 vs RHEL 5.4 ?

Try
Code:
cat /etc/*release*

uname -a
also use yum http://kbase.redhat.com/faq/docs/DOC-2531 to check for drivers
 
Old 04-10-2011, 06:42 AM   #3
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 78

Original Poster
Rep: Reputation: 1
It was Centos 5.5
When I run uname -a in red hat it shiws el5.. so I guess it's 5 only...

What to do now??
 
Old 04-11-2011, 04:02 PM   #4
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 78

Original Poster
Rep: Reputation: 1
Guys, please help me. Why isn't anyone replying??!!
 
Old 04-11-2011, 06:20 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
seeing as RHEL 5.? something? what version do you have installed
is not free .Have you asked red hat?
http://www.redhat.com/support/

the current version in the 5 series is 5.6
with RHEL 6.0 being the current

unless you NEED the older 5 series for an older program i would recommend you upgrade to RHEL6

the network on rhel is basically 100% manual seeing as it is meant for a server

eth0 - so this is a cable connection?
are you behind a router ( wired or wireless ) ?
also some isp's royally mess up linux and the DNS look up
have you tried Googles # ? ( 8.8.8.8 and 8.8.4.4 )
 
Old 04-11-2011, 07:22 PM   #6
glennt11
LQ Newbie
 
Registered: Aug 2004
Location: NY
Distribution: Ubuntu,Red Hat,Centos 5
Posts: 29

Rep: Reputation: 0
Just like John VV said above. RHEL doesn't provide a pre-built OS. Centos is a copy of it though, so just use that! The most difference I've seen is the menu layout looks VERY slightly different, but all the commands and programs will work exactly the same. You've answered your own question by running CentOS.

That or go ahead and buy a support contract with Red Hat. Their new policy is making it difficult for CentOS to follow them now, so you may be sitting on CentOS 5.5 for a while.
 
Old 04-16-2011, 05:40 PM   #7
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 78

Original Poster
Rep: Reputation: 1
Yes, this a cable connection I am using at my home. I just connect the ethernet cable from my Modem + ADSL2 to my desktop.
As to the router, as I wrote, it's a modem + router.
Nothing works, not even Google opens up.

If RHEL is not a pre-built OS and if Centos is a copy of RHEL, how come internet runs totally fine on Centos??
And if I start working on Centos, should I assume safely that I'll be able to work on RHEL whenever the need arises, without any problems??

Well, buying support from Red hat is out of question as I am not an admin or something, I am a regular guy who's starting to learn Linux at home from career point of view.
And if the new policy of Red Hat is gonna make it difficult for Centos to follow them so will it be safe to work on Centos?

I know these are a lot of questions but please answer all of em. I'm just curious :-)
 
Old 04-16-2011, 07:04 PM   #8
sibe
Member
 
Registered: Apr 2011
Location: Jakarta, Indonesia
Distribution: Fedora, CentOS
Posts: 122

Rep: Reputation: 21
Quote:
Originally Posted by infinite_scale View Post
And if I start working on Centos, should I assume safely that I'll be able to work on RHEL whenever the need arises, without any problems??
Yes you should. I've been working on both systems for these last couple years and found very little differences in term of system behavior, but as long as related to the syntax and how you configure everything; for what you can do in RHEL, you can apply it to CentOS as well, and vice versa.

More often than not, problems arise from the configuration level. In your case;
1. Are you sure your RHEL's configuration has a same configuration with your CentOS?
2. What network service are you using, is it network or NetworkManager?
3. What's the ethtool eth0 command output?

Quote:
And if the new policy of Red Hat is gonna make it difficult for Centos to follow them so will it be safe to work on Centos?
Whatever it is, we might have to wait a bit longer than usual, but I'm sure CentOS will eventually catch up with it, just like Scientific Linux did with their release of SL6. So don't worry, your skill on CentOS will still be applicable on RHEL.

----
sibe

Last edited by sibe; 04-16-2011 at 07:09 PM.
 
Old 04-17-2011, 03:30 AM   #9
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 78

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by sibe View Post

In your case;
1. Are you sure your RHEL's configuration has a same configuration with your CentOS?
2. What network service are you using, is it network or NetworkManager?
3. What's the ethtool eth0 command output?

Hi sibe,
I am sorry I really don't get these questions very well..as I mentioned, I am new to Linux.
1. How to find if RHEL config is same as that of Centos?
2. I really don't know which service I am using but it just says Network in the Administration, from where I access it. So I guess it's network that I'm using. Had it been using NetworkManager, then would it have been showing NetworkManager over there????
3. When I right click on desktop and open terminal, then type "ethtool eth0" in terminal, it says "command not found".

Thanks
 
Old 04-17-2011, 05:10 AM   #10
sibe
Member
 
Registered: Apr 2011
Location: Jakarta, Indonesia
Distribution: Fedora, CentOS
Posts: 122

Rep: Reputation: 21
Quote:
Originally Posted by infinite_scale View Post
I am sorry I really don't get these questions very well..as I mentioned, I am new to Linux
No problem, let's just concentrate on making your network really work then

First of all, you need to be sure that your cable has really plugged in and alive, that means it connected to the other end and has carrier signal on it. Open the terminal, and switch to root. At the command prompt, type ethtool eth0 to check if your eth0 is alive :

Quote:
root ~# ethtool eth0
Settings for eth0:
Current message level: 0x00000007 (7)
Link detected: yes
If you're seeing Link detected: yes line, eth0 is active.

Now, for testing purpose, try give it an IP and bring it online :

Quote:
# ifconfig eth0 1.2.3.4 netmask 255.x.x.x up
where 1.2.3.4 and 255.x.x.x are the IP and netmask that you should adhere to the network segment you have connected to. Or if you have a DHCP server active on that segment, try :

Quote:
# dhclient eth0
to send a request for an IP to your DHCP server.

Check the result with ifconfig eth0 command, if it has UP and RUNNING words on it, then your interface is now online. Try give it some tests, ping to the gateway, if you get a reply, then you should put the default gateway IP to the routing table. At the prompt, type :

Quote:
# ip route add default via 1.2.3.1
where 1.2.3.1 is your gateway ip. To make your network fully usable, put the DNS IP to /etc/resolv.conf, with the following entry :

Quote:
nameserver 8.8.8.8
where 8.8.8.8 is your DNS IP. In fact, you can use 8.8.8.8 as well.

When everything goes fine, you need to make your IP configuration persistent.
 
Old 04-17-2011, 05:27 AM   #11
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 78

Original Poster
Rep: Reputation: 1
Hi sibe,

There is a problem right on the first step itself.
When I switch to root and run the command "ethtool eth0", it still says "bash: command not found".
Why does it not recognize this command?
 
Old 04-17-2011, 05:39 AM   #12
sibe
Member
 
Registered: Apr 2011
Location: Jakarta, Indonesia
Distribution: Fedora, CentOS
Posts: 122

Rep: Reputation: 21
--
Try switch with su -
(It's su-spacebar-minus).

The command ethtool is in /sbin/, which is excluded from ordinary user's default path.

Last edited by sibe; 04-17-2011 at 05:43 AM.
 
Old 04-20-2011, 04:50 PM   #13
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 78

Original Poster
Rep: Reputation: 1
ok sibe.. su - worked

It says--
Settings for eth0:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available

I don't why it shows up like this. My modem is switched, everything is ok.
And sibe, what's this su - command. How's it different from a simple su command. And when you say it's "not included in the ordinary user's default path", does it mean people other than root cannot use it??
 
Old 04-20-2011, 05:17 PM   #14
sibe
Member
 
Registered: Apr 2011
Location: Jakarta, Indonesia
Distribution: Fedora, CentOS
Posts: 122

Rep: Reputation: 21
Quote:
Originally Posted by infinite_scale View Post
Cannot get link status: No such device
No data available
Well that only means one thing for me; there's no eth0 on your machine.
What about ethtool eth1, ethtool eth2? Do you get the same result?

Can you put in here the output of
Quote:
ls /etc/sysconfig/network-scripts | grep ifcfg
For difference between su - and su, please have a look this link :
http://studyhat.blogspot.com
 
Old 04-20-2011, 05:20 PM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well RHEL is for servers and as such most of the time you need to set everything by hand

is Gnome installed ?
i am assumming -yes- seeing this is a HOME install
at the top of the window is "system"
from there go to " Adminastration "
from there " network"

enter the DNS and ip and net mask into the windows

then in the same menue in "services"

"networkmanager " should be at the VERY top of the list ( out of alphabetical )
it should be ON
then "network" down in the midle of the list should be OFF
BOTH must NOT be on at the same time
use one or the other

network is mostly manual
networkmanager uses the auto set up

and fallow the CentOS how to's
http://wiki.centos.org/HowTos#head-6...24a297bc0208b6
http://wiki.centos.org/HowTos/Laptops/NetworkManager
 
  


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
[SOLVED] Help configuring Bind on RHEL 5 ma-xr Linux - Server 3 03-03-2011 08:57 PM
[SOLVED] Internet not working in newly installed RHEL 5 infinite_scale Red Hat 11 02-17-2011 02:59 PM
Configuring DHCP and Internet sharing on RHEL5, still not working. mid_nightslover Linux - Enterprise 5 03-21-2010 01:20 AM
Internet is not working in RHEL server 5 kumar.chakram Linux - Newbie 7 12-13-2009 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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