CDP and LLDP for CCNA: Layer 2 Neighbor Discovery

CDP (Cisco-proprietary) and LLDP (IEEE 802.1AB standard) advertise each device's information to its directly connected neighbors. They let you map the real topology without documentation, hence they are a Network Access topic in the CCNA.

Exam domain: Network Access · Level: Beginner · Updated on October 17, 2026 · 2 min read

Topology diagram “CDP and LLDP for CCNA: Layer 2 Neighbor Discovery” with 5 devices and 5 links
Topology: CDP and LLDP for CCNA: Layer 2 Neighbor Discovery

Edit this template Download .json

Learning objectives

Devices and addressing

DeviceTypeDetails
R1RouterRouter
Gi0/0 → SW1
SW1SwitchSwitch
Gi0/1 → R1
SW2SwitchSwitch
Gi0/1 → R1
AP1Access pointAccess point
LLDP-MED
PC1PC / userUser

Reference configuration (Cisco IOS)

SW1

cdp run
lldp run
interface g0/1
 cdp enable
 lldp transmit
 lldp receive
interface f0/1
 no cdp enable
 no lldp transmit
 no lldp receive

Verification commands

CCNA exam tips

CDP is on by default on Cisco devices; LLDP is off until you run lldp run.

Disable CDP/LLDP on outward-facing ports: it reveals model, IOS and addresses.

How to use this template

Press “Edit this template”: the editor opens with the topology loaded and ready to change (undo with Ctrl+Z). You can also copy the JSON and paste it into the editor with File ▸ Import JSON…. Then add devices, change IPs and export to PDF, PNG or SVG.

To practice, rebuild the topology in Cisco Packet Tracer, GNS3 or Cisco Modeling Labs and paste the reference configuration on each device. Addresses and names are examples: change them to create your own variants.

JSON template for the editor

This is the full diagram in JSON format. Paste it into the editor (File ▸ Import JSON…) or press the edit button to load it automatically.

Edit this template

Frequently asked questions

What is the difference between CDP and LLDP?

CDP is Cisco-only while LLDP is an open standard that works with other vendors.

Does CDP cross a router?

No: it works at layer 2 and only sees directly connected neighbors.

CCNA and Cisco are registered trademarks of Cisco Systems, Inc. This site is independent, not affiliated with Cisco and does not provide official exam material: the templates are study examples.

More related pages