这些日志条目是什么意思?

这些日志条目是什么意思?

Ubuntu 18.04

我每天都会看到这样的事情发生好几次:

May 24 23:16:36 servername NetworkManager[936]: <info>  [1621916196.7265] connectivity: (eno1) timed out
May 24 23:16:36 servername NetworkManager[936]: <info>  [1621916196.7265] manager: NetworkManager state is now CONNECTED_SITE
May 24 23:16:36 servername dbus-daemon[894]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.10' (uid=0 pid=936 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
May 24 23:16:36 servername whoopsie[1685]: [23:16:36] offline
May 24 23:16:36 servername dbus-daemon[894]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
May 24 23:16:36 servername nm-dispatcher: req:1 'connectivity-change': new request (1 scripts)
May 24 23:16:36 servername nm-dispatcher: req:1 'connectivity-change': start running ordered scripts...

有时它看起来像这样:

May 24 23:26:07 servername NetworkManager[936]: <info>  [1621916767.8146] manager: NetworkManager state is now CONNECTED_GLOBAL
May 24 23:26:07 servername dbus-daemon[894]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.10' (uid=0 pid=936 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
May 24 23:26:07 servername whoopsie[1685]: [23:26:07] The default IPv4 route is: /org/freedesktop/NetworkManager/ActiveConnection/2
May 24 23:26:07 servername whoopsie[1685]: [23:26:07] Not a paid data plan: /org/freedesktop/NetworkManager/ActiveConnection/2
May 24 23:26:07 servername whoopsie[1685]: [23:26:07] Found usable connection: /org/freedesktop/NetworkManager/ActiveConnection/2
May 24 23:26:07 servername dbus-daemon[894]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
May 24 23:26:07 servername nm-dispatcher: req:1 'connectivity-change': new request (1 scripts)
May 24 23:26:07 servername nm-dispatcher: req:1 'connectivity-change': start running ordered scripts...
May 24 23:26:08 servername whoopsie[1685]: [23:26:08] online

发生了什么事?为什么我的 NIC(eno1)超时了?
“connected_site”与“connected_global”?
“不是付费数据计划”?什么?

答案1

“不是付费数据计划”?什么?

很简单:如果连接是付费数据计划,您的 Mbs 很快就会用完。如果您告诉系统在为每 Mb 付费的情况下不要使用该连接,Whoopsie 将不会连接。

“connected_site” 与 “connected_global”???

有 3 个状态:

  • state-connected-global表明 NetworkManager 已连接到 Internet。

  • state-connected-local指示 NetworkManager 已连接到本地网络。

  • state-connected-site表明 NetworkManager 已连接到 Internet 以外的网络。

为什么我的 NIC(eno1)超时了?

原因可能有很多:您的 ISP、您的路由器。NIC 损坏或驱动程序未完全支持。但也可能是另一个网络获取了您的连接,然后与您的日志相匹配:那将是state-connected-site。如果是这种情况,则值得调查:因此,请仔细查看例如ip link show何时发生这种情况。

相关内容