CCNA Notes

200-301 Exam Prep

Progress0/67

0% complete

Practice TestsNew
1Networking Devices2Interfaces And Cables3OSI Model and TCP/IP Suite4Intro to the CLI5Ethernet LAN Switching - Part 16Ethernet LAN Switching - Part 27IPv4 Addressing - Part 18IPv4 Addressing - Part 29Switch Interfaces10The IPv4 Header11Routing Fundamentals - Part 111Static Routing - Part 212Life of a Packet13Subnetting - Part 114Subnetting - Part 215Subnetting (VLSM) - Part 316VLANs - Part 117VLANs - Part 218VLANs - Part 319DTP / VTP20Spanning Tree Protocol - Part 121Spanning Tree Protocol - Part 222Rapid Spanning Tree Protocol23Etherchannel24Dynamic Routing25RIP / EIGRP26OSPF - Part 127OSPF - Part 228OSPF - Part 329First Hop Redundancy Protocol30TCP and UDP31IPv6 - Part 132IPv6 - Part 233IPv6 - Part 334Standard Access Control List35Extended Access Control List36CDP and LLDP37NTP - Network Time Protocol38DNS - Domain Name System39DHCP - Dynamic Host Configuration Protocol40SNMP - Simple Network Management Protocol41SYSLOG42SSH - Secure Shell43FTP and TFTP44NAT (Static) - Part 145NAT (Dynamic) - Part 246QoS (Voice VLAN) - Part 147QoS (Quality of Service) - Part 248Security Fundamentals49Port Security50DHCP Snooping51Dynamic ARP Inspection52LAN Architectures53WAN Architectures54Virtualization and Cloud - Part 154Virtualization (Containers) - Part 254Virtualization (VRF) - Part 355Wireless Fundamentals56Wireless Architectures57Wireless Security58Wireless Configuration59Introduction to Network Automation60JSON, XML, and YAML61REST APIs62Software Defined Networking63Ansible, Puppet, and Chef67CCNA Complete Cheatsheet
/CDP and LLDP
Topic 364 min read

CDP and LLDP

/
Tip: Select text to highlight or pin your reading position

36. CDP and LLDP (Layer 2 Discovery Protocol)

INTRO TO LAYER 2 DISCOVERY PROTOCOLS

  • LAYER 2 DISCOVERY PROTOCOL, such as CDP and LLDP share information WITH and DISCOVER information about NEIGHBORING (Connected) DEVICES

  • The SHARED INFORMATION includes:

    • Hostname
    • IP Address
    • Device Type
    • etcetera.
  • CDP is a Cisco Proprietary Protocol

  • LLDP is an Industry Standard Protocol (IEEE 802.1AB)

  • Because they SHARE INFORMATION about the DEVICES in the NETWORK, they can be considered a security risk and are often NOT used. It is up to the NETWORK ENGINEER / ADMIN to decide if they want to use them in the NETWORK or not.

imageClick to enlarge


CISCO DISCOVERY PROTOCOL (CDP)

  • CDP is a Cisco proprietary protocol
  • It is enabled on Cisco devices (routers, switches, firewalls, IP Phones, etc) by DEFAULT
<aside> šŸ’” CDP Messages are periodically sent to Multicast MAC ADDRESS `0100.0CCC.CCCC` </aside>
  • When a DEVICE receives a CDP message, it PROCESSES and DISCARDS the message. It does NOT forward it to other devices.
  • By DEFAULT, CDP Messages are sent once every 60 seconds
  • By DEFAULT, the CDP hold-time is 180 seconds. If a message isn’t received from a neighbor for 180 seconds, the neighbor is REMOVED from the CDP Neighbor Table
  • CDPv2 messages are sent by DEFAULT

imageClick to enlarge

imageClick to enlarge


CDP NEIGHBOR TABLES

imageClick to enlarge

ā€œDevice IDā€ = What devices were DISCOVERED by CDP

ā€œLocal Intrfaceā€ = What LOCAL device interface the neighbors are connected to

ā€œHoldtimeā€ = Hold-time countdown in seconds (0 = device removed from table)

ā€œCapabilitiesā€ = Refers to Capability Codes table (located above output)

ā€œPlatformā€ = Displays the MODEL of the Neighbor Device

ā€œPort IDā€ = Neighbor ports that LOCAL device is connected to


MORE DETAILED OUTPUT

imageClick to enlarge

ā€œVersionā€ = shows what version of Cisco’s IOS is running on the device


SHOW SPECIFIC CDP NEIGHBOR ENTRY

imageClick to enlarge


CDP CONFIGURATION COMMANDS

imageClick to enlarge

  • CDP is GLOBALLY ENABLED, by DEFAULT
  • CDP is also ENABLED on each INTERFACE, by DEFAULT
  • To ENABLE / DISABLE CDP globally: R1(config)# [no] cdp run
  • To ENABLE / DISABLE CDP on specific interfaces : R1(config-if)# [no] cdp enable
  • Configure the CDP timer: R1(config)# cdp time *seconds*
  • Configure the CDP holdtime: R1(config)# cdp holdtime *seconds*
  • ENABLE / DISABLE CDPv2: R1(config)# [no] cdp advertise-v2

LINK LAYER DISCOVERY PROTOCOL (LLDP)

  • LLDP is an INDUSTRY STANDARD PROTOCOL (IEEE 802.1AB)
  • It is usually DISABLED on Cisco devices, by DEFAULT, so it must be manually ENABLED
  • A device can run CDP and LLDP at the same time
<aside> šŸ’” LLDP Messages are periodically sent to Multicast MAC ADDRESS `0180.c200.000E` </aside>
  • When a DEVICE receives an LLDP message, it PROCESSES and DISCARDS the message. It does NOT forward it to OTHER DEVICES
  • By DEFAULT, LLDP Messages are sent once every 30 seconds
  • By DEFAULT, LLDP Holdtime is 120 seconds
  • LLDP has an additional timer called the ā€˜reinitialization delay’
    • If LLDP is ENABLED (Globally or on an INTERFACE), this TIMER will DELAY the actual initialization of LLDP (2 seconds, by DEFAULT)

LLDP CONFIGURATION COMMANDS

  • LLDP is usually GLOBALLY DISABLED by DEFAULT

  • LLDP is also DISABLED on each INTERFACE, by DEFAULT

  • To ENABLE LLDP GLOBALLY : R1(config)# lldp run

  • To ENABLE LLDP on specific INTERFACES (tx): R1(config-if)# lldp transmit

  • To ENABLE LLDP on specific INTERFACES (rx): R1(config-if)# lldp receive

YOU NEED TO ENABLE BOTH TO SEND AND RECEIVE (Unless you want to only enable SEND or RECEIVE LLDP Messages)

  • Configure the LLDP timer: R1(config)# lldp timer *seconds*
  • Configure the LLDP holdtime: R1(config)# lldp holdtime *seconds*
  • Configure the LLDP reinit timer: R1(config)# lldp reinit *seconds*

imageClick to enlarge

imageClick to enlarge

SHOW LLDP STATUS

imageClick to enlarge

SHOW ALL LLDP NEIGHBORS

imageClick to enlarge

SHOW LLDP NEIGHBORS in DETAIL

imageClick to enlarge

SHOW SPECIFIC LLDP DEVICE ENTRY

imageClick to enlarge

imageClick to enlarge

PreviousExtended Access Control List
NextNTP - Network Time Protocol