我为我的 Ubuntu 20.04 买了一个 TP-Link UE300 V.3 适配器,内核版本为 5.13.0-35-generic,但它不起作用。我“有线连接”并有 100MB/s。我试过了,sudo dhclient -r
但sudo dhclient
没有用。我有华硕 Vivobook S14/S15。我正试图连接到学校的公共网络,所以我无法对路由器做任何事情。电缆是 Cat5e。我尝试将电缆和适配器连接到装有 Windows 10 的笔记本电脑,它成功了,所以我猜问题出在我的笔记本电脑上。
ifconfig
:
inet 192.168.0.126 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::b6b0:24ff:fe15:7e13 prefixlen 64 scopeid 0x20<link>
ether b4:b0:24:15:7e:13 txqueuelen 1000 (Ethernet)
RX packets 982 bytes 108355 (108.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 569 bytes 50486 (50.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 4200 bytes 398476 (398.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4200 bytes 398476 (398.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo lshw -C network
:
description: Wireless interface
product: Wireless-AC 9462
vendor: Intel Corporation
physical id: 14.3
bus info: pci@0000:00:14.3
logical name: wlo1
version: 00
serial: c8:58:c0:9e:e6:f7
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=5.13.0-35-generic firmware=63.c04f3485.0 QuZ-a0-hr-b0-63.u latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:16 memory:c431c000-c431ffff
*-network
description: Ethernet interface
physical id: 1
bus info: usb@1:3
logical name: enxb4b024157e13
serial: b4:b0:24:15:7e:13
size: 100Mbit/s
capacity: 1Gbit/s
capabilities: ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v2.15.0 (2021/04/15) duplex=full ip=192.168.0.126 link=yes multicast=yes port=MII speed=100Mbit/s
ping google.com
:
ping: google.com: Temporary failure in name resolution
route -n
:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 20100 0 0 enxb4b024157e13
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 enxb4b024157e13
我必须指定我尝试手动安装驱动程序https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software(Unix/Linux)以及 GIT:https://github.com/JulAlx/TP-Link-UE300-UE330-Linux-Driver但它不起作用。sudo make
我输入了 Realtek 链接驱动程序Warning: modules_install: missing 'System.map' file. Skipping depmod.
,但无法使用 vmware。
有任何想法吗?
编辑:忘了说了,当我拔掉笔记本电脑的电源超过 20 分钟时,它工作了几次。之后,当我再次拔掉电源并重新插入时,它就停止工作了。我没有真正的经验。
EDIT2:正如 chilli555 所说:
ping -c3 8.8.8.8
:
From 192.168.0.1 icmp_seq=1 Destination Net Unreachable
From 192.168.0.1 icmp_seq=3 Destination Net Unreachable
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, +2 errors, 100% packet loss, time 2031ms
ls -al /etc/resolv.conf
:
lrwxrwxrwx 1 root root 39 mar 13 2022 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
现在启动笔记本电脑,有线连接 4 小时后没有问题。拔下电源再插上,还是无法使用。
ping -c3 8.8.8.8
EDIT3:不知道为什么会有不同的地址。这是以太网正常工作时的答案:
64 bytes from 8.8.8.8: icmp_seq=1 ttl=112 time=17.3 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=112 time=17.3 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=112 time=17.6 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 17.296/17.398/17.582/0.130 ms
您认为什么地方出了问题?