Chinaunix首页 | 论坛 | 博客
  • 博客访问: 773583
  • 博文数量: 111
  • 博客积分: 3895
  • 博客等级: 中校
  • 技术积分: 1300
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-29 21:26
文章分类

全部博文(111)

文章存档

2014年(22)

2013年(8)

2010年(14)

2009年(21)

2008年(46)

我的朋友

分类: LINUX

2014-01-30 14:42:39

参考:%27_Guide#Wireless

First, identify the name of your wireless interface.

#iw dev

phy#0
        Interface wlp3s0
                ifindex 3
                wdev 0x1
                addr 00:11:22:33:44:55
                type managed
#whereis iw
iw: /usr/bin/iw
#pacman -Qo /usr/bin/iw
/usr/bin/iw is owned by iw 3.13-1

Bring the interface up with:

#ip link set wlp3s0 up

To verify that the interface is up, inspect the output of the following command:

#ip link show wlp3s0

3: wlp3s0:  mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
    link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff
#whereis ip
ip: /usr/bin/ip
#pacman -Qo /usr/bin/ip
/usr/bin/ip is owned by iproute2 3.12.0-1

Alternatively, use iw dev wlp3s0 scan | grep SSID to scan for available networks, then connect to a network with:

#wpa_supplicant -B -i wlp3s0 -c <(wpa_passphrase "ssid" "psk")

Finally, you have to give your interface an IP address. This can be set manually or using the dhcp:

#dhcpcd wlp3s0

#whereis wpa_supplicant
wpa_supplicant: /usr/bin/wpa_supplicant
#pacman -Qo /usr/bin/wpa_supplicant
/usr/bin/wpa_supplicant is owned by wpa_supplicant 2.0-4

#whereis dhcpcd
dhcpcd: /usr/bin/dhcpcd
#pacman -Qo /usr/bin/dhcpcd
/usr/bin/dhcpcd is owned by dhcpcd 6.1.0-1

阅读(966) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~