archlinux设置无线网络连接

  • Check the driver
    $ lspci -k

  • Open the network card
    $ ip link set <设备名> up

  • Check device status
    $ ip link show wls1

if there is an UP in <> then the device is READY

Then can use the tools to connect wireless router

manual way

  • check the interface or device
    $ iw dev

  • connection status
    $ iw dev wls1 link

  • 查看接入点
    $ iw dev wlan0 scan |less

  • 无加密
    $ iw wls1 connect MyEssid

  • WEP
    $ iw dev wls1 connect your_essid key 0:your_key

WPA/WPA2

  • create passphrase file
    check the example /etc/wpa_supplicant/wpa_supplicant.conf
    or use `$ wpa_passphrase testapn password' to create a password file

  • connect with wpa_supplicant
    $ wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf

posted on 2015-04-13 21:43  camash  阅读(848)  评论(0编辑  收藏  举报

导航