Skip to content

Instantly share code, notes, and snippets.

@mdpuma
Created October 14, 2017 17:55
Show Gist options
  • Select an option

  • Save mdpuma/49ee0e1938ff887c2c299cf076dd755a to your computer and use it in GitHub Desktop.

Select an option

Save mdpuma/49ee0e1938ff887c2c299cf076dd755a to your computer and use it in GitHub Desktop.
tcpdump filter traffic by vlan (live)
#!/bin/bash
# reference https://serverfault.com/questions/544651/vlan-tags-not-shown-in-packet-capture-linux-via-tcpdump
tcpdump -i eth0 -Uw - arp | tcpdump -en -r - vlan 804
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment