arch Linux 无线网,Arch Linux上的无线上网(命令行)

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值