Click to See Complete Forum and Search --> : DHCP Problem


esgsr1
11-20-2003, 03:02 AM
I am a relative newbie to linux. I have used Mandrake 9x and Redhat 8/9 for over a year, and never really learned anything because everything is configured for you. So I loaded Gentoo after hearing how great it is. The computer is a Dell Latitude CpxJ laptop with a Xircom RealPort Eth. 10/100 RE-100 PCMCIA card. When I booted from the CD I had to run net-setup eth0 to configure a static address. (DHCP always worked in mdk and rh)

when I run ifconfig eth0 I get all sorts of info about my card with the exception of any IP addresses. When I run dhcpcd eth0 it sits there for about a minute and goes back to the prompt, not address, no error.

I tried to make it static using ifconfig eth0 192.168.253.105, but i don't get any DNS that way and don't know how to enter it. (and would prefer to use DHCP, but at this point I don't care)

I also tried to locate net-setup but it doesn't seem like it is on the system (I ran locate net-setup)

Thanks for any help!!

dboyer
11-20-2003, 03:15 AM
DNS should be stored in /etc/resolv.conf

or something similiar.

syntax should be:

nameserver x.x.x.x

andycrofts
11-20-2003, 03:54 AM
Hi
Need more info.
What is your laptop connected to? Is the dchpd running on the server machine?

OK. running "locate net-setup" won't find anything unless you've done an "updatedb" first.

does "lsmod" show your module for the interface card? If so, I guess the number in the "used" column is 0.
If you're OK so far (if you've installed Gentoo via internet, you should be!)
Try (as root), without the quotes, of course:-

"dhclient"
then
"ifconfig eth0 up"
then
"ifconfig" to see if it worked. (I only learned this late last night after breaking a Debian sıstem!)

Do a "man dhclient" if this doesn't work...
Unfortunately, I can only talk to my home server from work, so there's no dhclient.conf file. Look at yours, and post it.
Someone (else) will chip in - timezones and work will make any responses from me slow.
-Andy