找出你的DHCP Server

方法一:

從你的log紀錄,可以獲得區域網路內提供你 DHCP 服務的機器位址

sudo grep -r "DHCPOFFER" /var/log/* | grep "$(export LC_ALL=C; date +'%b %d')" | tail -1

方法二:tcpdump + dhclient

sudo tcpdump -i wlp4s0  -pvn port 67 and port 68
dhclient 你的網路介面

方法三:使用 nmap (推薦,可掃出區網的DHCP Server)

Last updated

Was this helpful?