Thanks for FBSD6

Erik Nørgaard norgaard at locolomo.org
Wed Dec 7 12:58:33 PST 2005


Dominique Goncalves wrote:

>>basically the meat of the script looks like:
>>
>>ifconfig ath0 ssid "my wireless network"
>>dhclient ath0
>>
>>
>>if someone can tell me what /etc/rc.conf options i need to set to
>>duplicate that, that would be cool.  i played around with it for a while
>>but never got it to work without my custom script.
>
> You can use in /etc/rc.conf:
> 
> ifconfig_ath0="DHCP ssid your_ssid"

That's FreeBSD 5.X and prior way of doing it. The suggested way to 
config your wirerless is with wpa_supplicant(8). In rc.conf add:

wpa_suplicant_enable="YES"
ifconfig_ath0="DHCP"

and create wpa_supplicant.conf:

network={
     ssid="MyWireless"
     mode="11g"
}

The neat thing is that you can configure multiple networks and 
wpa_supplicant will try them in order.

Note that dhclient was replaced with the new OpenBSD implementation in 
FBSD6, and wpa_supplicant introduced to handle association with wireless 
networks.

Cheers, Erik
-- 
Ph: +34.666334818                           web: http://www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2


More information about the freebsd-questions mailing list