Link Layer Discovery Protocol (LLDP)
Note:
The LLDP functionality described in this article was released as an update to the XenServer 9 Early Access channel on November 24, 2026. It is not yet available in the Normal channel.
Link Layer Discovery Protocol (LLDP) is a vendor-neutral Layer 2 protocol (IEEE 802.1AB) that lets a XenServer host advertise its identity to the directly connected physical switches and learn information about those switches in return. With LLDP enabled, you can find out which host NIC is connected to which switch and switch port, without logging in to the host over SSH.
LLDP operates only on managed physical NICs. It is not available on virtual interfaces (VIFs) or on non-physical PIFs such as VLAN, bond-master, tunnel, or SR-IOV PIFs. For each NIC, receiving and advertising are always enabled or disabled together.
Enable or disable LLDP for a pool
To enable LLDP on every managed physical NIC in the pool, run the following command:
xe pool-set-lldp-enabled value=true
To disable LLDP across the pool, run the following command:
xe pool-set-lldp-enabled value=false
Note:
Enabling or disabling LLDP on a pool or a NIC requires the Pool Operator role or higher.
Enable or disable LLDP for a single NIC
You can override the pool-wide setting for an individual NIC by setting the LLDP mode of its PIF. The mode can be
enabled, disabled, or inherited. The inherited mode makes the NIC follow the pool-wide setting.
To enable LLDP on a single NIC, regardless of the pool setting, run the following command:
xe pif-set-lldp-mode uuid=<pif-uuid> value=enabled
To disable LLDP on a single NIC, run the following command:
xe pif-set-lldp-mode uuid=<pif-uuid> value=disabled
To make a NIC follow the pool-wide setting again, run the following command:
xe pif-set-lldp-mode uuid=<pif-uuid> value=inherited
View the connected switch and port
To find out which switch and port a NIC is connected to, read the
lldp-neighbor field of its PIF:
xe pif-param-get uuid=<pif-uuid> param-name=lldp-neighbor
The output shows the effective LLDP state and, when a neighbor is seen, the switch details:
state: enabled; system_name: Core-SW-01; port_id: Ethernet1/16; port_description: host-A/eth1
The neighbor information appears a short time after LLDP is enabled, when the switch sends its next advertisement. The value is empty for NICs that are not managed physical NICs.
Change the LLDP multicast address
By default, XenServer sends LLDP frames to the Nearest Bridge multicast address (
01:80:C2:00:00:0E). If your environment requires it, you can change this to one of the following group addresses:
-
nearestbridge(default) -
nearestnontpmrbridge -
nearestcustomerbridge
Set the address on the pool, then re-apply LLDP so the change takes effect:
xe pool-param-set uuid=<pool-uuid> lldp-multicast-address=nearestnontpmrbridge
xe pool-set-lldp-enabled value=true force=true
Prevent LLDP on storage NICs
Some NICs must never run LLDP. For example, NICs used for boot from SAN (iBFT) or converged network adapters (CNA/FCoE) that carry shared storage. XenServer automatically suppresses LLDP on NICs that use certain drivers, even when LLDP is enabled for the pool. Such a NIC reports a state of
blocked in its lldp-neighbor field.
To exclude the boot-disk NIC's driver during installation, use the
lldp_block_driver=<driver-name> host installer boot parameter.
To turn LLDP on for a specific NIC even though its driver is block-listed, set that NIC's mode explicitly to
enabled:
xe pif-set-lldp-mode uuid=<pif-uuid> value=enabled
Note:
The driver block-list protects storage NICs. Only override it for a NIC when you are sure that LLDP does not disrupt storage traffic.
Information advertised by XenServer
When LLDP is enabled, each managed physical NIC advertises the following information to the connected switch, as defined by IEEE 802.1AB:
-
Chassis ID: the host UUID
-
Port ID: the NIC MAC address
-
Time to live (TTL)
-
Port description: the interface name, for example
eno1 -
System name: the host name
-
System description: the host name-description
-
Management address: the host management IP address
-
System capabilities: Bridge
Only information about the host's physical NICs is advertised. No virtual machine or VIF information is exposed.