Cisco CDP tcpdump: differenze tra le versioni

Da Emigar.
Jump to navigation Jump to search
Nessun oggetto della modifica
Nessun oggetto della modifica
 
(Una versione intermedia di uno stesso utente non è mostrata)
Riga 1: Riga 1:
CDP
<code>
<code>
tcpdump -nn -v -i eth0 -s 1500 -c 1 'ether[20:2] == 0x2000'
tcpdump -nn -v -i eth0 -s 1500 -c 1 'ether[20:2] == 0x2000'
</code>
</code>


LLDP
<code>
tcpdump -i eth0 -s 1500 -XX -c 1 'ether proto 0x88cc'
</code>

LLDP & CDP
<code>
tcpdump -v -s 1500 -c 1 '(ether[12:2]=0x88cc or ether[20:2]=0x2000)'
</code>


Fonti:
Fonti:
Riga 8: Riga 18:
* [http://www.kehlet.cx/articles/186.html]
* [http://www.kehlet.cx/articles/186.html]
* [http://sidewynder.blogspot.it/2005/07/tcpdump-filter-for-capturing-only.html]
* [http://sidewynder.blogspot.it/2005/07/tcpdump-filter-for-capturing-only.html]
* [http://dazdaztech.wordpress.com/2013/05/17/using-tcpdump-to-see-cdp-or-lldp-packets/]




[[Categoria:Reti]]
[[Categoria:Reti]]
[[Categoria:OpenSource]]

Versione attuale delle 14:45, 18 lug 2014

CDP

tcpdump -nn -v -i eth0 -s 1500 -c 1 'ether[20:2] == 0x2000'

LLDP

tcpdump -i eth0 -s 1500 -XX -c 1 'ether proto 0x88cc'

LLDP & CDP

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

Fonti: