Skip to main content
laltuzar
Staff
Staff
May 7, 2026

Technical Tip: How to get LLDP frames from FortiSwitch

  • May 7, 2026
  • 0 replies
  • 25 views

Description

This article describes the steps to get the LLDP that FortiSwitch receives from its ports.

Scope

FortiSwitch OS v7.2 or above.

Solution

To capture LLDP frames from the FortiSwitch perspective, a sniffer must be configured on FortiSwitch's CLI.

  • To capture all LLDP traffic from any port with no filter:

 

diagnose sniffer packet any "ether proto 0x88cc" 6

 

  • To capture all LLDP traffic from port1 and no filter:

 

diagnose sniffer packet __port__1 "ether proto 0x88cc" 6


edc493bd.png

 

  • To capture all LLDP traffic from any port with filter:


diagnose sniffer packet any "ether proto 0x88cc" 4

 

  • To capture all LLDP traffic from port1 and filter:

 

diagnose sniffer packet __port__1 "ether proto 0x88cc" 4


62e78637.png


Note that '
__port__1' (with double underscore '_') is the nomenclature FortiSwitch uses for each FortiSwitch port. This number must be changed if the port number to be analyzed is different.