Date: Mon, 02 Nov 2009 10:19:41 -0800 From: Yuri <yuri@rawbw.com> To: freebsd-questions@freebsd.org Subject: How to set up WEP network on 8.0 in rc.conf? Message-ID: <4AEF22BD.9080500@rawbw.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AEF22BD.9080500>