If the user encounters an LLDP (Link Layer Discovery Protocol) issue on the FortiGate unit and would like to filter the respective traffic to investigate the issue further using only specific LLDP packets, consider using the following sniffer. One can do it with CLI commands on the FortiGate via Telnet, SSH, or the CLI Console on the GUI of FortiGate.
Enter the following CLI command on FortiGate:
 diagnose sniffer packet any "ether proto 0x88CC" 4 0 l
 The output of the command above would look something like the following:  diagnose sniffer packet any "ether proto 0x88cc" 4 0 l
interfaces=[any]
filters=[ether proto 0x88cc]
2022-07-14 13:47:51.483056 wan1 in lldp 268 chassis 4 xx:yy:zz:aa:bb:cc port 5 'port42' ttl 120 system 'SW12-101-1'
2022-07-14 13:48:21.448341 wan1 in lldp 268 chassis 4 xx:yy:zz:aa:bb:cc port 5 'port42' ttl 120 system 'SW12-101-1'
2022-07-14 13:48:51.485726 wan1 in lldp 268 chassis 4 xx:yy:zz:aa:bb:cc port 5 'port42' ttl 120 system 'SW12-101-1'
2022-07-14 13:49:21.496029 wan1 in lldp 268 chassis 4 xx:yy:zz:aa:bb:cc port 5 'port42' ttl 120 system 'SW12-101-1'
 Note: If a PCAP (Wireshark) format of capture is required, change the verbose level in the above command to 6 from 4.  diagnose sniffer packet any "ether proto 0x88cc" 6 0 l
 To stop the sniffer, press Ctrl + C. The Sniffer will run until stopped.  Debug commands:  diagnose debug application lldptx -1
diagnose debug enable
 Diagnose command:  diagnose lldprx port neighbor
 Note: Starting from FortiOS v7.6.3, lldptx commands are no longer available. The diagnostic commands below can be used instead.
diagnose lldp ?
config Display LLDP configuration.
restart Restart the LLDP process
rx Link Layer Description Protocol (LLDP) Receiver diagnostics.
stats Display LLDP statistics.
tx Link Layer Description Protocol (LLDP) Transmission diagnostics.
For a full list of related CLI commands, refer to the CLI reference for diagnose lldp.
Related articles:
|