由于某种原因,我常用的 Ubuntu 22.04 笔记本电脑从今天早上起就无法在我的家庭无线网络中发现 DHCP。我们过去遇到过与流氓 DHCP 服务器有关的问题,但这次的行为有所不同。我就是无法解析任何网站。
我检查了ifconfig
:
wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
[REDACTED] prefixlen 64 scopeid 0x20<link>
inet6 [REDACTED] prefixlen 64 scopeid 0x0<global>
inet6 [REDACTED] prefixlen 64 scopeid 0x0<global>
ether [REDACTED] (Ethernet)
RX packets 693677 bytes 942936693 (942.9 MB)
RX errors 0 dropped 1146 overruns 0 frame 0
TX packets 142638 bytes 21497503 (21.4 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
我通过 Wireguard 检查并发现我的计算机似乎卡在 DHCP 发现上,因为它只是不断尝试发现:
Dynamic Host Configuration Protocol (Discover)
Message type: Boot Request (1)
Hardware type: Ethernet (0x01)
Hardware address length: 6
Hops: 0
Transaction ID: 0x68a2467f
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
0... .... .... .... = Broadcast flag: Unicast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0
Your (client) IP address: 0.0.0.0
Next server IP address: 0.0.0.0
Relay agent IP address: 0.0.0.0
Client MAC address: [REDACTED]
Client hardware address padding: 00000000000000000000
Server host name not given
Boot file name not given
Magic cookie: DHCP
Option: (53) DHCP Message Type (Discover)
Length: 1
DHCP: Discover (1)
Option: (57) Maximum DHCP Message Size
Length: 2
Maximum DHCP Message Size: 1500
Option: (55) Parameter Request List
Length: 4
Parameter Request List Item: (1) Subnet Mask
Parameter Request List Item: (3) Router
Parameter Request List Item: (28) Broadcast Address
Parameter Request List Item: (6) Domain Name Server
Option: (12) Host Name
Length: 5
Host Name: wlan0
Option: (255) End
Option End: 255
Padding: 000000000000000000000000000000000000000000000000000000000000000000000000…
如果我通过手机连接到 WLAN(没有问题),打开热点,然后通过笔记本电脑连接到热点(又名网关),我就可以毫无问题地获得 DHCP。
我现在已经确认此错误发生在此网络的多个设备上,因此所有设备都损坏的可能性不大。我现在认为它要么是损坏的路由器,要么是流氓 DHCP 服务器,尽管我觉得我应该能够看到多个 DHCP 提供,而不是一个都没有。
我不确定如何进一步调试该问题。