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.
| Property | LLDP | LLDP-MED | CDP |
|---|---|---|---|
| Specification | IEEE 802.1AB | ANSI/TIA-1057 (extends LLDP) | Cisco proprietary |
| Typical use | Topology discovery between infrastructure devices, servers and hypervisors | IP phones, wireless access points and other media endpoints | Topology discovery and voice VLAN signalling in Cisco environments |
| Typical timers | 30 s transmit, 120 s time to live | As LLDP, plus fast start bursts | 60 s transmit; entry dropped after three missed advertisements |
| Authentication | None | None | None |
| Forwarded beyond one hop | No | No | No |
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 carries | What it gives an attacker | Exposure rating |
|---|---|---|---|
| Chassis ID and Port ID (LLDP, mandatory); Device-ID and Port-ID (CDP) | Switch MAC or name and the sending port | Identifies the exact device and port the attacker is on | Medium |
| System Name (LLDP); Device-ID (CDP) | Hostname, often with site, role or floor encoded | Naming convention, site and device role | Medium |
| System Description (LLDP); Version and Platform (CDP) | Hardware platform and full software release string | Direct lookup of known vulnerabilities for that release | High |
| Management Address (LLDP); Address (CDP) | IP address of the management interface | Target for SSH, SNMP, web and API attacks on the management plane | High |
| System Capabilities (LLDP); Capabilities (CDP) | Whether the device is a switch, router, phone or access point | Picks out infrastructure from endpoints | Low |
| Port VLAN ID and VLAN Name (802.1 TLVs); Native VLAN (CDP) | Untagged VLAN and VLAN names | VLAN layout and naming, which helps plan layer 2 attacks | Medium |
| VTP Management Domain (CDP) | VLAN Trunking Protocol domain name | Information useful for VLAN database manipulation if VTP is misconfigured | Medium |
| Network Policy (LLDP-MED) | Voice VLAN ID, priority and DSCP | Which VLAN carries voice, a common route around data VLAN controls | Medium |
| Inventory (LLDP-MED) | Hardware, firmware and software revision, serial number, manufacturer, model, asset ID | Precise asset and software inventory | High |
| Location Identification (LLDP-MED) | Civic address, coordinates or ELIN | Physical location of the port | Low to medium |
| Port Description (LLDP) | Interface description text set by administrators | Often names the connected server, customer or circuit | Medium |
| MAC/PHY, Power via MDI, Link Aggregation, Maximum Frame Size (802.3 TLVs) | Speed, duplex, PoE and aggregation details | Minor, confirms configuration | Low |
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 role | LLDP | LLDP-MED | CDP | Reason |
|---|---|---|---|---|
| Internet-facing and ISP or provider hand-off | Off | Off | Off | The neighbour is outside your trust boundary |
| Partner, customer or colocation cross-connect | Off, unless agreed for troubleshooting | Off | Off | Discloses your platform and addressing to a third party |
| Guest, public, lobby and meeting room ports | Off | Off | Off | Anyone can connect |
| General user access ports (PCs only) | Off | Off | Off | No dependency; exposes switch details to every desk |
| IP phone ports (phone with PC behind it) | Transmit only the TLVs the phone needs | On, with Network Policy | Only if phones need it | Voice VLAN and power depend on it |
| Wireless access point ports | On if used for power or management | As required | Only if required | Power negotiation and controller discovery may rely on it |
| Uplinks and links between your own switches and routers | On | Off | On only if needed | Topology and troubleshooting inside the trust boundary |
| Server, storage and hypervisor ports | On if the platform team uses it; otherwise off | Off | Off unless required | Useful for cabling checks; review what the host advertises |
| Out-of-band management network | On | Off | As required | Already a restricted network |
| OT and industrial cell ports | Per OT engineering decision | Off | Per OT engineering decision | Some 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
- 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.
- Classify ports by role using the table above, and list the dependencies: phone models, PoE devices, emergency location, monitoring tools.
- 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.
- 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.
- Roll back by reapplying the previous port profile to the affected ports; keep the pre-change configuration backup for each switch.
- 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.
| Framework | Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1590.004 Network Topology; T1018 Remote System Discovery; T1040 Network Sniffing | Passive collection of topology and device details from discovery frames |
| NIST SP 800-53 Rev 5 | CM-7 Least Functionality; CM-6 Configuration Settings; SC-7 Boundary Protection; SI-4 System Monitoring; CM-8 System Component Inventory | Disable unneeded functions, enforce settings at boundaries, monitor neighbours, use neighbour data for inventory |
| NIST CSF 2.0 | PR.PS-01; DE.CM-01 | Configuration management; network monitoring |
| CIS Controls v8.1 | Safeguard 4.8 Uninstall or Disable Unnecessary Services on Enterprise Assets and Software | Discovery protocols are unnecessary services on most ports |
| ISO/IEC 27001:2022 Annex A | 8.9 Configuration management; 8.20 Networks security | Secure 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
- IEEE: 802.1AB Station and Media Access Control Connectivity Discovery
- CISA, NSA, FBI and partners: Enhanced Visibility and Hardening Guidance for Communications Infrastructure
- Cisco: Using Cisco Discovery Protocol
- Allied Telesis: LLDP Feature Overview and Configuration Guide (LLDP, LLDP-MED TLVs and timers)
- MITRE ATT&CK: T1590.004 Network Topology
- NIST: SP 800-53 Rev 5 Security and Privacy Controls
- CIS: Critical Security Controls v8.1
Related NHI Mgmt Group resources: Layer 2 Attacks Guide · Network Segmentation Guide · CIS Control 12 Network Infrastructure Management Guide · Firewall Management Guide