Lab na-11 - CDP vs LLDP

Enable CDP and LLDP on the base topology, read the neighbors and detail output of each, and compare what they advertise. Covers Cisco-only vs the open standard and the security trade-off of leaking device information.

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