我无法在新安装的设备上连接到我的 Wi-Fi 网络Ubuntu 20.04 server
(没有安装其他软件包wireless-tools
)。
首先,我检查(用lspci
)系统检测到我的 Wi-Fi 适配器(Network controller Qualcomm Atheros AR9462 Wireless Network Adapter [168c:0034] (rev 01)
)。然后,我检查了接口名称
foo@bar: iwconfig
docker0 no wireless extensions.
lo no wireless extensions.
enp1s0 no wireless extensions.
wlp2s0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=16 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
然后,我将接口名称添加wl2ps0
到netplan
配置文件中
/etc/netplan/01-netcfg.yaml
network:
version: 2
ethernets:
enp1s0:
dhcp4: true
wifis:
wlp2s0:
dhcp4: true
access-points:
"MyNetworkSSID":
password: "MySecretPasswort"
并重新启动系统。重启后系统没有连接到Wi-Fi和接口wlp2s0
foo@bar: ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 00:e4:4f:68:02:9b brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
link/ether b0:10:41:84:69:e1 brd ff:ff:ff:ff:ff:ff
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
link/ether 02:42:61:94:e2:20 brd ff:ff:ff:ff:ff:ff
是DOWN
。我试图用它来激活它,
ip link set wlp2s0 up
但这没有效果(界面仍然是DOWN
)。
这里有什么问题?