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

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to