LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Red Hat 9 and dhclient (https://www.linuxquestions.org/questions/linux-newbie-8/red-hat-9-and-dhclient-275909/)

dx0r515t 01-09-2005 10:04 PM

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

rksprst 01-10-2005 08:37 AM

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

dx0r515t 01-10-2005 10:03 PM

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?

rksprst 01-11-2005 03:29 AM

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

TaNeK 01-11-2005 04:38 AM

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.

dx0r515t 01-14-2005 09:25 AM

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?

james.farrow 01-14-2005 09:30 AM

In a terminal as root netconfig eth0

dx0r515t 01-14-2005 09:31 AM

ok thanks

rksprst 01-14-2005 05:01 PM

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...


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