CDP Packages:
Linux:
tcpdump -i <intercade> -v -s 1500 -c 1 'ether[20:2] == 0x2000'
Solaris:
snoop -v -x0 -d e1000g0 dst 01:00:0c:cc:cc:cc or 01:80:C2:00:00:0E|egrep -i "Port|system"
tcpdump -i <intercade> -v -s 1500 -c 1 'ether[20:2] == 0x2000'
Solaris:
snoop -d <interface> -s 1500 -x0 -c 1 'ether[20:2] = 0x2000'
LLDP Packages:
Linux:
tcpdump -i eth0 -s 1500 -XX -c 1 'ether proto 0x88cc'
Solaris: