For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > Detect DHCP Servers

Detect DHCP Servers

Created by dave. Last edited by dave, 4 years and 326 days ago. Viewed 1,346 times. #1
[edit] [rdf]

Detecting DHCP Servers

If you want a heads-up on DHCP server changes on your network (like the fact that some bright light has plugged a rogue DHCP server into it), there are a couple options.


# nmap --script broadcast-dhcp-discover

Note you might have to add the -i <interface> flag.

Problem with this solution is that it stops after the first answer.


# tcpdump -i ens192 -nev udp src port 67
Should return a hit whenever a DHCP REPLY packet is detected on the network. DHCP REPLY packets are only emitted by DHCP servers.

Naturally you can do things like exclude your known DHCP server.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt