Skip to content

Instantly share code, notes, and snippets.

@mattm7n
Created November 29, 2011 14:54
Show Gist options
  • Save mattm7n/1405067 to your computer and use it in GitHub Desktop.
Save mattm7n/1405067 to your computer and use it in GitHub Desktop.
Monitor DHCP traffic with tcpdump
# Monitoring on interface eth0
tcpdump -i eth0 -n port 67 and port 68
@Slawka
Copy link

Slawka commented Sep 7, 2019

tcpdump -Z slawka -z gzip -i eth0 -A -s65535 -G 1800 -C 50 -w /home/slawka/trace/dhcp_eth0.pcap port 67 and port 68 &

Background Rotate 1800 second or 50 MB

@bamartin125
Copy link

tcpdump -i eth0 -pvn port 67 and port 68

@albert-a
Copy link

Thanks, it works

@tcpdump-examples
Copy link

capture dhcpv6 packets

tcpdump -i eth0 -n -vv '(udp port 546 or port 547)'

@tcpdump-examples
Copy link

We can get more tcpdump examples from here.

10 Useful tcpdump command examples

@iamjenechka
Copy link

it's good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment