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
|