To debug a dhcpd issue, I want to send dhcp discover messge to dhcpd server.
but ubuntu always remember the ip address after first got, it always send dhcp request not dhcp discover.
So I found below command can send dhcp discover message:
sudo nmap --script broadcast-dhcp-discover -A 192.168.1.1
nmap is very powerful, it not only support port scan, also support many other functions.

本文介绍了一种在Ubuntu系统中发送DHCP Discover消息的方法。通常情况下,Ubuntu会记住首次获取的IP地址并总是发送DHCP请求而非DHCP Discover。文章提供了一个使用nmap工具发送DHCP Discover的具体命令。
629

被折叠的 条评论
为什么被折叠?



