我经常连接到我的 ISP 创建的热门热点网络(UPC 的 Wi-free,如 Fon)。这是一个具有 MSCHAPv2 身份验证的 WPA2 企业网络。它以前运行良好。
然而,最近我经历了与 DHCP 租约到期相关的频繁断线。物理 wifi 连接保持活动状态,但接口丢失了其 IP 地址,并且我失去了与互联网的连接。
dhclient[25316]: DHCPREQUEST of 203.0.113.17 on wlp2s0 to 10.177.0.1 port 67 (xid=0x55c8a752)
dhclient[25316]: message repeated 2 times: [ DHCPREQUEST of 203.0.113.17 on wlp2s0 to 10.177.0.1 port 67 (xid=0x55c8a752)]
dhclient[25316]: DHCPREQUEST of 203.0.113.17 on wlp2s0 to 255.255.255.255 port 67 (xid=0x55c8a752)
NetworkManager[23498]: <info> [1514411098.7236] dhcp4 (wlp2s0): state changed bound -> expire
NetworkManager[23498]: <info> [1514411098.7563] dhcp4 (wlp2s0): canceled DHCP transaction, DHCP client pid 25316
NetworkManager[23498]: <info> [1514411098.7564] dhcp4 (wlp2s0): state changed expire -> done
NetworkManager[23498]: <info> [1514411098.7578] device (wlp2s0): scheduling DHCPv4 restart in 120 seconds, 3 tries left (reason: lease expired)
avahi-daemon[1021]: Withdrawing address record for 203.0.113.17 on wlp2s0.
并非所有的租约续签都会失败
dhclient[25316]: DHCPREQUEST of 203.0.113.17 on wlp2s0 to 255.255.255.255 port 67 (xid=0x55c8a752)
dhclient[25316]: DHCPACK of 203.0.113.17 from 62.179.2.155
NetworkManager[23498]: <info> [1514410926.0094] dhcp4 (wlp2s0): address 203.0.113.17
NetworkManager[23498]: <info> [1514410926.0095] dhcp4 (wlp2s0): plen 25 (255.255.255.128)
NetworkManager[23498]: <info> [1514410926.0096] dhcp4 (wlp2s0): gateway 203.0.113.12
NetworkManager[23498]: <info> [1514410926.0096] dhcp4 (wlp2s0): lease time 60
NetworkManager[23498]: <info> [1514410926.0096] dhcp4 (wlp2s0): hostname 'thisubuntulaptop'
NetworkManager[23498]: <info> [1514410926.0097] dhcp4 (wlp2s0): nameserver '62.179.1.60'
NetworkManager[23498]: <info> [1514410926.0097] dhcp4 (wlp2s0): nameserver '62.179.1.61'
dbus[1066]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
NetworkManager[23498]: <info> [1514410926.0098] dhcp4 (wlp2s0): domain name 'chello.pl'
NetworkManager[23498]: <info> [1514410926.0098] dhcp4 (wlp2s0): state changed bound -> bound
systemd[1]: Starting Network Manager Script Dispatcher Service...
dhclient[25316]: bound to 203.0.113.17 -- renewal in 25 seconds.
但他们经常这样做,而且由于租赁时间只有 60 秒,这会导致非常频繁的中断。
我如何找出原因并防止这些续订失败的发生?