Labs · · 4 min read

Lab na-11 - CDP vs LLDP

Lab na-11 - CDP vs LLDP - PingLabz Labs article title card

CDP (Cisco Discovery Protocol) and LLDP (Link Layer Discovery Protocol) are two ways for network devices to tell each other "hey, I am here, this is who I am, this is what port we are connected on." CDP is Cisco-only; LLDP is the open standard. Both are useful. This lab uses the base topology (R1 + SW1) to enable and inspect both protocols, then compares what they tell you.

What you will learn

  • What CDP and LLDP advertise about themselves and what they don't
  • How to enable each globally and per-interface
  • How to read show cdp neighbors and show cdp neighbors detail
  • How to read show lldp neighbors and show lldp neighbors detail
  • The security trade-off (these protocols leak information; sometimes you want them off)

What this lab does NOT cover

  • CDP/LLDP MED (the medical-grade voice/video extension)
  • Topology mapping tools that consume CDP/LLDP feeds

Topology

Download the PingLabz CCNA Base Topology .yaml

The PingLabz CCNA Base Topology - three iol-xe routers + one alpine host + one ioll2-xe managed switch + one unmanaged switch. The reusable foundation.

Download PingLabz CCNA Base Topology

Read next

Terminal card showing a repeating CDP native VLAN mismatch log naming Ethernet0/0 native VLAN 1 against SW2 Ethernet0/0 native VLAN 99
VLANs ·

Native VLAN Mismatch: Read the CDP Log, Fix the Trunk

%CDP-4-NATIVE_VLAN_MISMATCH hands you both interfaces and both native VLANs in one line. The real damage is underneath it: untagged frames get re-homed at the trunk boundary and two VLANs quietly become one. Captured live on IOS XE 17.18.2 in CML.