How to Configure Cisco Discovery Protocol (CDP) and LLDP
Enable and configure CDP and LLDP on Cisco devices for neighbor discovery and network topology mapping.
Step-by-step
- Enter global configuration mode:
enable→configure terminal - Enable CDP globally (on by default):
cdp run - Enable CDP on specific interfaces:
interface <type/num>→cdp enable - Set CDP timer (optional):
cdp timer <seconds>(default 60s) - Set CDP holdtime (optional):
cdp holdtime <seconds>(default 180s) - Enable LLDP globally:
lldp run - Enable LLDP on interfaces:
interface <type/num>→lldp transmitandlldp receive - Verify neighbors:
show cdp neighborsandshow lldp neighbors
Reference: www.tutorialspoint.com