我正在尝试通过 USB wifi 适配器(TP-LINK TL-WN8200ND v1.0)为 ubuntu 服务器 18.04 设置无线连接。
从开始NetworkManager
,配置不同的驱动程序,清理我的系统,现在尝试netplan
(感谢@heynnema -如何在 ubuntu server 18.04 上使用 TP-LINK TL-WN8200ND v1.0?)。
扫描 wifi 网络有效但连接失败(超时)。
> sudo lshw -C network
*-network
description: Ethernet interface
product: Ethernet Connection I217-LM
vendor: Intel Corporation
physical id: 19
bus info: pci80000:00:19.0
logical name: enp0s25
version: 05
serial: d0:50:99:c0:84:7c
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.13-4 latency=0 link=no multicast=yes port=twisted pair resources: irq:26 memory:efd00000-efd1ffff memory:efd3c000-efd3cfff ioport:f080(size=32)
*-network
description: Ethernet interface
product: I210 Gigabit Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci80000:02:00.0
logical name: enp2s0
version: 03
serial: d0:50:99:c0:84:7d
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotation
configuration: autonegotiation=on broadcast=yes driver=igb driverversion=5.4.0-k firmware=3.16, 0x800004d6 latency=0 link=no multicast=yes port=twisted pair resources: irq:18 memory:efc00000-efc7ffff ioport:e000(size=32) memory:efc80000-efc83fff
*-network
description: Wireless interface
physical id: 1
bus info: usb03:12
logical name: wlx10feed2228ac
serial: 10:fe:ed:22:28:ac
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8xxxu driverversion=4.15.0-72-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11
> cat /etc/netplan/*.yaml
network:
renderer: networkd
version: 2
ethernets:
enp2s0:
dhcp4: true
optional: true
enp0s25:
dhcp4: true
optional: true
wifis:
wlx10feed2228ac:
dhcp4: true
access-points:
"Totoro":
password: "**********"
> ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 cdic fq_code1 state DOWN group default qlen 1000
link/ether d0:50:99:c0:84:7c brd ff:ff:ff:ff:ff:ff
3: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdic mq state DOWN group default qlen 1000
link/ether d0:50:99:c0:84:7d brd ff:ff:ff:ff:ff:ff
4: wlx10feed2228ac: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdic mq state DOWN group default qlen 1000
link/ether 10:fe:ed:22:28:ac brd ff:ff:ff:ff:ff:ff
> sudo iwlist wlx10feed2228ac scan | less
....
Cell 15 - Address: xx:xx:xx:xx:xx:xx
Channel: 1
Frequency: 2.437 Ghz (Channel 1)
Quality= 70/70 Signal level=46 dBm
Encryption key:on
ESSID:"Totoro"
Bit Rates: 1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates: 24 Mb/s; 36 Mb/s; 40 Mb/s; 54 Mb/s
Mode: Master
Extra:tsf=...
Extra: Last beacon: 920ms ago
IE: Unknown: ....
....
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
....
> journalctl -xe
wpa_supplicant: wlx10feed2228ac: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='Totoro' freq=2412 MHz)
kernel: wlx10feed2228ac: send auth to xx:xx:xx:xx:xx:xx (try 1/3)
kernel: wlx10feed2228ac: send auth to xx:xx:xx:xx:xx:xx (try 2/3)
kernel: wlx10feed2228ac: send auth to xx:xx:xx:xx:xx:xx (try 3/3)
kernel: wlx10feed2228ac: authentication with xx:xx:xx:xx:xx:xx timed out
wpa_supplicant: wlx10feed2228ac: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Totoro" auth_failures=16 duration=120 reason=CONN_FAILED