MadwifiのTroubleshootingより。

メモ。まっさかねー?

  • I cannot get an IP with DHCP

Be sure to be connected to a peer or an Accesspoint before asking a DHCP lease.
Asking a DHCP lease if you are not connected is like having an unplugged RJ45 and asking a DHCP lease.

Never ask a DHCP lease on wifi0, you won't get anything on this interface.

See also the entry above on using restricted mode.

  • Why won't my wireless NIC associate properly when I use enable restricted mode WEP on my AP?

This question and answer were supplied by Aaron Turner.

If your AP is configured to have WEP enabled and is in restricted mode (rather then open mode) the madwifi driver won't properly associate. Symptoms of this include iwconfig showing the NIC associating and unassociating on a regular basis and not being able to send any traffic.

The solution is to force the authentication to restricted mode using iwpriv in addition to iwconfig.

The following commands should do the trick:

iwconfig ath0 key restricted
iwpriv ath0 authmode 2

Hopefully the default behavior will change soon, so that this isn't necessary. Should iwpriv complain about no extensions, you're running an old version of the userspace wireless tools and need to upgrade (see above).