Join our Newsletter — 33% off our NHI Course
Home› Guides› LLDP and CDP: What Discovery Protocols Leak and…
Guide Network Security

LLDP and CDP: What Discovery Protocols Leak and Where to Disable Them

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 13 min read
On this page

Every switch, router, phone and server running LLDP or CDP tells anyone plugged into the same link what it is, what software it runs and how to reach its management interface. These link-layer discovery protocols are useful to network teams and to IP phones, but they are on by default on many devices and they advertise without any authentication. An intruder who reaches an access port, a guest network or a misconfigured internet-facing interface can read that inventory passively. This guide is for network engineers and security architects: it explains what the frames contain, where the protocols are genuinely needed, a per-port rule for keeping or disabling them, and how to monitor for rogue or unexpected neighbours. It is defensive only and gives configuration principles rather than vendor command lists. For the wider set of layer 2 threats, see the Layer 2 Attacks Guide.

Key takeaways

  • Discovery frames are a free inventory. Device name, model, software version, VLAN and management address are visible to any host on the link, with no authentication.
  • Disable by default, enable by exception. CISA, NSA, FBI and international partners advise disabling unnecessary discovery protocols and enabling them only on the interfaces that need them.
  • Keep them where something depends on them. Infrastructure links between your own devices and IP phone ports that use LLDP-MED for the voice VLAN are the main legitimate cases.
  • Turn off transmit and receive on untrusted ports. Guest, public, internet-facing, provider hand-off and unmanaged user ports should neither send nor accept discovery frames.
  • Use neighbour tables as a sensor. A new or unexpected LLDP or CDP neighbour on an access port is an early sign of a rogue switch, an unauthorised device or a cabling error.

What LLDP and CDP are

LLDP (Link Layer Discovery Protocol) is the vendor-neutral protocol defined in IEEE 802.1AB, titled "Station and Media Access Control Connectivity Discovery". The IEEE lists 802.1AB-2016 as superseded by 802.1AB-2026 (checked November 2026). A device sends LLDP data units (LLDPDUs) containing type-length-value (TLV) fields to its directly connected neighbours. Advertisements are one-way and one hop: they do not ask for a response and are not forwarded beyond the directly connected device. LLDP frames use EtherType 0x88CC, registered to IEEE 802.1AB LLDP, and are sent untagged. A common default is a 30 second transmit interval with a hold multiplier of 4, giving neighbours a 120 second time to live.

LLDP-MED (Media Endpoint Discovery), specified in ANSI/TIA-1057, extends LLDP for endpoints such as IP phones. It adds network policy (voice VLAN, priority and DSCP), location, extended power and inventory TLVs, and a fast start mode that sends several quick advertisements when a new endpoint is detected.

CDP (Cisco Discovery Protocol) is Cisco's proprietary discovery protocol, also supported by some other vendors' devices for interoperability. Cisco documents CDP version 2 as enabled by default, with advertisements every 60 seconds, and a neighbour entry discarded after three missed advertisements. CDP frames are sent to the multicast address 01-00-0C-CC-CC-CC.

PropertyLLDPLLDP-MEDCDP
SpecificationIEEE 802.1ABANSI/TIA-1057 (extends LLDP)Cisco proprietary
Typical useTopology discovery between infrastructure devices, servers and hypervisorsIP phones, wireless access points and other media endpointsTopology discovery and voice VLAN signalling in Cisco environments
Typical timers30 s transmit, 120 s time to liveAs LLDP, plus fast start bursts60 s transmit; entry dropped after three missed advertisements
AuthenticationNoneNoneNone
Forwarded beyond one hopNoNoNo

What the frames reveal

The value to an attacker is reconnaissance: one captured frame identifies the switch model and software release to match against known vulnerabilities, the management address to target, and the VLAN layout to plan movement. In MITRE ATT&CK terms this supports T1590.004 Network Topology gathering and T1018 Remote System Discovery, and it is collected passively in the same way as T1040 Network Sniffing.

Field (protocol)What it carriesWhat it gives an attackerExposure rating
Chassis ID and Port ID (LLDP, mandatory); Device-ID and Port-ID (CDP)Switch MAC or name and the sending portIdentifies the exact device and port the attacker is onMedium
System Name (LLDP); Device-ID (CDP)Hostname, often with site, role or floor encodedNaming convention, site and device roleMedium
System Description (LLDP); Version and Platform (CDP)Hardware platform and full software release stringDirect lookup of known vulnerabilities for that releaseHigh
Management Address (LLDP); Address (CDP)IP address of the management interfaceTarget for SSH, SNMP, web and API attacks on the management planeHigh
System Capabilities (LLDP); Capabilities (CDP)Whether the device is a switch, router, phone or access pointPicks out infrastructure from endpointsLow
Port VLAN ID and VLAN Name (802.1 TLVs); Native VLAN (CDP)Untagged VLAN and VLAN namesVLAN layout and naming, which helps plan layer 2 attacksMedium
VTP Management Domain (CDP)VLAN Trunking Protocol domain nameInformation useful for VLAN database manipulation if VTP is misconfiguredMedium
Network Policy (LLDP-MED)Voice VLAN ID, priority and DSCPWhich VLAN carries voice, a common route around data VLAN controlsMedium
Inventory (LLDP-MED)Hardware, firmware and software revision, serial number, manufacturer, model, asset IDPrecise asset and software inventoryHigh
Location Identification (LLDP-MED)Civic address, coordinates or ELINPhysical location of the portLow to medium
Port Description (LLDP)Interface description text set by administratorsOften names the connected server, customer or circuitMedium
MAC/PHY, Power via MDI, Link Aggregation, Maximum Frame Size (802.3 TLVs)Speed, duplex, PoE and aggregation detailsMinor, confirms configurationLow

Exposure flows both ways. A device that receives discovery frames on an untrusted port also accepts whatever a neighbour claims to be, and some features act on that claim, for example by applying a voice VLAN or power policy. Turning off receive as well as transmit removes that trust, which is why the policy below treats both directions.

Servers and hypervisors run discovery agents too. Storage arrays, virtual switches and Linux hosts can send LLDP or CDP that reveal host names and software versions to the access switch and anything else on the segment, so include them in the review.

Where discovery protocols are needed (VoIP, LLDP-MED, troubleshooting)

  • Voice VLAN assignment: IP phones commonly learn their voice VLAN, priority and DSCP from the LLDP-MED Network Policy TLV, or from CDP in Cisco phone deployments. Disabling discovery on a phone port without another assignment method leaves the phone on the data VLAN or without service. Alternatives include DHCP options or 802.1X with RADIUS-assigned VLANs; check what your phones support before changing anything.
  • Power negotiation: PoE devices such as phones and access points may use LLDP or CDP to negotiate power beyond the base class. Removing discovery can leave them underpowered.
  • Location for emergency calling: LLDP-MED location TLVs can supply a civic address or ELIN to endpoints. Where emergency location depends on it, keep LLDP-MED on those ports.
  • Infrastructure links: switch to switch, switch to router, switch to firewall and switch to hypervisor links inside your trust boundary benefit from neighbour visibility for troubleshooting, topology mapping and cabling checks, and some features such as CDP version 2 report native VLAN and duplex mismatches.
  • Network management and inventory tools: many tools build topology maps from neighbour tables via SNMP. If you disable discovery, plan another source of topology data or accept the loss.

Where one protocol will do, run one. If every phone and switch supports LLDP-MED, CDP can often be turned off entirely, which removes the larger set of version and VTP fields. Where mixed estates need both, limit each to the ports that need it.

Where to disable them (edge, guest, internet-facing, untrusted ports)

The rule: discovery transmit and receive are off by default on every interface, then enabled per port role where a named dependency exists. This matches the joint CISA, NSA, FBI, ASD's ACSC, CCCS and NCSC-NZ guidance to disable unnecessary discovery protocols such as CDP or LLDP and, where required, enable them only on necessary interfaces.

Port roleLLDPLLDP-MEDCDPReason
Internet-facing and ISP or provider hand-offOffOffOffThe neighbour is outside your trust boundary
Partner, customer or colocation cross-connectOff, unless agreed for troubleshootingOffOffDiscloses your platform and addressing to a third party
Guest, public, lobby and meeting room portsOffOffOffAnyone can connect
General user access ports (PCs only)OffOffOffNo dependency; exposes switch details to every desk
IP phone ports (phone with PC behind it)Transmit only the TLVs the phone needsOn, with Network PolicyOnly if phones need itVoice VLAN and power depend on it
Wireless access point portsOn if used for power or managementAs requiredOnly if requiredPower negotiation and controller discovery may rely on it
Uplinks and links between your own switches and routersOnOffOn only if neededTopology and troubleshooting inside the trust boundary
Server, storage and hypervisor portsOn if the platform team uses it; otherwise offOffOff unless requiredUseful for cabling checks; review what the host advertises
Out-of-band management networkOnOffAs requiredAlready a restricted network
OT and industrial cell portsPer OT engineering decisionOffPer OT engineering decisionSome industrial devices and tools rely on LLDP; test before changing

Configuration principles that apply on any platform:

  • Set the global default to off where the platform allows, then enable per interface through a port profile or template for each role, so a new port inherits the safe setting.
  • Control transmit and receive separately where the platform supports it, and reduce the TLV set on ports where discovery must stay on: drop System Description, Port Description and Management Address towards endpoints if the dependency does not need them.
  • Remember resets: Cisco notes that changing an interface's encapsulation re-enables CDP on that interface, so check port state after changes and in configuration compliance scans, not only in the template.
  • Cover servers and hypervisors: disable or limit discovery agents on hosts in untrusted segments, including virtual switch settings.
  • Pair with port access control: 802.1X ports that are not yet authorised do not pass LLDP on some platforms, which limits exposure on user ports. See the Network Access Control (NAC) Guide.
  • Protect the management plane anyway: assume the management address will be learned and restrict it to a management network with strong authentication. See the Network Device Management Plane Hardening Guide.

Rolling it out

  1. Inventory: export neighbour tables from every switch and router to see which ports currently send and receive LLDP and CDP and what is on the other end.
  2. Classify ports by role using the table above, and list the dependencies: phone models, PoE devices, emergency location, monitoring tools.
  3. Pilot: apply the new profiles to one access switch with phones and one with PCs only, and confirm phones register on the voice VLAN, PoE devices get full power and monitoring still maps topology.
  4. Roll out by role: internet-facing and provider ports first (lowest dependency, highest exposure), then guest, then user access, then phone and access point ports.
  5. Roll back by reapplying the previous port profile to the affected ports; keep the pre-change configuration backup for each switch.
  6. Enforce: add the rule to configuration compliance checks so drift is caught.

Detecting abuse and rogue devices

  • Unexpected neighbours on access ports: a switch, router or access point appearing as an LLDP or CDP neighbour on a port profiled for PCs suggests a rogue or unmanaged switch. Alert on capability changes per port.
  • Neighbour churn: many different neighbour IDs on one port in a short period, or neighbour tables near their storage limit, can indicate frame flooding. Some platforms cap stored neighbours (one vendor documents 1,600) and discard the rest.
  • Discovery frames where they should be off: any LLDP or CDP received on guest, provider or internet-facing ports indicates misconfiguration or an active probe.
  • Identity mismatch: a neighbour claiming to be an IP phone on a port where 802.1X or MAC authentication identified a PC is worth investigating, as is a claimed phone that never registers with the call platform.
  • Configuration drift: track discovery settings in configuration backups and alert on changes, for example through the controls in the Network Device Syslog and Configuration Change Detection Guide.
  • SNMP exposure: neighbour data is also exposed through the LLDP MIB, so limit SNMP to SNMPv3 from management hosts. See the SNMP Security Guide.

Metrics that show the policy is working:

  • Untrusted port compliance: share of internet-facing, provider and guest ports with discovery fully off (target 100%).
  • Access port exposure: share of PC-only access ports still sending LLDP or CDP.
  • Single protocol estate: number of switches still running CDP where LLDP-MED serves every endpoint.
  • Rogue neighbour alerts: count of unexpected infrastructure neighbours on access ports per month, and time to resolve.
  • Drift: discovery setting deviations found by compliance scans per month.
FrameworkReferenceRelevance
MITRE ATT&CKT1590.004 Network Topology; T1018 Remote System Discovery; T1040 Network SniffingPassive collection of topology and device details from discovery frames
NIST SP 800-53 Rev 5CM-7 Least Functionality; CM-6 Configuration Settings; SC-7 Boundary Protection; SI-4 System Monitoring; CM-8 System Component InventoryDisable unneeded functions, enforce settings at boundaries, monitor neighbours, use neighbour data for inventory
NIST CSF 2.0PR.PS-01; DE.CM-01Configuration management; network monitoring
CIS Controls v8.1Safeguard 4.8 Uninstall or Disable Unnecessary Services on Enterprise Assets and SoftwareDiscovery protocols are unnecessary services on most ports
ISO/IEC 27001:2022 Annex A8.9 Configuration management; 8.20 Networks securitySecure configuration baselines for network devices

Common failure patterns

  • Global off, phones down: discovery is disabled across the estate in one change, phones lose their voice VLAN and the change is rolled back entirely, leaving every port exposed.
  • Edge router left on defaults: CDP or LLDP stays enabled on the internet or provider-facing interface, advertising platform and software version to the upstream network.
  • Transmit off, receive on: the switch stops advertising but still accepts and acts on neighbour claims from untrusted ports.
  • Template fixed, ports not: the port profile is corrected but existing interfaces, or interfaces whose encapsulation changed, keep the old setting.
  • Hosts forgotten: switches are hardened but hypervisors and storage arrays keep advertising host names and versions onto shared segments.

Practitioner checklist

  • Export LLDP and CDP neighbour tables from all network devices and record which ports send and receive.
  • Classify every port by role and list real dependencies (phones, PoE, emergency location, monitoring).
  • Disable transmit and receive on internet-facing, provider, partner, guest and PC-only access ports.
  • Keep LLDP-MED on phone and access point ports, with a reduced TLV set, and drop CDP where LLDP-MED covers all endpoints.
  • Keep LLDP on internal infrastructure links and the management network only.
  • Review discovery agents on servers, hypervisors and storage arrays.
  • Pilot, then roll out by port role with a configuration backup for rollback.
  • Alert on unexpected neighbours, neighbour churn and discovery frames on untrusted ports.
  • Add discovery settings to configuration compliance checks.

Standards and references

Related NHI Mgmt Group resources: Layer 2 Attacks Guide · Network Segmentation Guide · CIS Control 12 Network Infrastructure Management Guide · Firewall Management Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.