Decoding an LLDP packet

By | November 7, 2016

Running with a switch that provides LLDP info ? You can easily decode that and workout what switch port, what switch etc you are connected to with this one simple snippet :

tcpdump -v -s 1500 -c 1 ‘(ether[12:2]=0x88cc or ether[20:2]=0x2000)’ -i eth0

Ofcourse, replace eth0 with the real device name; and wait a few seconds for the data to show up.

– KB

6 thoughts on “Decoding an LLDP packet

    1. Karanbir Singh Post author

      sure, can do it that way too – i just have this snippet sitting in my ~/bin/ for ages.


Leave a Reply

Your email address will not be published. Required fields are marked *