File:  [NetBSD Developer Wiki] / wikisrc / users / jun / wlan.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Tue Feb 7 08:08:11 2012 UTC (2 years, 2 months ago) by wiki
Branches: MAIN
CVS tags: HEAD
web commit by jun

NetBSDでの無線LAN設定
===================

1. WEPの時

[[!template id=programlisting text="""
# ifconfig iwn0 ssid "sdfsdfdsfsdf" nwkey "sdfsfsdfsfs"

# ifconfig iwn0 ssid "sdfsdfdsfsdf" nwkey "0x0123ABCDEF" 
"""]]
 

2. WPA-PSKの時

/etc/wpa_supplicant.confに設定内容を書く。

 
[[!template id=programlisting text="""
ctrl_interface=/var/run/wpa_supplicant

ctrl_interface_group=wheel

network={

        ssid="oschiroshima_booth_xx"

        scan_ssid=1

        key_mgmt=WPA-PSK

        psk="osc2011hiroshima1"

}
"""]]

と書いて、
[[!template id=programlisting text="""
# ifconfig iwn0 up

# /usr/sbin/wpa_supplicant -dd  -i iwn0 -c /etc/wpa_supplicant.conf
"""]]
でうまく動いたら-ddをとる。

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb