Skip to content

Instantly share code, notes, and snippets.

@JosefJezek
Created February 7, 2014 09:28
Show Gist options
  • Save JosefJezek/8859677 to your computer and use it in GitHub Desktop.
Save JosefJezek/8859677 to your computer and use it in GitHub Desktop.
DHCP

DHCP

Testing

sudo apt-get install dhcping dhcpdump

sudo dhcping -c 192.168.1.100 -s 192.168.16.1
sudo dhcping -h 00:12:3f:20:11:49 -s 10.1.200.200 -c 10.1.200.1

# Match any dhcp packet
dhcpdump -i eth0

# Only match packets to/from hw address 00:12:3f:20:11:49
dhcpdump -i eth0 -h 00:12:3f:20:11:49

# Only match packets to/from hw addresses beginning 00:14
dhcpdump -i eth0 -h ^00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment