今天突然互联网停止工作。前段时间我不得不重新安装 ubuntu,因为每次运行系统时都必须运行 sudo dhclient。今天下午互联网停止工作,我已连接并可以 ping 网关或 8.8.8.8,但无法 google.com。只有在 resolv.conf 上设置名称服务器 8.8.8.8 才有效,但我想使用 DHCP,因为我以前必须这样做,也知道为什么我总是遇到这个问题,这些问题总是在我更新系统后出现。我目前正在运行 ubuntu 22.04.3。提前感谢大家。
这是输出ip link show
:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 50:eb:f6:3e:ed:71 brd ff:ff:ff:ff:ff:ff
3: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
link/ether 4c:77:cb:1e:28:a0 brd ff:ff:ff:ff:ff:ff
这是输出ip addr show
:
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: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 50:eb:f6:3e:ed:71 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.85/24 brd 192.168.1.255 scope global dynamic enp8s0
valid_lft 42008sec preferred_lft 42008sec
inet6 fdc2:3425:2011:e475:4519:b38b:823:10fa/64 scope global temporary dynamic
valid_lft 1610sec preferred_lft 1610sec
inet6 fdc2:3425:2011:e475:f39d:d08c:6b3:fb11/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 1610sec preferred_lft 1610sec
inet6 fe80::8862:6c7b:15a2:e9d5/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 4c:77:cb:1e:28:a0 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.105/24 brd 192.168.1.255 scope global dynamic wlp6s0
valid_lft 42012sec preferred_lft 42012sec
inet6 fdc2:3425:2011:e475:f945:e458:95b3:e74b/64 scope global temporary dynamic
valid_lft 1611sec preferred_lft 1611sec
inet6 fdc2:3425:2011:e475:dc3a:153b:cc15:594a/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 1611sec preferred_lft 1611sec
inet6 fe80::2709:a3b7:de66:4e92/64 scope link noprefixroute
valid_lft forever preferred_lft forever
这是resolvectl status
的输出:
resolvectl status ░▒▓ ✔ │ base Py │ at 12:38:51 ▓▒░
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
Link 2 (enp8s0)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 80.58.61.250
DNS Servers: 80.58.61.254 80.58.61.250
Link 3 (wlp6s0)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 80.58.61.254
DNS Servers: 80.58.61.254 80.58.61.250
如果有人知道为什么会发生这种情况,我将非常感谢您的帮助。