有线连接时可以 ping 通但无法浏览(Wi-Fi 正常)

有线连接时可以 ping 通但无法浏览(Wi-Fi 正常)

我有 Pop!_OS。今天早上,我将笔记本电脑(使用以太网)硬连接到 Inseego M3000 蜂窝热点,发现我无法浏览。我可以按名称 ping 网站 (google.com),没问题。我尝试了修复可以 ping 通但不能浏览 (在Ask Ubuntu上),如下所示,无济于事。

当我拔掉以太网插头并通过 Wi-Fi 连接时,一切正常。

我努力了:

  1. 指向/etc/resolv.conf系统:

    sudo rm -f /etc/resolv.conf
    sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
    
  2. 将该行附加net.ipv4.tcp_timestamps=0/etc/sysctl.conf

    sysctl -w net.ipv4.tcp_timestamps=0
    sysctl -p
    
  3. 我已将 Inseego DNS 设置1.1.1.18.8.8.8

    ip route show to default
    
    default via 192.168.1.1 dev wlp0s20f3 proto dhcp metric 600 
    

    现在的内容/etc/resolv.conf是:

    nameserver 192.168.1.1
    search .
    

在所有这些情况下,当连接到有线时,我无法浏览。当返回 Wi-Fi 时,一切顺利。

这是输出lshw

 *-network                 
       description: Wireless interface
       product: Tiger Lake PCH CNVi WiFi
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       logical name: wlp0s20f3
       version: 11
       serial: [REMOVED]
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=6.8.0-76060800daily20240311-gen firmware=77.ad46c98b.0 QuZ-a0-hr-b0-77.u ip=[REMOVED] latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: iomemory:620-61f irq:16 memory:622e1bc000-622e1bffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:5c:00.0
       logical name: enp92s0
       version: 15
       serial: [REMOVED]
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.8.0-76060800daily20240311-gen firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:18 ioport:3000(size=256) memory:6c204000-6c204fff memory:6c200000-6c203fff

答案1

这是一个盲打,但您需要DNSInseego M3000 cellular hot spot

在那里找到DNS设置并将DNS其设置为1.1.1.18.8.8.8

然后在您的本地系统上输入Pop!_OS地址/etc/resolve.confnameserver该地址是您的默认网关Inseego M3000 cellular hot spot

要了解默认网关,请ip route show to defaultPop!_OS连接到时运行命令Inseego...

你最后需要重新启动NetworkManager你的Pop! OS

sudo systemctl restart NetworkManager

相关内容