[Others] 无法联网,域名解析失败,但是能ping通ip
Tofloor
poster avatar
sghnm
deepin
2022-09-22 08:27
Author

升级系统后出现该问题,试过改dns,但是没有用

Reply Favorite View the author
All Replies
sghnm
deepin
2022-09-22 08:39
#1

开机时显示 fail to start wait for network to be configured

运行systemctl status systemd-networkd-wait-online.service显示

● systemd-networkd-wait-online.service - Wait for Network to be Configured
Loaded: loaded (/usr/lib/systemd/system/systemd-networkd-wait-online.service; enabled; preset: disabled)
Active: activating (start) since Thu 2022-09-22 00:28:39 CST; 43s ago
Docs: man:systemd-networkd-wait-online.service(8)
Main PID: 343 (systemd-network)
Tasks: 1 (limit: 18857)
Memory: 972.0K
CPU: 8ms
CGroup: /system.slice/systemd-networkd-wait-online.service
└─343 /usr/lib/systemd/systemd-networkd-wait-online

Sep 22 00:28:39 localhost systemd[1]: Starting Wait for Network to be Configured...

运行systemctl restart systemd-networkd-wait-online.service显示

Job for systemd-networkd-wait-online.service failed because the control process exited with error code.
See "systemctl status systemd-networkd-wait-online.service" and "journalctl -xeu systemd-networkd-wait-online.service" for details.

Reply View the author
sghnm
deepin
2022-09-22 08:42
#2

运行journalctl -xeu systemd-networkd-wait-online.service显示

Sep 22 00:28:39 localhost systemd[1]: Starting Wait for Network to be Configured...
░░ Subject: A start job for unit systemd-networkd-wait-online.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd-wait-online.service has begun execution.
░░
░░ The job identifier is 105.
Sep 22 00:30:23 localhost systemd[1]: systemd-networkd-wait-online.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-networkd-wait-online.service has successfully entered the 'dead' state.
Sep 22 00:30:23 localhost systemd[1]: Stopped Wait for Network to be Configured.
░░ Subject: A stop job for unit systemd-networkd-wait-online.service has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A stop job for unit systemd-networkd-wait-online.service has finished.
░░
░░ The job identifier is 105 and the job result is done.
Sep 22 00:30:23 localhost systemd[1]: Starting Wait for Network to be Configured...
░░ Subject: A start job for unit systemd-networkd-wait-online.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd-wait-online.service has begun execution.
░░
░░ The job identifier is 105.
Sep 22 00:32:23 localhost systemd-networkd-wait-online[1978]: Timeout occurred while waiting for network connectivity.
Sep 22 00:32:23 localhost systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit systemd-networkd-wait-online.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 22 00:32:23 localhost systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-networkd-wait-online.service has entered the 'failed' state with result 'exit-code'.
Sep 22 00:32:23 localhost systemd[1]: Failed to start Wait for Network to be Configured.
░░ Subject: A start job for unit systemd-networkd-wait-online.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd-wait-online.service has finished with a failure.
░░
░░ The job identifier is 105 and the job result is failed.

Reply View the author
blue_whale
deepin
2022-09-22 17:16
#3

Sep 22 00:32:23 localhost systemd-networkd-wait-online[1978]: Timeout occurred while waiting for network connectivity.

*Sep 22 00:32:23 localhost systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE*

上面的提示中可以查到: https://blog.csdn.net/h4241778/article/details/110824202

但是这只能增加等待时间, 无法解决等待过程中网络无法访问的问题. 系统加载网络常见的配置就两个, 一个外面有网, 你提到过ip可以ping通, 说明没问题, 那就只剩下DNS配置了

Reply View the author
sghnm
deepin
2022-09-22 17:49
#4
blue_whale

Sep 22 00:32:23 localhost systemd-networkd-wait-online[1978]: Timeout occurred while waiting for network connectivity.

*Sep 22 00:32:23 localhost systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE*

上面的提示中可以查到: https://blog.csdn.net/h4241778/article/details/110824202

但是这只能增加等待时间, 无法解决等待过程中网络无法访问的问题. 系统加载网络常见的配置就两个, 一个外面有网, 你提到过ip可以ping通, 说明没问题, 那就只剩下DNS配置了

试过了,还是同样的错误

Reply View the author
sghnm
deepin
2022-09-22 22:31
#5

Job for systemd-networkd-wait-online.service failed because the control process exited with error code.
See "systemctl status systemd-networkd-wait-online.service" and "journalctl -xeu systemd-networkd-wait-online.service" for details.

Reply View the author
sghnm
deepin
2022-09-23 03:54
#6


运行systemctl status systemd-resolved.service显示

● systemd-resolved.service - Network Name Resolution Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; enabled; preset: enabled) Active: active (running) since Thu 2022-09-22 19:36:15 CST; 1min 12s ago Docs: man:systemd-resolved.service(8) man:org.freedesktop.resolve1(5) https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients Main PID: 325 (systemd-resolve) Status: "Processing requests..." Tasks: 1 (limit: 18857) Memory: 5.1M CPU: 50ms CGroup: /system.slice/systemd-resolved.service └─325 /usr/lib/systemd/systemd-resolved

Sep 22 19:36:40 localhost systemd-resolved[325]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 119.29.29.29. Sep 22 19:36:45 localhost systemd-resolved[325]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 182.254.116.116. Sep 22 19:36:49 localhost systemd-resolved[325]: Failed to send hostname reply: Transport endpoint is not connected Sep 22 19:36:51 localhost systemd-resolved[325]: Using degraded feature set TCP instead of UDP for DNS server 119.29.29.29. Sep 22 19:37:01 localhost systemd-resolved[325]: Using degraded feature set TCP instead of UDP for DNS server 182.254.116.116. Sep 22 19:37:21 localhost systemd-resolved[325]: Using degraded feature set UDP instead of TCP for DNS server 182.254.116.116.

运行resolvectl query baidu.com显示 baidu.com: resolve call failed: Connection timed out

Reply View the author