我认为这个问题已经针对不同的版本多次问过,但我仍然没有运气连接到互联网。
当我从 Wifi 设置连接到我的路由器时,它会在右上角给我一个小连接图标,但是当我尝试上网时,我得到了 no internet dino。
我已经尝试使用这些问题的所有答案:无线连接但无法访问互联网和无线网络疑难解答以及一些博客文章,但没有运气。
如果我跑步,nmcli device
我会得到:
DEVICE TYPE STATE CONNECTION
wlp1s0 wifi connected SpectrumSetup-90
virbr0 bridge connected virbr0
p2p-dev-wlp1s0 wifi-p2p disconnected --
lo loopback unmanaged --
virbr0-nic tun unmanaged --
当我尝试 ping google 的 IP 时,我得到:
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.0.7 icmp_seq=1 Destination Host Unreachable
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, +1 errors, 100% packet loss, time 2008ms
当我跑步时,ifconfig
我得到:
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 txgueuelen 1000 (Local Loopback)
RX packets 77276 bytes 11254278 (11.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 77276 bytes 11254278 (11.2 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:d3:76:87 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
wlp1s0: flags=4163<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.1.253 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2605:e000:151f:867c::174b prefixlen 128 scopeid 0x0<global>
inet6 2605:e000:151f:867c:e9a7:64a4:4936:d44d prefixlen 64 scopeid 0x0<global>
inet6 2605:e000:151f:867c:9c7f:1bcd:f035:752c prefixlen 64 scopeid 0x0<global>
inet6 2605:e000:151f:867c:eb72:697:939a:2674 prefixlen 64 scopeid 0x0<global>
inet6 2605:e000:151f:867c:11a1:8b65:118f:1148 prefixlen 64 scopeid 0x0<global>
inet6 fe80::5780:e027:f44:97 prefixlen 64 scopeid 0x20<link>
inet6 fe80::67ed:55d1:ee99:7806 prefixlen 64 scopeid 0x20<link>
inet6 2605:e000:151f:867c:f18e:c473:751f:31c7 prefixlen 64 scopeid 0x0<global>
inet6 2605:e000:151f:867c:720c:ec64:4404:a9c0 prefixlen 64 scopeid 0x0<global>
ether 70:1c:e7:76:ce:0b txqueuelen 1000 (Ethernet)
RX packets 2053 bytes 180506 (180.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8237 bytes 882378 (882.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
这是路由输出:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 0.0.0.0 UG 302 0 0 wlp1s0
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 virbr0
192.168.0.0 0.0.0.0 255.255.255.0 U 302 0 0 wlp1s0
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp1s0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
如果您要使用输出中的任何特定信息,请对问题发表评论,因为我在另一台计算机上运行它,我不得不手动复制它。
网关 192.168.0.1 不存在,正确的网关是 192.168.1.1。由于这被配置为使用 DHCP,因此路由器可能配置不正确,需要在那里进行寻址。
您还可以在此连接设置的 IPv4 选项卡中手动设置您的 IP 地址。将 IP 设置为 192.168.1.2 和 192.168.1.99 之间的值,将网络掩码设置为 255.255.255.0,将网关设置为 192.168.1.1。
手动修复路线将
route del default gw 192.168.0.1
是route add default gw 192.168.1.1