Skip to main content
nevan
Staff
Staff
Oct 12, 2026 3:47 PM UTC

Technical Tip: LLDP attribute transmission and reception issues in virtual or hardware switch

Description

This article describes the LLDP attribute support when the virtual or hardware VLAN switch is being used for connectivity. Some of the LLDP (Link Layer Discovery Protocol) attributes, such as LLDP-MED, may not be transmitted as expected when using a virtual or hardware VLAN switch configuration.

Scope

FortiOS.

Solution

When using virtual or hardware VLAN switch mode on FortiGate, LLDP (Link Layer Discovery Protocol) attributes, such as LLDP-MED voice VLAN policies, may not be advertised as expected. Incoming LLDP information may also be received incorrectly. This can occur when physical ports are members of a switch, where per-port LLDP configuration and packet processing differ from those of standalone physical interfaces.

The following configuration places lan4 in the VAN_OLD virtual switch with VLAN 200 and enables LLDP transmission on the corresponding interface:

config system global
    set virtual-switch-vlan enable
end

config system virtual-switch
    edit "VAN_OLD"
        set physical-switch "sw0"
        set vlan 200
            config port
                edit "lan4"
                next
            end
        next
    end

config system interface
    edit "VAN_OLD"
        set ip 10.3.129.254 255.255.255.0
        set type hard-switch
        set device-identification enable
        set lldp-transmission enable
    next
end


LLDP transmission on virtual or hardware switch interfaces may not support all per-port LLDP features. LLDP-MED voice VLAN advertisements require a supported interface and network-policy configuration. Verify the received frame format, VLAN tagging, and platform limitations to troubleshoot LLDP reception errors.

If required, configure the port as a standalone physical interface, provided the FortiOS version and platform support it.

CLI example:

config system interface
    edit "lan4"
        set device-identification enable
        set lldp-reception enable
        set lldp-transmission enable
    next
end


Additionally, to use multiple VLANs through the physical link, a trunk port can be used. To enable trunk:

config system interface
    edit <portname>
        set trunk enable   
    next
end


The FortiGate's built-in LLDP-MED network policy feature (which advertises voice VLAN attributes) is only supported on standalone physical interfaces (type physical), not on hard-switch or virtual-switch interfaces.

Use the following diagnostic commands to investigate LLDP reception and neighbor information:

diagnose lldp rx neighbor details
diagnose lldp rx port details
diagnose lldp stats rxtx


Related article:
Technical Tip: Understanding the output of 'diagnose lldprx neighbor summary' on the FortiGate

 

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT