help - wifi won't connect automatically on boot ...

Added by Erik Vogan about 1 year ago

Hi,

I am a solaris newbie, although I have used various flavors of *nix for quite a number of years. I installed NCP 3.0 alpha 5 on a system with a linksys WMP55AG wireless card. The install seemed to detect the hardware, and after creating a profile with wificonfig ('wificonfig createprofile profilename ...', then manually connecting ('wificonfig connect profilename') and bringing up the interface ('ifconfig ath0 dhcp'), I have access to the wireless network. This all seems to work as it should.

After rebooting, however, I get the message 'Failed to configure IPv4 DHCP interface(s): ath0', and I have to wait for the connection to time out before I get a system prompt. At this point I can manually reconnect (using the 'wificonfig connect ...' alone ; the ifconfig is not required). I think this means I need to find a way to add wificonfig in to the startup sequence (using the svcadm command ?), but if so I have found no concrete way to accomplish this. If not, can anyone help me troubleshoot ? /var/log/messages doesn't report anything useful in terms of error messages other than "WARNING: init: cryptoregister_provider(arcfour)failed (0x50)" followed by a couple of similar messages from aes _init. These are reported just before the DHCP error, but they are all tagged as warnings, not errors.

I tried adding the hostname into /etc/hostname.ath0 (via a single line - 'inet hostname'), and also tried touching /etc/dhcp.ath0. I have tinkered a bit past this, but nothing concrete enough to justify explanation. Mostly just flailing in hopes of accidentally hitting the answer.

Any ideas what I have managed to do wrong ?

Thanks for any help.

Erik


Replies

help - wifi won't connect automatically on boot ... - Added by Anil Gulecha about 1 year ago

Hi Erik,

If /etc/dhcp.ath0 exists, then the system will try to setup DHCP. Remove this file to skip the DHCP wait during bootup.

~Anil

RE: help - wifi won't connect automatically on boot ... - Added by Erik Vogan about 1 year ago

Anil,

Thanks, I appreciate the help. Your solution does not seem to solve the problem I wish to solve, however, or I may be misunderstanding your answer. I apologize if I was not clear in the initial posting.

I am not looking to stop the delay caused by DHCP timing out. Rather, I am interested in having the wificonfig process run automatically on reboot so that the DHCP process succeeds. I would have to assume that connecting automatically to a wireless service is a rather standard thing to do on reboot, I just can't seem to manage to accomplish it.

Any other suggestions for getting 'wificonfig connect profile' into the boot sequence ?

Thanks.

Erik

RE: help - wifi won't connect automatically on boot ... - Added by Anil Gulecha about 1 year ago

On Thu, Feb 25, 2010 at 7:37 AM, tracker@nexenta.org wrote:

http://nexenta.org/boards/1/topics/159 Erik Vogan

Anil,

Thanks, I appreciate the help.  Your solution does not seem to solve the problem I wish to solve, however, or I may be misunderstanding your answer.  I apologize if I was not clear in the initial posting.

I am not looking to stop the delay caused by DHCP timing out.  Rather, I am interested in having the wificonfig process run automatically on reboot so that the DHCP process succeeds.  I would have to assume that connecting automatically to a wireless service is a rather standard thing to do on reboot, I just can't seem to manage to accomplish it.

Any other suggestions for getting 'wificonfig connect profile' into the boot sequence ?

You can add it to /etc/profile?

~Anil

RE: help - wifi won't connect automatically on boot ... - Added by Erik Vogan about 1 year ago

Anil,

/etc/profile will only execute once a shell is started, not on boot. This machine is intended to be a remote server, and I certainly don't plan to log on to it locally to start the wireless service after a reboot.

I am looking for the equivalent of an init.d script that will enable the wireless service without any user intervention. Again, I am fairly certain this must be a standard configuration, so I must be phrasing something in my query incorrectly.

Thanks.

Erik

RE: help - wifi won't connect automatically on boot ... - Added by Erik Vogan about 1 year ago

Hello Anil,

I found a solution to my problem. I had tried asking for help on the general OpenSolaris forums, and failed to get any response. I did post a response containing the solution, should you be curious:

http://opensolaris.org/jive/thread.jspa?threadID=124590&tstart=0

Thanks for your help.

Erik