LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-09-2005, 10:04 PM   #1
dx0r515t
Member
 
Registered: Jan 2005
Location: USA
Distribution: Slackware 10.2 & 11.0
Posts: 155

Rep: Reputation: 30
Red Hat 9 and dhclient


I have a strange problem. I cannot connect to the interent or even obtain an IP address. My ethernet network adater is detected and listed as eth0 which is correct because I have only one network device. Now when I log in as a normal user I can't even abtain an IP address, but when I log in as root and run the command
Code:
dhclient eth0
I am assigned an IP address and connect to my cable internet service perfectly. I am wondering how do I get the system to keep these settings? because everytime I restart I have to re-type the above command for me to obtain an IP address. In the network config box I have it set to activate when the computer starts and Its set to obtain an IP address automatically with dhcp. On the DNS tab I have it set the primary DNS to 192.168.2.1(my router) and DNS search path to Belkin and my hostname is localhost.localdomain. It works with these settings after I run this cmd:
Code:
dhclient eth0
but when I restart I cannot connect anymore even though my settings are still exactly the same in the network config window. To get it to work again I have to type this cmd from the terminal on every re-boot as a root user
Code:
dhclient eth0
I was running SuSE 9.1 personal and that OS could connect to my network and internet just fine with no user interaction, the only reason I got rid of that OS is because it has no devel tools at all. Can someone please help me??? THis is really frustrating because I am typing this message right now on the problem red hat system, but I know as soon as I restart I will lose my connection and have to re-type
Code:
dhclient eth0
from a terminal arrgggg
 
Old 01-10-2005, 08:37 AM   #2
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172
Blog Entries: 1

Rep: Reputation: 30
though i don't know how to do this
i think there is a tool that lets you run a specific command at startup
or u could create a script, and have that script run everytime u startup

i know its not very helpful, but maybe if u did some googling ud find something
 
Old 01-10-2005, 10:03 PM   #3
dx0r515t
Member
 
Registered: Jan 2005
Location: USA
Distribution: Slackware 10.2 & 11.0
Posts: 155

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by rksprst
though i don't know how to do this
i think there is a tool that lets you run a specific command at startup
or u could create a script, and have that script run everytime u startup

i know its not very helpful, but maybe if u did some googling ud find something
thanks for responding, do you have any idea why Red Hat would have this problem?
 
Old 01-11-2005, 03:29 AM   #4
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172
Blog Entries: 1

Rep: Reputation: 30
i have no idea why it would have this problem.

also you have a .xinitrc file in your home folder for starting kde or whatever window manager you choose,
i think (though not sure cause it has nothing to do with a window manger) that you can put dhclient ath0 in there and that it will run the script on startup

sorry i cant be more helpful, but hope it helps
 
Old 01-11-2005, 04:38 AM   #5
TaNeK
Member
 
Registered: Dec 2004
Posts: 59

Rep: Reputation: 15
have you compiled your kernel with the right support? this is surely a loong shot, but i had a similar problem a few days ago. it was solved by compiling network support as modules.
 
Old 01-14-2005, 09:25 AM   #6
dx0r515t
Member
 
Registered: Jan 2005
Location: USA
Distribution: Slackware 10.2 & 11.0
Posts: 155

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by rksprst
i have no idea why it would have this problem.

also you have a .xinitrc file in your home folder for starting kde or whatever window manager you choose,
i think (though not sure cause it has nothing to do with a window manger) that you can put dhclient ath0 in there and that it will run the script on startup

sorry i cant be more helpful, but hope it helps
Thanks for the tip, I'll try it and post back
when you said ath0 you ment eth0 right?

Last edited by dx0r515t; 01-14-2005 at 09:26 AM.
 
Old 01-14-2005, 09:30 AM   #7
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 292

Rep: Reputation: 31
In a terminal as root netconfig eth0
 
Old 01-14-2005, 09:31 AM   #8
dx0r515t
Member
 
Registered: Jan 2005
Location: USA
Distribution: Slackware 10.2 & 11.0
Posts: 155

Original Poster
Rep: Reputation: 30
ok thanks
 
Old 01-14-2005, 05:01 PM   #9
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally posted by dx0r515t
Thanks for the tip, I'll try it and post back
when you said ath0 you ment eth0 right?
yeah eth0

for me its ath0...
 
  


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
Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9 Thetargos Red Hat 431 04-13-2007 05:19 AM
Red Hat 9 to Red Hat EL Mozilla Migration Question rharvey@cox Linux - Software 2 01-13-2004 06:43 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 06:33 PM
Red Hat Enterprise vs. Red Hat Linux Project RedHatMN Linux - Distributions 2 07-29-2003 04:16 AM
Red Hat 7.2... & a modem with Red Hat 7.1 driver support rahduku Linux - Distributions 1 02-14-2002 11:49 AM

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

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