pccard, wi0, wep and DHCP

Erik Norgaard norgaard at locolomo.org
Tue Sep 6 03:22:00 PDT 2005


Uwe Laverenz wrote:
>>'ifconfig_wi0="DHCP"' this works and brings up wi0. Since my town is
>>crowded with wardrivers I would like to use wep. Because my wife often
> You could add something like this to your /etc/dhclient.conf:
> 
> interface "wi0" {
>         media   "ssid <SSID> wepmode on wepkey <WEPKEY>";
> }

Which version of FBSD are you on? On 5.X you can add options to the 
dchlient.conf as described in the previous mail. Alternatively you can 
(IIRC) add options in rc.conf:

   ifconfig_wi0="ssid <SSID> wepmode on wepkey <WEPKEY> DHCP"

This has the unfortunate effect that you can only configure for one network.

On 6.0 the old dhclient has been replaced by OpenBSD's dhclient and 
wpa_supplicant. In that case, including options in dhclient.conf won't work.

Instead you configure the wireless networks you know in wpa_supplicant.conf

Cheers, Erik

-- 
Ph: +34.666334818                                  web: www.locolomo.org
S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt
Subject ID:  9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72
Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9


More information about the freebsd-questions mailing list