新的 USB 无线网卡无法获取 IP 地址

新的 USB 无线网卡无法获取 IP 地址

使用 Ubuntu 18 - 我可以插入一个非常旧的 USB2 USB wifi 加密狗,并且工作正常 - 但速度相当慢。

所以我刚刚购买了一个新的 USB3 加密狗来获得更快的速度。

最初我可以看到该设备,lsusb但它没有出现在ifconfig列表中。因此,我不得不安装一个新的 realtek 驱动程序“rtl88x2bu wifi 适配器驱动程序” - 现在我可以看到该设备:

root@tv:/home/mediaserver/drivers/rtl88x2bu# lsusb
Bus 002 Device 002: ID 8087:8001 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8009 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 004: ID 2357:011e TP-Link 802.11ac WLAN Adapter
Bus 003 Device 002: ID 0bda:b812 Realtek ... USB3.0 802.11ac 1200M Adapter  <==== THIS ONE
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@tv:/home/mediaserver/drivers/rtl88x2bu# ifconfig
eno1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 40:16:7e:ad:d8:81  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xdfc00000-dfc20000

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 154  bytes 14484 (14.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 154  bytes 14484 (14.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlx90de80df6a1b: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500  <==== THIS ONE
        ether 90:de:80:df:6a:1b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlxd037451bf5ac: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 2312
        inet 192.168.1.120  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::5669:c0a2:a3cb:c02a  prefixlen 64  scopeid 0x20<link>
        inet6 2a00:23c7:a324:f601:b7ec:6dcb:df40:2bbb  prefixlen 64  scopeid 0x0<global>
        ether d0:37:45:1b:f5:ac  txqueuelen 1000  (Ethernet)
        RX packets 563  bytes 125266 (125.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 470  bytes 84199 (84.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

您可以看到标有“THIS ONE”注释的设备。您可以看到它没有 IP 地址。

我努力了:

ifconfig wlx90de80df6a1b 192.168.1.121 up

它似乎给了它一个 IP 地址 - 我可以在本地 PC 上 ping 通这两个地址...但现在我无法从网络上的任何其他 PC ping 通任何一个地址(192.168.1.120 或新的 192.168.1.121)。

ifconfig 显示:

wlx90de80df6a1b: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.1.121  netmask 255.255.255.0  broadcast 192.168.1.255    <==== NEW
        ether 90:de:80:df:6a:1b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlxd037451bf5ac: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 2312
        inet 192.168.1.120  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::5669:c0a2:a3cb:c02a  prefixlen 64  scopeid 0x20<link>
        inet6 2a00:23c7:a324:f601:b7ec:6dcb:df40:2bbb  prefixlen 64  scopeid 0x0<global>
        ether d0:37:45:1b:f5:ac  txqueuelen 1000  (Ethernet)
        RX packets 1169  bytes 207937 (207.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 831  bytes 151896 (151.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

所以我现在对发生的事情感到困惑。有什么想法可以测试/调试吗?

加法 1

从 Ubuntu PC 我可以 ping 外部位置(例如www.google.com)和我的其他网络电脑可以通过旧适配器连接到互联网,但不能通过新适配器连接到互联网:

  • ping -I wlxd037451bf5ac www.google.com- 好的
  • ping -I wlx90de80df6a1b www.google.com- 不工作

相关内容