LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-04-2011, 05:34 AM   #1
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 74

Rep: Reputation: 1
Internet not working in newly installed RHEL 5


Hi, I am a newbie in Linux & have installed RHEL 5 recently and want to use internet on it. However it doesn't activate my connection when I try activating it through System>Administration>Network>Devices Tab.
My network adapter is "Realtek RTL8139/810x Family Fast Ethernet NIC", and processor is Intel Core 2 Duo.
I read in a thread somewhere to edit a file named resolv.conf to include DNS server address, but don't know how to go about it exactly. I asked my ISP and he gave me two DNS Ip addresses.

Please help me in running internet.
Thanx
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-04-2011, 06:36 AM   #2
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
first check the resolv.conf entry, and what it have. If nothing is inside, follow the below command.

echo "nameserver <you IP>" >> /etc/resolv.conf

After executing this, re-check your network connection.
 
Old 02-04-2011, 06:44 AM   #3
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Greetingz and Welcome to LQ!

I would suggest you familiarize yourself with how to use LQ, which will help you in asking questions. There's a section on "how to post" (I know that sounds really, really low-brow, but hey, even I learned a lot from it).
If you already know how to use BBcode to format a post, you can just skip to the list of supported tags here.

If you've never used a Linux command line before, here's a few links to help you move around inside the guts of the OS.
(This is where you find the "Terminal" shortcut and start to get friendly with the command line.)
An introduction to the Linux command line
GNU/Linux Command-Line Tools Summary
The Vim commands cheat sheet - 1.2

There's also a few of my personal "guidelines" I think anyone starting-out should be aware of;
Rule #1: You do not use the root account.
Rule #2: YOU do not USE the ROOT ACCOUNT, use sudo if you *really* need root!
Rule #3: If a process halts, gives an error, or SEGFAULTS, you read the man pages.
Rule #4: Only one System Administrator to a computer.
Rule #5: One fight question at a time.
Rule #6: No "Diet" drinks, no overhead lights.
Rule #7: Fights Troubleshooting sessions will go on as long as they have to.
Rule #8: If this is your first night at FIGHT CLUB LQ, you HAVE to fight google.

Now on to the problem-solving!

Sample /etc/resolv.conf
Code:
search your.subdomain.com
nameserver 172.16.0.1
nameserver 172.16.0.2
In order to edit this file, you're going to have to use an editor like vi or vim.
Save yourself some pain and make a quick backup of the file (or any file, really), before you start making changes.
"cp -p /etc/resolv.conf /etc/resolv.conf-`date +%Y_%m_%d-%H%M`"

Now, admitedly there should be a way to configure your system to use certain DNS name servers without resorting to the command-line. There's probably a network manager somewhere in the GUI. However, not being in front of a RHEL system at the moment, I couldn't tell you for sure how to do that. You could visit Red Hat's Documentation Site, where they have an installation guide for each RHEL version. Actually, now that I'm looking at the Network Configuration section, it does mention the following;

Quote:
To change your network configuration after you have completed the installation, use the Network Administration Tool.
Type the system-config-network command in a shell prompt to launch the Network Administration Tool. If you are not root, it prompts you for the root password to continue.
Hope this helps! (If it does, be sure to mark this post as helpful.)

P.S: if this solves your issue, go to "Thread Tools" at the top and mark this as [SOLVED].
 
2 members found this post helpful.
Old 02-04-2011, 07:01 AM   #4
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
xeleema your post is Excellent

Last edited by prodev05; 02-04-2011 at 07:07 AM.
 
Old 02-04-2011, 07:40 AM   #5
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Quote:
Originally Posted by prodev05 View Post
xeleema your post is Excellent
Why thank you!
I'll throw it into my LQ blog. Hopefully I can reuse (or redirect) newcommers to it in the future.

EDIT: Blog post is up, added a few embellishments. Hopefully this link works.

Last edited by xeleema; 02-04-2011 at 09:04 AM.
 
Old 02-06-2011, 01:05 AM   #6
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 74

Original Poster
Rep: Reputation: 1
Hey all, I'd also like to ask one more thing. Though it's a stupid question and will invoke many "bah"s, but here it is anyways--
The means through which I'm connecting to the internet is through a LAN cable, i.e. by connecting my comp through LAN cable to a wireless "ADSL2 modem + Router". (Note: In Windows XP, I simply plug in the cable and start using the internet, no connecting manually or authenticating is required) The options it shows in Administration>Network are as follows:-
Ethernet connection
ISDN connection
Modem connection
Token Ring connection
Wireless connection
xDSL connection

So I have to create a New connection, but which one. Forgive my ignorance but I've just started learning.
 
Old 02-06-2011, 01:17 AM   #7
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 74

Original Poster
Rep: Reputation: 1
Hi Arun,
Since I'm a newbie, I'm not able to follow your instructions exactly.
Do I need to do the following:-
open resolve.conf> add "nameserver <my ip>" to it> save changes
Or is it something else? What is echo there for?

Please "spoonfeed" me

Thanx
 
Old 02-06-2011, 03:18 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,239

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
The VERY first bit of "spoonfeed" is this
RHEL is NOT FREE !
you must buy a license no if's and's or but's
YOU MUST !!!!


and run the current 5 version
RHEL 5.6 is current
RHEL 6.0 IS the most current and upto date

i would BUY a license for RHEL 6

--- or ----
install the FREE community supported CentOS 5.5

also BE WARNED with red hat /CentOS
red hat is DESIGNED to be ran on a server WITHOUT a monitor and NO GUI ( graphical user interface ) -text and terminal ONLY
Now there is a gui Gnome - default that can be installed

red hat is a STABLE os the software in the 5 serieas was LOCKED a few years back AND NEVER NEVER NEVER
will be upgraded to newer versions - GOOD FOR A SERVER - bad for the desktop .
- i have had 1 and only 1 crash in 4 years --

This is also GOOD if you need to run software from the scientific community .
- also see "scientific-linux" from Fermilab & CERN --
I do "ISIS 3" from NASA and USGS and "stereo pipeline " from nasa-ames

BUT on my install of CentOS 5.5 i have NO games installed , NO video players ,NO music players
CentOS/RHEL is GREAT for the Office and in the Lab.
not good for the home desktop .
 
1 members found this post helpful.
Old 02-06-2011, 04:19 AM   #9
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Quote:
Originally Posted by infinite_scale View Post
Since I'm a newbie, I'm not able to follow your instructions exactly.
Do I need to do the following:-
open resolve.conf> add "nameserver <my ip>" to it> save changes
Or is it something else? What is echo there for?
Allow me to explain some basic shell usage;
Code:
echo "nameserver <you IP>" >> /etc/resolv.conf
This command is typed into the command prompt. To learn more about this command, type "man echo".
Code:
echo "nameserver <you IP>" >> /etc/resolv.conf
The echo command just outputs whatever you put in double-quotes.
It's output can be redirected from STDOUT (the screen) to a file.
Code:
echo "nameserver <you IP>" >> /etc/resolv.conf
This double greater-than-symbol will redirect STDOUT output of the preceding command.
In the command above, the output is redirected to a file (/etc/resolv.conf).
NOTE: Using a double greater-than symbol will append output to an existing file.
If only a single ">" was used, it would overwrite the entire file.
Don't get ">" and ">>" confused (especially don't get them mixed up with "<").
Code:
echo "nameserver <you IP>" >> /etc/resolv.conf
The <your IP> here should just be the IP of one of your DNS servers. Don't put the "<" and ">" on the command line.

Quote:
Originally Posted by infinite_scale View Post
Please "spoonfeed" me
One of the links in my previous post has a sub-section called "Redirecting standard input and output". It's a really good read, and would probably help you out quite a bit.
 
1 members found this post helpful.
Old 02-08-2011, 02:25 AM   #10
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Smile

Quote:
Originally Posted by xeleema View Post
Why thank you!
I'll throw it into my LQ blog. Hopefully I can reuse (or redirect) newcommers to it in the future.

EDIT: Blog post is up, added a few embellishments. Hopefully this link works.
Yes. Your are absolutely correct. They way you posted in the blog show's your documenting skill and you are using all the available options. I believe you are good in documentation preparation.
Good formatted content with proper indenting
 
Old 02-17-2011, 08:10 AM   #11
infinite_scale
Member
 
Registered: Feb 2011
Location: NCR, Uttar Pradesh, India
Posts: 74

Original Poster
Rep: Reputation: 1
Hi all,
After so much of head-banging, I've just installed Centos 5.5 and am loving it already, simply because it has presented me with no issues whatsoever until now, and the purpose for which I started this thread is solved i.e. Internet connectivity in a RHEL system. And Centos is almost RHEL, right??!! I just logged in for the first time, launched Firefox and Voila!! internet is accessible. I guess it's because of DHCP....

Any comments or enlightening facts, bit of knowledge are welcome. God knows, I have just started working on Linux, and need a lot of help..

Most importantly, should I mark this as solved? Because properly speaking my purpose is solved, even if it's on RHEL-identical OS, and not RHEL itself.. Please guide.

Another important thing, can I confidently practice on Centos considering safely that I'm working on RHEL. I'm asking this because I'm planning to go for Linux certification, RHCE that is. I hope that after working on Centos, I won't face any surprises during the RHCE exam.
Can someone also please guide me on the career aspect of Linux.
Thanx all of you!!

Last edited by infinite_scale; 02-17-2011 at 08:18 AM. Reason: More questions occurred to me later, simple.
 
Old 02-17-2011, 03:59 PM   #12
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Quote:
Originally Posted by infinite_scale View Post
...the purpose for which I started this thread is solved i.e. Internet connectivity in a RHEL system
Cool! If you could hit "Thread Tools" at the top of the page and mark this [SOLVED], that'd be great.

Quote:
Originally Posted by infinite_scale View Post
And Centos is almost RHEL, right??!!
CentOS is a "100% Binary Compatible" RHEL-like distribution. It's built from the SRPMS that Red Hat uses to build RHEL.
As long as you don't add any 3rd-party yum repositories, you'll stay as RHEL-like as possible. Heck, for the most part, a "yum update" will keep your system inline.

Quote:
Originally Posted by infinite_scale View Post
I just logged in for the first time, launched Firefox and Voila!! internet is accessible. I guess it's because of DHCP....
Very awesome! Although I usually don't like "shotgun troubleshooting" (where you blow away a system or reboot it to see if the problem remains), I will admit that there's a point after much hair-pulling where you have to either start looking for a hammer, or an installation DVD.

Quote:
Originally Posted by infinite_scale View Post
Any comments or enlightening facts, bit of knowledge are welcome. God knows, I have just started working on Linux, and need a lot of help..
Well, There's two websites you should get really comfortable with;
CentOS's Wiki (and their FAQ, Docs, HOWTOs, and "Tips & Tricks")
Red Hat's Official Documentation.
A Blog Post of Mine that has a few really good links.
The "How to Use LinuxQuestions.Org" page (I kid you not, there's good stuff in there!)

Quote:
Originally Posted by infinite_scale View Post
Most importantly, should I mark this as solved? Because properly speaking my purpose is solved, even if it's on RHEL-identical OS, and not RHEL itself.. Please guide.
If you think it's solved, it's solved. Go for it.

Quote:
Originally Posted by infinite_scale View Post
Another important thing, can I confidently practice on Centos considering safely that I'm working on RHEL. I'm asking this because I'm planning to go for Linux certification, RHCE that is. I hope that after working on Centos, I won't face any surprises during the RHCE exam.
As long as you read-up on the yum repositories listed in the CentOS website, and heed the warning about 3rd-party repos that could "break" your RHEL-like environment, you're good.

Quote:
Originally Posted by infinite_scale View Post
Can someone also please guide me on the career aspect of Linux.
You might want to consider that Linux is just one "branch" of the UNIX "tree".
/me fights flashbacks of the UNIX wars when I was in grade school
This guy's site has a cool UNIX timeline up. You can hover your mouse over bits of it, and it zooms in.
Also, keep in mind where Red Hat falls in the Linux-world.

Quote:
Originally Posted by infinite_scale View Post
Thanx all of you!!
You're totally welcome! If a particular post really helped you out, hit "Yes" in the bottom-right-hand corner of it.
If several people find a post helpful, then LQ puts a link at the top of the page to "Jump to the Most Helpful post".
(Very handy!)
 
1 members found this post helpful.
  


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
useradd hangs (newly installed rhel 5.2) johnifanx98 Linux - Newbie 2 01-11-2011 02:52 PM
No internet in newly installed Debian macubex Linux - Newbie 5 04-11-2009 05:27 AM
Internet detection by newly installed linux os babu.knl Linux - Newbie 2 03-18-2008 09:14 AM
Cannot get Internet access on newly installed Ubuntu v5.10 chris_i Ubuntu 10 07-20-2006 06:46 PM
newly installed RH9 not working lhesteves Linux - Newbie 6 11-16-2004 10:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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