Installing and Using dhcpdump

dhcpdump – sniffer utility for analyzing DHCP packets.

I will give an example of the installation command in Ubuntu/Debian:

sudo apt-get install dhcpdump

Installation in CentOS:

sudo yum install dhcpdump

Let’s see what network interfaces are in the system:

ifconfig
ip a

Example of running dhcpdump with the name of the network interface:

dhcpdump -i eth0

An example of intercepting DHCP packets with only the specified MAC address ending:

dhcpdump -i eth0 -h ^02:b0:eb

I’ll give an example of displaying the result not on the screen, but in a file:

dhcpdump -i eth0 > ixnfo.com.txt

See also my articles:
Installing and using dhcping
What is DHCP and how does it work?

Leave a comment

Leave a Reply