Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Monitor DHCP traffic with tcpdump
# Monitoring on interface eth0
tcpdump -i eth0 -n port 67 and port 68
@Slawka

This comment has been minimized.

Copy link

@Slawka 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

This comment has been minimized.

Copy link

@bamartin125 bamartin125 commented Oct 9, 2019

tcpdump -i eth0 -pvn port 67 and port 68

@albert-a

This comment has been minimized.

Copy link

@albert-a albert-a commented Feb 15, 2020

Thanks, it works

@tcpdump-examples

This comment has been minimized.

Copy link

@tcpdump-examples tcpdump-examples commented Feb 5, 2021

capture dhcpv6 packets

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

@tcpdump-examples

This comment has been minimized.

Copy link

@tcpdump-examples tcpdump-examples commented Feb 14, 2021

We can get more tcpdump examples from here.

10 Useful tcpdump command examples

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