How to set up WEP network on 8.0 in rc.conf?

Yuri yuri at rawbw.com
Mon Nov 2 18:19:41 UTC 2009


I use this working script to start WEP network:
ifconfig wlan0 create wlandev ath0
ifconfig wlan0 ssid "xyz abc" weptxkey 1 deftxkey 1 wepmode on wepkey 
0xXXXXXXXXXX up
dhcpcd wlan0

How do I write an equivalent line into rc.conf?
Section 31.3.3.1.4 in 
http://www.freebsd.org/doc/en/books/handbook/network-wireless.html 
suggests this:

# ifconfig /ath0/ ssid my_net wepmode on weptxkey 3 wepkey 3:0x3456789012 \
        inet /192.168.1.100/ netmask /255.255.255.0/


So I wrote:
ifconfig_ath0="ssid xyz\ abc weptxkey 1 deftxkey 1 wepmode on wepkey 
0xXXXXXXXXXX DHCP"
and it doesn't work.

This line:
ifconfig wlan0 create wlandev ath0
became necessary in 8.0 and it creates wlan0 device, which is missing 
when I use the above line in rc.conf.
There's also a space in ssid.

So what would be the correct rc.conf in my case?

Yuri



More information about the freebsd-questions mailing list