参考:%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
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