Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm having some problems bringing up my wireless card at boot time on my Red Hat Linux 9.0 box. After some investigation with the boot scripts, I noticed that it was having problems with the DHCP negotiations when the ifup wlan0 command is issued.

I then tested the command outside of the booting process and everytime the command is issued the first time, the dhclient fails to get any DHCP offers and returns with the message Unable to obtain a lease on first try. Exiting. and then exits.

If I then issue the same ifup command again a second time, it successfully receives a DHCP offer from the router and receives the needed IP address, and after this, the Internet connection on the box works fine. It is consistently doing this everytime. Why is it failing to obtain a lease the first time?

share|improve this question

1 Answer 1

Probably the init script is trying to get the IP before the network card module is up: anyway you can add the ifup wlan0 command to /etc/rc.local.

share|improve this answer
    
I think it is loading the network card module before trying to get the IP (what I did was disabled the option to bring the card up on startup and checked an "lsmod" right after the box has completed booting into Linux and it shows the needed modules are present. The scripts wouldn't even get to the part of calling dhclient if the modules were not loaded). However, I'll give your suggestion a go - it seems like a nice workaround. –  Methon Dagger Jul 17 '10 at 5:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.