CDP (Cisco Discovery Protocol) and LLDP (Link Layer Discovery Protocol) are both network protocols used for discovering devices on a local network. CDP is Cisco-specific, providing information about directly connected Cisco devices, while LLDP is an open standard that works across various vendors, allowing for broader compatibility in multi-vendor environments.
In this article, we are going to discuss about CDP and LLDP. We will also look at steps to configure CDP and LLDP on Cisco devices and then verify their configuration. Learning about CDP and LLDP is an important task if preparing for any Cisco certification.
CDP is a Cisco proprietary protocol specifically used for Cisco devices to discover other connected Cisco devices in the network infrastructure. CDP operates at the data link layer of the OSI model and runs on Cisco devices by default.
It enables devices to discover neighboring Cisco devices directly connected to their interfaces. CDP exchanges information such as device IDs, IP addresses, interface details, platform information, and capabilities. CDP messages are periodically exchanged between the connected devices to maintain the CDP neighbor table.
LLDP is a vendor-neutral and standardized protocol defined by the IEEE 802.1AB standard. Similar to CDP, LLDP operates at the data link layer and provides a mechanism for discovering neighboring devices. LLDP can be used on a wide range of network devices, regardless of the vendor.
It allows devices to exchange information such as system and port identifiers, port descriptions, capabilities, and management addresses. LLDP is often used in multi-vendor environments, enabling devices from different manufacturers to discover and communicate with each other.
Both CDP and LLDP provide benefits such as network discovery, inventory management, and troubleshooting. They help network administrators gather information about the network topology, identify connected devices, and ensure proper configuration and compatibility.
By utilizing these protocols, administrators can gain visibility into their networks and facilitate effective network management and troubleshooting tasks.
Let's quickly check the CDP and LLDP differences. The table below shows key differences between CDP and LLDP highlighting their functionalities, usage scenarios, and configurations.
Let's look at the steps for CDP and LLDP configuration on Cisco devices. To practice these steps visit our CCNA virtual lab
Tasks
● Login to SW02, and confirm that Cisco Discovery Protocol (CDP) is globally enabled.
✓ if it is not enabled then enable it globally
● CDP should send its advertisement messages every 45 seconds and hold time to 135 seconds.
● Disable CDP on SW02 interfaces (E0/3 and E1/0) which are connecting to SW04 interfaces (E0/0 and E1/0)
● Enable Link Layer Discovery Protocol (LLDP) on SW02 and SW04 so that both switches can see each other as LLDP neighbors on both of their connected interfaces.
● Verify that R01, R02 and SW03 are the CDP neighbors of SW02 and SW04 is the LLDP neighbor of SW02.
Configuration and Verifications
SW02:
As you can see in the above output, CDP is enabled globally using the command "cdp run". The current cdp version is 2 and the frequency of sending cdp packets is 60 seconds with a hold time is 180 seconds.
Note: "cdp run" is a hidden command so can be seen using "show run all"
As per the task, cdp advertisements should be sent at 45 second intervals and holdtime should be 135 seconds. Also, disable CDP on SW02 interfaces (E0/3 and E1/0). Also, enable LLDP on SW02 and SW04.
SW04:
Verify the cdp neighbors of SW02 and lldp neighbors of SW04, cdp advertisement time has also changed to 45 seconds. It is also clearly seen in the output below that SW02 has SW03, R02 and R01 are the cdp neighbors and SW04 has only SW02 as lldp neighbor.
SW02:
SW04:
In summary, CDP (Cisco Discovery Protocol) and LLDP (Link Layer Discovery Protocol) are essential for network device discovery. Both protocols share similar functionalities, but CDP is Cisco-specific while LLDP is vendor-neutral.
Configuring these protocols enhances network management by providing device information, improving troubleshooting, and ensuring efficient communication across diverse environments.
Understanding their differences and needs is crucial for effective network design and maintenance, especially in multi-vendor setups where LLDP's compatibility offers significant advantages. To learn more such concepts check out our IT infrastructure courses.
He is a senior solution network architect and currently working with one of the largest financial company. He has an impressive academic and training background. He has completed his B.Tech and MBA, which makes him both technically and managerial proficient. He has also completed more than 450 online and offline training courses, both in India and ...
More... | Author`s Bog | Book a Meeting